]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
powerpc: mpc85xx: Move CONFIG_SYS_NUM_TLBCAMS to Kconfig
authorYork Sun <york.sun@nxp.com>
Wed, 28 Dec 2016 16:43:28 +0000 (08:43 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 5 Jan 2017 00:40:13 +0000 (19:40 -0500)
Use Kconfig option for SYS_NUM_TLBCAMS and clean up existing macros.

Signed-off-by: York Sun <york.sun@nxp.com>
arch/powerpc/cpu/mpc85xx/Kconfig
arch/powerpc/include/asm/config_mpc85xx.h

index 6d8709e76c9f6e810e25000ebb16be8127694b8a..2b1d0f69f3f51c766ea2594ff42ab5cbd68c1a66 100644 (file)
@@ -647,6 +647,14 @@ config SYS_FSL_NUM_LAWS
                Number of local access windows. This is fixed per SoC.
                If not sure, do not change.
 
+config SYS_NUM_TLBCAMS
+       int "Number of TLB CAM entries"
+       default 64 if E500MC
+       default 16
+       help
+               Number of TLB CAM entries for Book-E chips. 64 for E500MC,
+               16 for other E500 SoCs.
+
 source "board/freescale/b4860qds/Kconfig"
 source "board/freescale/bsc9131rdb/Kconfig"
 source "board/freescale/bsc9132qds/Kconfig"
index 8cfc6127a7f304d43f16c23870977a028ead1ed6..57612183e8c3c363a7f5232133612dcc18733221 100644 (file)
 #define CONFIG_SYS_FSL_SFP_BE
 #define CONFIG_SYS_FSL_SEC_MON_BE
 
-/* Number of TLB CAM entries we have on FSL Book-E chips */
-#if defined(CONFIG_E500MC)
-#define CONFIG_SYS_NUM_TLBCAMS         64
-#elif defined(CONFIG_E500)
-#define CONFIG_SYS_NUM_TLBCAMS         16
-#endif
-
 #if defined(CONFIG_ARCH_MPC8536)
 #define CONFIG_SYS_PPC_E500_DEBUG_TLB  1
 #define CONFIG_SYS_FSL_SEC_COMPAT      2