Skip to contentSkip to conversation

davinci: Fix omapl138_lcdk builds

PATCH New Tom Rini 1 participant 2 messages Jan 31, 2018

Subsystems (3)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 davinci: Fix omapl138_lcdk builds

The omapl138_lcdk platform is not a DA850 SoC so we need to select SOC_DA8XX and not SOC_DA850, as it was before. It does however point out a bit of a misnomer in how all of these PLL defines are named as they are generic to DA8xx, not DA850 centric. Remove the 'if SOC_DA850' under the defaults as these are simply the defaults. As SOC_DA8XX will select SYS_DA850_DDR_INIT when needed, we do not need it under both SOC options.

Fixes 76e22222d3aa ("Convert CONFIG_SYS_DV_CLKMODE et al to Kconfig")
---
 arch/arm/mach-davinci/Kconfig | 29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)
arch/arm/mach-davinci/Kconfig +14 -15
index 7b05b1749ae2..30752839a315 100644
@@ -24,7 +24,7 @@ config TARGET_EA20
 
 config TARGET_OMAPL138_LCDK
 	bool "OMAPL138 LCDK"
-	select SOC_DA850
+	select SOC_DA8XX
 	select SUPPORT_SPL
 
 config TARGET_CALIMAIN
@@ -54,7 +54,6 @@ config SYS_DA850_DDR_INIT
 config SOC_DA850
 	bool
 	select SOC_DA8XX
-	select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
 
 config SOC_DA8XX
 	bool
@@ -68,79 +67,79 @@ comment "DA850 PLL Initialization Parameters"
 
 config SYS_DV_CLKMODE
 	int "PLLCTL Clock Mode"
-	default 0 if SOC_DA850
+	default 0
 	help
 	  Set PLLCTL Clock Mode bit as External Clock or On Chip oscillator
 
 config SYS_DA850_PLL0_POSTDIV
 	int "PLLC0 PLL Post-Divider"
-	default 1 if SOC_DA850
+	default 1
 	help
 	  Value written to PLLC0 PLL Post-Divider Control Register
 
 config SYS_DA850_PLL0_PLLDIV1
 	hex "PLLC0 Divider 1"
-	default 0x8000 if SOC_DA850
+	default 0x8000
 	help
 	  Value written to PLLC0 Divider 1 register
 
 config SYS_DA850_PLL0_PLLDIV2
 	hex "PLLC0 Divider 2"
-	default 0x8001 if SOC_DA850
+	default 0x8001
 	help
 	  Value written to PLLC0 Divider 2 register
 
 config SYS_DA850_PLL0_PLLDIV3
 	hex "PLLC0 Divider 3"
-	default 0x8002 if SOC_DA850
+	default 0x8002
 	help
 	  Value written to PLLC0 Divider 3 register
 
 config SYS_DA850_PLL0_PLLDIV4
 	hex "PLLC0 Divider 4"
-	default 0x8003 if SOC_DA850
+	default 0x8003
 	help
 	  Value written to PLLC0 Divider 4 register
 
 config SYS_DA850_PLL0_PLLDIV5
 	hex "PLLC0 Divider 5"
-	default 0x8002 if SOC_DA850
+	default 0x8002
 	help
 	  Value written to PLLC0 Divider 5 register
 
 config SYS_DA850_PLL0_PLLDIV6
 	hex "PLLC0 Divider 6"
-	default 0x8000 if SOC_DA850
+	default 0x8000
 	help
 	  Value written to PLLC0 Divider 6 register
 
 config SYS_DA850_PLL0_PLLDIV7
 	hex "PLLC0 Divider 7"
-	default 0x8005 if SOC_DA850
+	default 0x8005
 	help
 	  Value written to PLLC0 Divider 7 register
 
 config SYS_DA850_PLL1_POSTDIV
 	hex "PLLC1 PLL Post-Divider"
-	default 1 if SOC_DA850
+	default 1
 	help
 	  Value written to PLLC1 PLL Post-Divider Control Register
 
 config SYS_DA850_PLL1_PLLDIV1
 	hex "PLLC1 Divider 2"
-	default 0x8000 if SOC_DA850
+	default 0x8000
 	help
 	  Value written to PLLC1 Divider 1 register
 
 config SYS_DA850_PLL1_PLLDIV2
 	hex "PLLC1 Divider 2"
-	default 0x8001 if SOC_DA850
+	default 0x8001
 	help
 	  Value written to PLLC1 Divider 2 register
 
 config SYS_DA850_PLL1_PLLDIV3
 	hex "PLLC1 Divider 3"
-	default 0x8002 if SOC_DA850
+	default 0x8002
 	help
 	  Value written to PLLC1 Divider 3 register
 
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/1 davinci: Fix omapl138_lcdk builds

Quoted 10 lines · Tom Rini

The omapl138_lcdk platform is not a DA850 SoC so we need to select SOC_DA8XX and not SOC_DA850, as it was before. It does however point out a bit of a misnomer in how all of these PLL defines are named as they are generic to DA8xx, not DA850 centric. Remove the 'if SOC_DA850' under the defaults as these are simply the defaults. As SOC_DA8XX will select SYS_DA850_DDR_INIT when needed, we do not need it under both SOC options.

Fixes 76e22222d3aa ("Convert CONFIG_SYS_DV_CLKMODE 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/20180131/c0d28bd6/attachment.sig>