From 86d8000f105c7a2d0846dbf60831bcfa0967d079 Mon Sep 17 00:00:00 2001 From: York Sun Date: Thu, 1 Dec 2016 13:43:06 -0800 Subject: script: remove CONFIG_SYS_CCSRBAR_DEFAULT from white list Now all mpc85xx and mpc86xx have converted to use SYS_CCSRBAR_DEFAULT in Kconfig. Drop this macro for LSCH2 and remove from white list. Signed-off-by: York Sun --- scripts/config_whitelist.txt | 1 - 1 file changed, 1 deletion(-) (limited to 'scripts') diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index b3ed48b82f5..4d5403d6dff 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -4482,7 +4482,6 @@ CONFIG_SYS_CBSIZE CONFIG_SYS_CCCR CONFIG_SYS_CCI400_ADDR CONFIG_SYS_CCSRBAR -CONFIG_SYS_CCSRBAR_DEFAULT CONFIG_SYS_CCSRBAR_PHYS CONFIG_SYS_CCSRBAR_PHYS_HIGH CONFIG_SYS_CCSRBAR_PHYS_LOW -- cgit v1.3.1 From f4325b47a8e79676c94b85c0a75f14626bb6d9c3 Mon Sep 17 00:00:00 2001 From: York Sun Date: Fri, 2 Dec 2016 10:45:23 -0800 Subject: powerpc: mpc86xx: Move CONFIG_FSL_LAW to Kconfig Clean up existing definitions and drop from white list. Signed-off-by: York Sun --- arch/powerpc/cpu/mpc86xx/Kconfig | 7 +++++++ include/configs/MPC8610HPCD.h | 1 - include/configs/MPC8641HPCN.h | 1 - include/configs/sbc8641d.h | 1 - include/configs/xpedite517x.h | 1 - scripts/config_whitelist.txt | 1 - 6 files changed, 7 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/arch/powerpc/cpu/mpc86xx/Kconfig b/arch/powerpc/cpu/mpc86xx/Kconfig index 57e7476ca70..42b2ed26665 100644 --- a/arch/powerpc/cpu/mpc86xx/Kconfig +++ b/arch/powerpc/cpu/mpc86xx/Kconfig @@ -28,9 +28,16 @@ endchoice config ARCH_MPC8610 bool + select FSL_LAW config ARCH_MPC8641 bool + select FSL_LAW + +config FSL_LAW + bool + help + Use Freescale common code for Local Access Window config SYS_CCSRBAR_DEFAULT hex "Default CCSRBAR address" diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h index 4cf9bd6e77f..761032e923d 100644 --- a/include/configs/MPC8610HPCD.h +++ b/include/configs/MPC8610HPCD.h @@ -42,7 +42,6 @@ #define CONFIG_FSL_PCI_INIT 1 /* Use common FSL init code */ #define CONFIG_PCI_INDIRECT_BRIDGE 1 /* indirect PCI bridge support */ #define CONFIG_SYS_PCI_64BIT 1 /* enable 64-bit PCI resources */ -#define CONFIG_FSL_LAW 1 /* Use common FSL init code */ #define CONFIG_ENV_OVERWRITE #define CONFIG_INTERRUPTS /* enable pci, srio, ddr interrupts */ diff --git a/include/configs/MPC8641HPCN.h b/include/configs/MPC8641HPCN.h index 06ef0d95208..8845ea91704 100644 --- a/include/configs/MPC8641HPCN.h +++ b/include/configs/MPC8641HPCN.h @@ -44,7 +44,6 @@ #define CONFIG_PCIE2 1 /* PCIE controller 2 (slot) */ #define CONFIG_FSL_PCI_INIT 1 /* Use common FSL init code */ #define CONFIG_SYS_PCI_64BIT 1 /* enable 64-bit PCI resources */ -#define CONFIG_FSL_LAW 1 /* Use common FSL law init code */ #define CONFIG_TSEC_ENET /* tsec ethernet support */ #define CONFIG_ENV_OVERWRITE diff --git a/include/configs/sbc8641d.h b/include/configs/sbc8641d.h index 7c8ceb30f2f..87056dbcaca 100644 --- a/include/configs/sbc8641d.h +++ b/include/configs/sbc8641d.h @@ -46,7 +46,6 @@ #define CONFIG_PCIE2 1 /* PCIE controller 2 (slot 2) */ #define CONFIG_FSL_PCI_INIT 1 /* Use common FSL init code */ #define CONFIG_PCI_INDIRECT_BRIDGE 1 /* indirect PCI bridge support */ -#define CONFIG_FSL_LAW 1 /* Use common FSL init code */ #define CONFIG_TSEC_ENET /* tsec ethernet support */ #define CONFIG_ENV_OVERWRITE diff --git a/include/configs/xpedite517x.h b/include/configs/xpedite517x.h index 86bc1cfdf0d..df36ad7ce96 100644 --- a/include/configs/xpedite517x.h +++ b/include/configs/xpedite517x.h @@ -31,7 +31,6 @@ #define CONFIG_FSL_PCI_INIT 1 /* Use common FSL init code */ #define CONFIG_PCI_INDIRECT_BRIDGE 1 /* indirect PCI bridge support */ #define CONFIG_SYS_PCI_64BIT 1 /* enable 64-bit PCI resources */ -#define CONFIG_FSL_LAW 1 /* Use common FSL init code */ /* * DDR config diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 4d5403d6dff..e123f7429f0 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -1276,7 +1276,6 @@ CONFIG_FSL_I2C_CUSTOM_FDR CONFIG_FSL_IFC CONFIG_FSL_IIM CONFIG_FSL_ISBC_KEY_EXT -CONFIG_FSL_LAW CONFIG_FSL_LAYERSCAPE CONFIG_FSL_LBC CONFIG_FSL_LINFLEXUART -- cgit v1.3.1 From 54db3c20bdc43c458854446939b706b4adee46cf Mon Sep 17 00:00:00 2001 From: York Sun Date: Thu, 1 Dec 2016 14:10:47 -0800 Subject: 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 --- arch/powerpc/cpu/mpc86xx/Kconfig | 6 ++++++ arch/powerpc/include/asm/config_mpc86xx.h | 12 ------------ scripts/config_whitelist.txt | 1 - 3 files changed, 6 insertions(+), 13 deletions(-) (limited to 'scripts') diff --git a/arch/powerpc/cpu/mpc86xx/Kconfig b/arch/powerpc/cpu/mpc86xx/Kconfig index 42b2ed26665..11afffa8303 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 c41dc99681c..f053b9cf5ea 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 e123f7429f0..8e4567982a5 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 -- cgit v1.3.1