Skip to contentSkip to conversation

mpc83xx: Fix MPC8360 system PLL dependencies

PATCH In review Pengpeng Hou 2 participants 2 messages Sep 6 – Sep 30 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpc83xx: Fix MPC8360 system PLL dependencies

The HRCW Kconfig migration misspelled ARCH_MPC8360 as ARCH_MPV8360 in the system PLL multiplication-factor dependencies. Since the latter symbol does not exist, factors 7:1 through 15:1 are not available for MPC8360 and factor 16:1 is unreachable altogether.

Use the actual architecture symbol so these choices can provide the SYSTEM_PLL_FACTOR value used to assemble the hardware reset configuration word.

Fixes 21c1502a4a81 ("mpc83xx: Kconfig: Migrate HRCW to Kconfig")

---
Testing:
- Generated kmeter1_defconfig, selected SYSTEM_PLL_FACTOR_7_1, ran olddefconfig, and verified that SYSTEM_PLL_FACTOR resolves to 7.

 arch/powerpc/cpu/mpc83xx/hrcw/Kconfig | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
arch/powerpc/cpu/mpc83xx/hrcw/Kconfig +10 -10
index 44f66cd52..0fc3b7765 100644
@@ -67,43 +67,43 @@ config SYSTEM_PLL_FACTOR_6_1
 	bool "6 : 1"
 
 config SYSTEM_PLL_FACTOR_7_1
-	depends on ARCH_MPV8360 || ARCH_MPC837X
+	depends on ARCH_MPC8360 || ARCH_MPC837X
 	bool "7 : 1"
 
 config SYSTEM_PLL_FACTOR_8_1
-	depends on ARCH_MPV8360 || ARCH_MPC837X
+	depends on ARCH_MPC8360 || ARCH_MPC837X
 	bool "8 : 1"
 
 config SYSTEM_PLL_FACTOR_9_1
-	depends on ARCH_MPV8360 || ARCH_MPC837X
+	depends on ARCH_MPC8360 || ARCH_MPC837X
 	bool "9 : 1"
 
 config SYSTEM_PLL_FACTOR_10_1
-	depends on ARCH_MPV8360 || ARCH_MPC837X
+	depends on ARCH_MPC8360 || ARCH_MPC837X
 	bool "10 : 1"
 
 config SYSTEM_PLL_FACTOR_11_1
-	depends on ARCH_MPV8360 || ARCH_MPC837X
+	depends on ARCH_MPC8360 || ARCH_MPC837X
 	bool "11 : 1"
 
 config SYSTEM_PLL_FACTOR_12_1
-	depends on ARCH_MPV8360 || ARCH_MPC837X
+	depends on ARCH_MPC8360 || ARCH_MPC837X
 	bool "12 : 1"
 
 config SYSTEM_PLL_FACTOR_13_1
-	depends on ARCH_MPV8360 || ARCH_MPC837X
+	depends on ARCH_MPC8360 || ARCH_MPC837X
 	bool "13 : 1"
 
 config SYSTEM_PLL_FACTOR_14_1
-	depends on ARCH_MPV8360 || ARCH_MPC837X
+	depends on ARCH_MPC8360 || ARCH_MPC837X
 	bool "14 : 1"
 
 config SYSTEM_PLL_FACTOR_15_1
-	depends on ARCH_MPV8360 || ARCH_MPC837X
+	depends on ARCH_MPC8360 || ARCH_MPC837X
 	bool "15 : 1"
 
 config SYSTEM_PLL_FACTOR_16_1
-	depends on ARCH_MPV8360
+	depends on ARCH_MPC8360
 	bool "16 : 1"
 
 endchoice
#1 lore raw
Quoted 10 lines · Pengpeng Hou

The HRCW Kconfig migration misspelled ARCH_MPC8360 as ARCH_MPV8360 in the system PLL multiplication-factor dependencies. Since the latter symbol does not exist, factors 7:1 through 15:1 are not available for MPC8360 and factor 16:1 is unreachable altogether.

Use the actual architecture symbol so these choices can provide the SYSTEM_PLL_FACTOR value used to assemble the hardware reset configuration word.

[...]

Applied to u-boot/next, thanks!

[1/1] mpc83xx: Fix MPC8360 system PLL dependencies

      commit: a2d66e6a938ca0cdaaea12fd7fee9181fab219ff
Signature · 1 line
Tom