All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL
@ 2017-11-27 23:07 Breno Lima
  2017-11-28  0:03 ` Fabio Estevam
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Breno Lima @ 2017-11-27 23:07 UTC (permalink / raw)
  To: u-boot

From: Breno Lima <breno.lima@nxp.com>

MX6UL contains features that MX6ULL doesn't support.
Deselect CONFIG_MX6UL and select SYS_L2CACHE_OFF and ROM_UNIFIED_SECTIONS.

The motivation for doing this change is that MX6UL supports CAAM and
MX6ULL does not.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
---
 arch/arm/mach-imx/mx6/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig
index 4f8bb8f..279f088 100644
--- a/arch/arm/mach-imx/mx6/Kconfig
+++ b/arch/arm/mach-imx/mx6/Kconfig
@@ -66,8 +66,9 @@ config MX6UL_OPOS6UL
 	select SUPPORT_SPL
 
 config MX6ULL
+	select SYS_L2CACHE_OFF
+	select ROM_UNIFIED_SECTIONS
 	bool
-	select MX6UL
 
 config MX6_DDRCAL
 	bool "Include dynamic DDR calibration routines"
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL
  2017-11-27 23:07 [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL Breno Lima
@ 2017-11-28  0:03 ` Fabio Estevam
  2017-12-17 10:31 ` Stefano Babic
  2018-01-01 21:53 ` Stefan Agner
  2 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2017-11-28  0:03 UTC (permalink / raw)
  To: u-boot

On Mon, Nov 27, 2017 at 9:07 PM, Breno Lima <brenomatheus@gmail.com> wrote:
> From: Breno Lima <breno.lima@nxp.com>
>
> MX6UL contains features that MX6ULL doesn't support.
> Deselect CONFIG_MX6UL and select SYS_L2CACHE_OFF and ROM_UNIFIED_SECTIONS.
>
> The motivation for doing this change is that MX6UL supports CAAM and
> MX6ULL does not.
>
> Signed-off-by: Breno Lima <breno.lima@nxp.com>

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL
  2017-11-27 23:07 [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL Breno Lima
  2017-11-28  0:03 ` Fabio Estevam
@ 2017-12-17 10:31 ` Stefano Babic
  2018-01-01 21:53 ` Stefan Agner
  2 siblings, 0 replies; 7+ messages in thread
From: Stefano Babic @ 2017-12-17 10:31 UTC (permalink / raw)
  To: u-boot



On 28/11/2017 00:07, Breno Lima wrote:
> From: Breno Lima <breno.lima@nxp.com>
> 
> MX6UL contains features that MX6ULL doesn't support.
> Deselect CONFIG_MX6UL and select SYS_L2CACHE_OFF and ROM_UNIFIED_SECTIONS.
> 
> The motivation for doing this change is that MX6UL supports CAAM and
> MX6ULL does not.
> 
> Signed-off-by: Breno Lima <breno.lima@nxp.com>
> ---
>  arch/arm/mach-imx/mx6/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig
> index 4f8bb8f..279f088 100644
> --- a/arch/arm/mach-imx/mx6/Kconfig
> +++ b/arch/arm/mach-imx/mx6/Kconfig
> @@ -66,8 +66,9 @@ config MX6UL_OPOS6UL
>  	select SUPPORT_SPL
>  
>  config MX6ULL
> +	select SYS_L2CACHE_OFF
> +	select ROM_UNIFIED_SECTIONS
>  	bool
> -	select MX6UL
>  
>  config MX6_DDRCAL
>  	bool "Include dynamic DDR calibration routines"
> 
Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL
  2017-11-27 23:07 [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL Breno Lima
  2017-11-28  0:03 ` Fabio Estevam
  2017-12-17 10:31 ` Stefano Babic
@ 2018-01-01 21:53 ` Stefan Agner
  2018-01-01 22:30   ` Fabio Estevam
  2018-01-03 13:13   ` Stefano Babic
  2 siblings, 2 replies; 7+ messages in thread
From: Stefan Agner @ 2018-01-01 21:53 UTC (permalink / raw)
  To: u-boot

On 2017-11-28 00:07, Breno Lima wrote:
> From: Breno Lima <breno.lima@nxp.com>
> 
> MX6UL contains features that MX6ULL doesn't support.
> Deselect CONFIG_MX6UL and select SYS_L2CACHE_OFF and ROM_UNIFIED_SECTIONS.
> 
> The motivation for doing this change is that MX6UL supports CAAM and
> MX6ULL does not.

While I agree with the idea of the change in general, it must be done
more carefully! There are several places where we rely that
CONFIG_MX6ULL selects CONFIG_MX6ULL, e.g.
include/configs/mx6_common.h
arch/arm/include/asm/arch-mx6/imx-regs.h
arch/arm/include/asm/mach-imx/regs-lcdif.h

I see that this patch already got merged... So I guess we either fix all
those places before the release, or we revert this patch...

--
Stefan


> 
> Signed-off-by: Breno Lima <breno.lima@nxp.com>
> ---
>  arch/arm/mach-imx/mx6/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig
> index 4f8bb8f..279f088 100644
> --- a/arch/arm/mach-imx/mx6/Kconfig
> +++ b/arch/arm/mach-imx/mx6/Kconfig
> @@ -66,8 +66,9 @@ config MX6UL_OPOS6UL
>  	select SUPPORT_SPL
>  
>  config MX6ULL
> +	select SYS_L2CACHE_OFF
> +	select ROM_UNIFIED_SECTIONS
>  	bool
> -	select MX6UL
>  
>  config MX6_DDRCAL
>  	bool "Include dynamic DDR calibration routines"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL
  2018-01-01 21:53 ` Stefan Agner
@ 2018-01-01 22:30   ` Fabio Estevam
  2018-01-03 13:13   ` Stefano Babic
  1 sibling, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2018-01-01 22:30 UTC (permalink / raw)
  To: u-boot

Hi Stefan,

On Mon, Jan 1, 2018 at 7:53 PM, Stefan Agner <stefan@agner.ch> wrote:
>
> While I agree with the idea of the change in general, it must be done
> more carefully! There are several places where we rely that
> CONFIG_MX6ULL selects CONFIG_MX6ULL, e.g.
> include/configs/mx6_common.h
> arch/arm/include/asm/arch-mx6/imx-regs.h
> arch/arm/include/asm/mach-imx/regs-lcdif.h
>
> I see that this patch already got merged... So I guess we either fix all
> those places before the release, or we revert this patch...

You are right.

I have just sent a patch for this issue.

Thanks

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL
  2018-01-01 21:53 ` Stefan Agner
  2018-01-01 22:30   ` Fabio Estevam
@ 2018-01-03 13:13   ` Stefano Babic
  2018-01-03 13:17     ` Fabio Estevam
  1 sibling, 1 reply; 7+ messages in thread
From: Stefano Babic @ 2018-01-03 13:13 UTC (permalink / raw)
  To: u-boot

Hi Stefan, Breno,

On 01/01/2018 22:53, Stefan Agner wrote:
> On 2017-11-28 00:07, Breno Lima wrote:
>> From: Breno Lima <breno.lima@nxp.com>
>>
>> MX6UL contains features that MX6ULL doesn't support.
>> Deselect CONFIG_MX6UL and select SYS_L2CACHE_OFF and ROM_UNIFIED_SECTIONS.
>>
>> The motivation for doing this change is that MX6UL supports CAAM and
>> MX6ULL does not.
> 
> While I agree with the idea of the change in general, it must be done
> more carefully! There are several places where we rely that
> CONFIG_MX6ULL selects CONFIG_MX6ULL, e.g.
> include/configs/mx6_common.h
> arch/arm/include/asm/arch-mx6/imx-regs.h
> arch/arm/include/asm/mach-imx/regs-lcdif.h

Ouch...

It is much more as the initial goal of the patch. This breaks MX6ULL.

The idea to add features instead of global SOC define is good, rather we
suffer from previous development, when we bound bunches of features
simply to the SOC type.

> 
> I see that this patch already got merged... So I guess we either fix all
> those places before the release, or we revert this patch...

Agree - I am waiting for Breno's answer, but if we have a generally
agreement I tend to revert this until this change will be properly handled.

Best regards,
Stefano

> 
> --
> Stefan
> 
> 
>>
>> Signed-off-by: Breno Lima <breno.lima@nxp.com>
>> ---
>>  arch/arm/mach-imx/mx6/Kconfig | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig
>> index 4f8bb8f..279f088 100644
>> --- a/arch/arm/mach-imx/mx6/Kconfig
>> +++ b/arch/arm/mach-imx/mx6/Kconfig
>> @@ -66,8 +66,9 @@ config MX6UL_OPOS6UL
>>  	select SUPPORT_SPL
>>  
>>  config MX6ULL
>> +	select SYS_L2CACHE_OFF
>> +	select ROM_UNIFIED_SECTIONS
>>  	bool
>> -	select MX6UL
>>  
>>  config MX6_DDRCAL
>>  	bool "Include dynamic DDR calibration routines"


-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL
  2018-01-03 13:13   ` Stefano Babic
@ 2018-01-03 13:17     ` Fabio Estevam
  0 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2018-01-03 13:17 UTC (permalink / raw)
  To: u-boot

Hi Stefano,

On Wed, Jan 3, 2018 at 11:13 AM, Stefano Babic <sbabic@denx.de> wrote:

> Agree - I am waiting for Breno's answer, but if we have a generally
> agreement I tend to revert this until this change will be properly handled.

I have already sent a fix for this problem:
https://patchwork.ozlabs.org/patch/854371/

It has been successfully tested by Breno and Peng.

Regards,

Fabio Estevam

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-01-03 13:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-27 23:07 [U-Boot] [PATCH 4/5] Kconfig: mx6ull: Deselect MX6UL from CONFIG_MX6ULL Breno Lima
2017-11-28  0:03 ` Fabio Estevam
2017-12-17 10:31 ` Stefano Babic
2018-01-01 21:53 ` Stefan Agner
2018-01-01 22:30   ` Fabio Estevam
2018-01-03 13:13   ` Stefano Babic
2018-01-03 13:17     ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.