summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYork Sun <york.sun@nxp.com>2016-12-01 14:10:47 -0800
committerYork Sun <york.sun@nxp.com>2016-12-04 08:59:11 -0800
commit54db3c20bdc43c458854446939b706b4adee46cf (patch)
tree87ebda637298ea653f4bc487912bc86f72006b9b
parent8303acbce8269048b29ee72b33ebbfadef41b6f2 (diff)
downloadu-boot-imx-54db3c20bdc43c458854446939b706b4adee46cf.zip
u-boot-imx-54db3c20bdc43c458854446939b706b4adee46cf.tar.gz
u-boot-imx-54db3c20bdc43c458854446939b706b4adee46cf.tar.bz2
powerpc: mpc86xx: Convert CONFIG_SYS_FSL_NUM_LAWS to Kconfig option
Use Kconfig instead of defining this macro in header file. Signed-off-by: York Sun <york.sun@nxp.com>
-rw-r--r--arch/powerpc/cpu/mpc86xx/Kconfig6
-rw-r--r--arch/powerpc/include/asm/config_mpc86xx.h12
-rw-r--r--scripts/config_whitelist.txt1
3 files changed, 6 insertions, 13 deletions
diff --git a/arch/powerpc/cpu/mpc86xx/Kconfig b/arch/powerpc/cpu/mpc86xx/Kconfig
index 42b2ed2..11afffa 100644
--- a/arch/powerpc/cpu/mpc86xx/Kconfig
+++ b/arch/powerpc/cpu/mpc86xx/Kconfig
@@ -47,6 +47,12 @@ config SYS_CCSRBAR_DEFAULT
is fixed on each SoC. Some SoCs can have different value
if changed by pre-boot regime. The value here must match
the current value in SoC. If not sure, do not change.
+config SYS_FSL_NUM_LAWS
+ int "Number of local access windows"
+ default 10 if ARCH_MPC8610 || ARCH_MPC8641
+ help
+ Number of local access windows. This is fixed per SoC.
+ If not sure, do not change.
source "board/freescale/mpc8610hpcd/Kconfig"
source "board/freescale/mpc8641hpcn/Kconfig"
diff --git a/arch/powerpc/include/asm/config_mpc86xx.h b/arch/powerpc/include/asm/config_mpc86xx.h
index c41dc99..f053b9c 100644
--- a/arch/powerpc/include/asm/config_mpc86xx.h
+++ b/arch/powerpc/include/asm/config_mpc86xx.h
@@ -9,16 +9,4 @@
#define CONFIG_SYS_FSL_DDR_86XX
-/* SoC specific defines for Freescale MPC86xx processors */
-
-#if defined(CONFIG_ARCH_MPC8610)
-#define CONFIG_SYS_FSL_NUM_LAWS 10
-
-#elif defined(CONFIG_ARCH_MPC8641)
-#define CONFIG_SYS_FSL_NUM_LAWS 10
-
-#else
-#error Processor type not defined for this platform
-#endif
-
#endif /* _ASM_MPC85xx_CONFIG_H_ */
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index e123f74..8e45679 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -5514,7 +5514,6 @@ CONFIG_SYS_FSL_NI_SIZE
CONFIG_SYS_FSL_NO_SERDES
CONFIG_SYS_FSL_NUM_CC_PLL
CONFIG_SYS_FSL_NUM_CC_PLLS
-CONFIG_SYS_FSL_NUM_LAWS
CONFIG_SYS_FSL_OCRAM_BASE
CONFIG_SYS_FSL_OCRAM_SIZE
CONFIG_SYS_FSL_OTHER_DDR_NUM_CTRLS