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")
Signed-off-by: Pengpeng Hou <[email protected]>
---
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(-)
diff --git a/arch/powerpc/cpu/mpc83xx/hid/Kconfig
b/arch/powerpc/cpu/mpc83xx/hid/Kconfig
index 1f61108ce..9473213ba 100644
--- a/arch/powerpc/cpu/mpc83xx/hid/Kconfig
+++ b/arch/powerpc/cpu/mpc83xx/hid/Kconfig
@@ -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"