U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX
@ 2018-03-16  8:52 Lokesh Vutla
  2018-03-16 15:14 ` David Lechner
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lokesh Vutla @ 2018-03-16  8:52 UTC (permalink / raw)
  To: u-boot

Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for
SOC_DA8XX, which broke OMAPL138 to boot.

Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled
DDR_INIT for all DA850 SoCs. This failed all DA850 boards to boot
as ddr is not being initialized.

Enable SYS_DA850_DDR_INIT for DA8XX so that all DA850 and OMAPL138
will have ddr initialized

Fixes: 2e87980580d0 ("davinci: Fix omapl138_lcdk builds")
Fixes: 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
Reported-by: Sekhar Nori <nsekhar@ti.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
Changes since v1:
- Fixed the typo DRA8XX to DA8XX

 arch/arm/mach-davinci/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
index 30752839a3..5e7baba3fe 100644
--- a/arch/arm/mach-davinci/Kconfig
+++ b/arch/arm/mach-davinci/Kconfig
@@ -58,6 +58,7 @@ config SOC_DA850
 config SOC_DA8XX
 	bool
 	select SYS_DA850_PLL_INIT if SUPPORT_SPL || DA850_LOWLEVEL
+	select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
 
 config MACH_DAVINCI_DA850_EVM
 	bool
-- 
2.16.2

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

* [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX
  2018-03-16  8:52 [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX Lokesh Vutla
@ 2018-03-16 15:14 ` David Lechner
  2018-03-16 15:26   ` Lokesh Vutla
  2018-03-16 17:09 ` Tom Rini
  2018-03-22 20:35 ` [U-Boot] [U-Boot,v2] " Tom Rini
  2 siblings, 1 reply; 6+ messages in thread
From: David Lechner @ 2018-03-16 15:14 UTC (permalink / raw)
  To: u-boot

On 03/16/2018 03:52 AM, Lokesh Vutla wrote:
> Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
> converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for
> SOC_DA8XX, which broke OMAPL138 to boot.
> 
> Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled
> DDR_INIT for all DA850 SoCs. This failed all DA850 boards to boot
> as ddr is not being initialized.
> 
> Enable SYS_DA850_DDR_INIT for DA8XX so that all DA850 and OMAPL138
> will have ddr initialized
> 
> Fixes: 2e87980580d0 ("davinci: Fix omapl138_lcdk builds")
> Fixes: 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
> Reported-by: Sekhar Nori <nsekhar@ti.com>
> Tested-by: Sekhar Nori <nsekhar@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> ---
> Changes since v1:
> - Fixed the typo DRA8XX to DA8XX
> 
>   arch/arm/mach-davinci/Kconfig | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
> index 30752839a3..5e7baba3fe 100644
> --- a/arch/arm/mach-davinci/Kconfig
> +++ b/arch/arm/mach-davinci/Kconfig
> @@ -58,6 +58,7 @@ config SOC_DA850
>   config SOC_DA8XX
>   	bool
>   	select SYS_DA850_PLL_INIT if SUPPORT_SPL || DA850_LOWLEVEL
> +	select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
>   
>   config MACH_DAVINCI_DA850_EVM
>   	bool
> 

Shouldn't

	select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL

be removed from config SOC_DA850?

It seems redundant to have it in both places since SOC_DA850
selects SOC_DA8XX.

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

* [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX
  2018-03-16 15:14 ` David Lechner
@ 2018-03-16 15:26   ` Lokesh Vutla
  2018-03-16 15:32     ` David Lechner
  0 siblings, 1 reply; 6+ messages in thread
From: Lokesh Vutla @ 2018-03-16 15:26 UTC (permalink / raw)
  To: u-boot



On Friday 16 March 2018 08:44 PM, David Lechner wrote:
> On 03/16/2018 03:52 AM, Lokesh Vutla wrote:
>> Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
>> converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for
>> SOC_DA8XX, which broke OMAPL138 to boot.
>>
>> Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled
>> DDR_INIT for all DA850 SoCs. This failed all DA850 boards to boot
>> as ddr is not being initialized.
>>
>> Enable SYS_DA850_DDR_INIT for DA8XX so that all DA850 and OMAPL138
>> will have ddr initialized
>>
>> Fixes: 2e87980580d0 ("davinci: Fix omapl138_lcdk builds")
>> Fixes: 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
>> Reported-by: Sekhar Nori <nsekhar@ti.com>
>> Tested-by: Sekhar Nori <nsekhar@ti.com>
>> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
>> ---
>> Changes since v1:
>> - Fixed the typo DRA8XX to DA8XX
>>
>>   arch/arm/mach-davinci/Kconfig | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm/mach-davinci/Kconfig
>> b/arch/arm/mach-davinci/Kconfig
>> index 30752839a3..5e7baba3fe 100644
>> --- a/arch/arm/mach-davinci/Kconfig
>> +++ b/arch/arm/mach-davinci/Kconfig
>> @@ -58,6 +58,7 @@ config SOC_DA850
>>   config SOC_DA8XX
>>       bool
>>       select SYS_DA850_PLL_INIT if SUPPORT_SPL || DA850_LOWLEVEL
>> +    select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
>>     config MACH_DAVINCI_DA850_EVM
>>       bool
>>
> 
> Shouldn't
> 
>     select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
> 
> be removed from config SOC_DA850?

I don't see it enabled in the latest master[1] branch.


[1]
http://git.denx.de/?p=u-boot.git;a=blob;f=arch/arm/mach-davinci/Kconfig;h=30752839a3152999e7fbcaa21736010b7353c836;hb=HEAD#l54

Thanks and regards,
Lokesh

> 
> It seems redundant to have it in both places since SOC_DA850
> selects SOC_DA8XX.

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

* [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX
  2018-03-16 15:26   ` Lokesh Vutla
@ 2018-03-16 15:32     ` David Lechner
  0 siblings, 0 replies; 6+ messages in thread
From: David Lechner @ 2018-03-16 15:32 UTC (permalink / raw)
  To: u-boot

On 03/16/2018 10:26 AM, Lokesh Vutla wrote:
> 
> 
> On Friday 16 March 2018 08:44 PM, David Lechner wrote:
>> On 03/16/2018 03:52 AM, Lokesh Vutla wrote:
>>> Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
>>> converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for
>>> SOC_DA8XX, which broke OMAPL138 to boot.
>>>
>>> Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled
>>> DDR_INIT for all DA850 SoCs. This failed all DA850 boards to boot
>>> as ddr is not being initialized.
>>>
>>> Enable SYS_DA850_DDR_INIT for DA8XX so that all DA850 and OMAPL138
>>> will have ddr initialized
>>>
>>> Fixes: 2e87980580d0 ("davinci: Fix omapl138_lcdk builds")
>>> Fixes: 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
>>> Reported-by: Sekhar Nori <nsekhar@ti.com>
>>> Tested-by: Sekhar Nori <nsekhar@ti.com>
>>> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
>>> ---
>>> Changes since v1:
>>> - Fixed the typo DRA8XX to DA8XX
>>>
>>>    arch/arm/mach-davinci/Kconfig | 1 +
>>>    1 file changed, 1 insertion(+)
>>>
>>> diff --git a/arch/arm/mach-davinci/Kconfig
>>> b/arch/arm/mach-davinci/Kconfig
>>> index 30752839a3..5e7baba3fe 100644
>>> --- a/arch/arm/mach-davinci/Kconfig
>>> +++ b/arch/arm/mach-davinci/Kconfig
>>> @@ -58,6 +58,7 @@ config SOC_DA850
>>>    config SOC_DA8XX
>>>        bool
>>>        select SYS_DA850_PLL_INIT if SUPPORT_SPL || DA850_LOWLEVEL
>>> +    select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
>>>      config MACH_DAVINCI_DA850_EVM
>>>        bool
>>>
>>
>> Shouldn't
>>
>>      select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
>>
>> be removed from config SOC_DA850?
> 
> I don't see it enabled in the latest master[1] branch.


I see what you mean. I must have just been looking at the patch that
introduced the bug in the first place.


Reviewed-by: David Lechner <david@lechnology.com>

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

* [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX
  2018-03-16  8:52 [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX Lokesh Vutla
  2018-03-16 15:14 ` David Lechner
@ 2018-03-16 17:09 ` Tom Rini
  2018-03-22 20:35 ` [U-Boot] [U-Boot,v2] " Tom Rini
  2 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2018-03-16 17:09 UTC (permalink / raw)
  To: u-boot

On Fri, Mar 16, 2018 at 02:22:12PM +0530, Lokesh Vutla wrote:

> Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
> converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for
> SOC_DA8XX, which broke OMAPL138 to boot.
> 
> Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled
> DDR_INIT for all DA850 SoCs. This failed all DA850 boards to boot
> as ddr is not being initialized.
> 
> Enable SYS_DA850_DDR_INIT for DA8XX so that all DA850 and OMAPL138
> will have ddr initialized
> 
> Fixes: 2e87980580d0 ("davinci: Fix omapl138_lcdk builds")
> Fixes: 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
> Reported-by: Sekhar Nori <nsekhar@ti.com>
> Tested-by: Sekhar Nori <nsekhar@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180316/f7ff3560/attachment.sig>

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

* [U-Boot] [U-Boot,v2] davinci: Enable DDR_INIT for DA8XX
  2018-03-16  8:52 [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX Lokesh Vutla
  2018-03-16 15:14 ` David Lechner
  2018-03-16 17:09 ` Tom Rini
@ 2018-03-22 20:35 ` Tom Rini
  2 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2018-03-22 20:35 UTC (permalink / raw)
  To: u-boot

On Fri, Mar 16, 2018 at 02:22:12PM +0530, Lokesh Vutla wrote:

> Commit 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
> converted SOC_DA8XX to Kconfig but missed enabling DDR_INIT for
> SOC_DA8XX, which broke OMAPL138 to boot.
> 
> Commit 2e87980580d0 ("davinci: Fix omapl138_lcdk builds") disabled
> DDR_INIT for all DA850 SoCs. This failed all DA850 boards to boot
> as ddr is not being initialized.
> 
> Enable SYS_DA850_DDR_INIT for DA8XX so that all DA850 and OMAPL138
> will have ddr initialized
> 
> Fixes: 2e87980580d0 ("davinci: Fix omapl138_lcdk builds")
> Fixes: 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")
> Reported-by: Sekhar Nori <nsekhar@ti.com>
> Tested-by: Sekhar Nori <nsekhar@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> Reviewed-by: David Lechner <david@lechnology.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180322/5a94f98f/attachment.sig>

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

end of thread, other threads:[~2018-03-22 20:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-16  8:52 [U-Boot] [PATCH v2] davinci: Enable DDR_INIT for DA8XX Lokesh Vutla
2018-03-16 15:14 ` David Lechner
2018-03-16 15:26   ` Lokesh Vutla
2018-03-16 15:32     ` David Lechner
2018-03-16 17:09 ` Tom Rini
2018-03-22 20:35 ` [U-Boot] [U-Boot,v2] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox