Skip to contentSkip to conversation

davinci: Enable DDR_INIT for DA8XX

PATCH Superseded Lokesh Vutla 3 participants 6 messages Mar 16, 2018 – Mar 22, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 davinci: Enable DDR_INIT for DA8XX

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")

---
Changes since v1:
- Fixed the typo DRA8XX to DA8XX

 arch/arm/mach-davinci/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-davinci/Kconfig +1 -0
index 30752839a3..5e7baba3fe 100644
@@ -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
Signature · 1 line
2.16.2
#1 lore raw

PATCH v2 1/1 davinci: Enable DDR_INIT for DA8XX

Quoted 29 lines · Lokesh Vutla

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")

---
Changes since v1:
- Fixed the typo DRA8XX to DA8XX

  arch/arm/mach-davinci/Kconfig | 1 +
  1 file changed, 1 insertion(+)
arch/arm/mach-davinci/Kconfig +0 -0
index 30752839a3..5e7baba3fe 100644

arch/arm/mach-davinci/Kconfig config SOC_DA850 · line 64

Quoted 7 lines
arch/arm/mach-davinci/Kconfig +1 -0
@@ -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.

#2 lore raw

PATCH v2 1/1 davinci: Enable DDR_INIT for DA8XX

Quoted 40 lines · David Lechner
Quoted 29 lines · Lokesh Vutla

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")

---
Changes since v1:
- Fixed the typo DRA8XX to DA8XX

  arch/arm/mach-davinci/Kconfig | 1 +

  1 file changed, 1 insertion(+)
arch/arm/mach-davinci/Kconfig +0 -0
index 30752839a3..5e7baba3fe 100644
@@ -58,6 +58,7 @@ config SOC_DA850
Quoted 7 lines

  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

Quoted 3 lines

    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

Quoted 3 lines

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

#3 lore raw

PATCH v2 1/1 davinci: Enable DDR_INIT for DA8XX

Quoted 43 lines · Lokesh Vutla
Quoted 40 lines · David Lechner
Quoted 29 lines · Lokesh Vutla

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")

---
Changes since v1:
- Fixed the typo DRA8XX to DA8XX

   arch/arm/mach-davinci/Kconfig | 1 +
   1 file changed, 1 insertion(+)
arch/arm/mach-davinci/Kconfig +0 -0
index 30752839a3..5e7baba3fe 100644

arch/arm/mach-davinci/Kconfig config SOC_DA850 · line 64

Quoted 7 lines
arch/arm/mach-davinci/Kconfig +1 -0
@@ -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

Quoted 5 lines
Quoted 3 lines

    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.

#4 lore raw

PATCH v2 1/1 davinci: Enable DDR_INIT for DA8XX

In reply to Lokesh Vutla
Quoted 8 lines · Lokesh Vutla

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.

Quoted 8 lines

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")
Signature · 8 lines
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>
#5 lore raw

PATCH v2 1/1 davinci: Enable DDR_INIT for DA8XX

In reply to Lokesh Vutla
Quoted 11 lines · Lokesh Vutla

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

Quoted 7 lines
Fixes 2e87980580d0 ("davinci: Fix omapl138_lcdk builds")
Fixes 6aa4ad8e3820 ("Convert CONFIG_SOC_DA8XX et al to Kconfig")

Applied to u-boot/master, thanks!

Signature · 8 lines
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>