Skip to contentSkip to conversation

mpc83xx: Fix MPC837X cache way-lock 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 MPC837X cache way-lock dependencies

The HID Kconfig migration retained ARCH_MPC8379 in the cache way-lock conditions, but MPC837x processors are represented by ARCH_MPC837X. ARCH_MPC8379 is undefined, so the additional instruction and data cache way-lock choices are hidden on the MPC837XERDB target.

Use the architecture symbol selected by the target so the HID2_IWLCK and HID2_DWLCK values can cover the remaining cache ways.

Fixes be5abb0a834c ("mpc83xx: Migrate HID config to Kconfig")

---
Testing:
- Generated MPC837XERDB_defconfig, selected instruction and data way 3, ran olddefconfig, and verified the derived 0x8000 and 0x80 values.

 arch/powerpc/cpu/mpc83xx/hid/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/cpu/mpc83xx/hid/Kconfig +2 -2
index 1f61108ce..9473213ba 100644
@@ -434,7 +434,7 @@ config HID2_IWLCK_1
 config HID2_IWLCK_2
 	bool "Way 0 through 2 locked"
 
-if ARCH_MPC8360 || ARCH_MPC8379
+if ARCH_MPC8360 || ARCH_MPC837X
 
 config HID2_IWLCK_3
 	bool "Way 0 through 3 locked"
@@ -470,7 +470,7 @@ config HID2_DWLCK_1
 config HID2_DWLCK_2
 	bool "Way 0 through 2 locked"
 
-if ARCH_MPC8360 || ARCH_MPC8379
+if ARCH_MPC8360 || ARCH_MPC837X
 
 config HID2_DWLCK_3
 	bool "Way 0 through 3 locked"
#1 lore raw
Quoted 9 lines · Pengpeng Hou

The HID Kconfig migration retained ARCH_MPC8379 in the cache way-lock conditions, but MPC837x processors are represented by ARCH_MPC837X. ARCH_MPC8379 is undefined, so the additional instruction and data cache way-lock choices are hidden on the MPC837XERDB target.

Use the architecture symbol selected by the target so the HID2_IWLCK and HID2_DWLCK values can cover the remaining cache ways.

[...]

Applied to u-boot/next, thanks!

[1/1] mpc83xx: Fix MPC837X cache way-lock dependencies

      commit: 8c6c54c9e767ecc0443742b92e25120414562123
Signature · 1 line
Tom