powerpc: MPC8544: Move CONFIG_MPC8544 to Kconfig option
authorYork Sun <york.sun@nxp.com>
Tue, 15 Nov 2016 21:57:15 +0000 (13:57 -0800)
committerYork Sun <york.sun@nxp.com>
Thu, 24 Nov 2016 07:42:03 +0000 (23:42 -0800)
Replace CONFIG_MPC8544 with ARCH_MPC8544 in Kconfig.

Signed-off-by: York Sun <york.sun@nxp.com>
arch/powerpc/cpu/mpc85xx/Kconfig
arch/powerpc/cpu/mpc85xx/Makefile
arch/powerpc/cpu/mpc85xx/speed.c
arch/powerpc/include/asm/config_mpc85xx.h
include/configs/MPC8544DS.h
include/configs/socrates.h
scripts/config_whitelist.txt

index 530c232d5909fa07c94300542defed9b39a6ea81..5ea02b52261d3cf2c695e912973ba07c4f10a02c 100644 (file)
@@ -14,6 +14,7 @@ config TARGET_SBC8548
 
 config TARGET_SOCRATES
        bool "Support socrates"
+       select ARCH_MPC8544
 
 config TARGET_B4860QDS
        bool "Support B4860QDS"
@@ -61,6 +62,7 @@ config TARGET_MPC8541CDS
 
 config TARGET_MPC8544DS
        bool "Support MPC8544DS"
+       select ARCH_MPC8544
 
 config TARGET_MPC8548CDS
        bool "Support MPC8548CDS"
@@ -175,6 +177,9 @@ config TARGET_CYRUS
 
 endchoice
 
+config ARCH_MPC8544
+       bool
+
 config ARCH_MPC8548
        bool
 
index 1383454cc2770ee8da867ed59a690800ada09266..744c781f8ec7660fc5269599a641589332886836 100644 (file)
@@ -67,7 +67,7 @@ obj-$(CONFIG_SYS_FSL_QORIQ_CHASSIS2) += fsl_corenet2_serdes.o
 # SoC specific SERDES support
 obj-$(CONFIG_PPC_C29X) += c29x_serdes.o
 obj-$(CONFIG_MPC8536) += mpc8536_serdes.o
-obj-$(CONFIG_MPC8544) += mpc8544_serdes.o
+obj-$(CONFIG_ARCH_MPC8544) += mpc8544_serdes.o
 obj-$(CONFIG_ARCH_MPC8548) += mpc8548_serdes.o
 obj-$(CONFIG_MPC8568) += mpc8568_serdes.o
 obj-$(CONFIG_MPC8569) += mpc8569_serdes.o
index e732969e414467fffd146d8b9c7778da4c8be16a..be03e01b0d0010765eb8fa06f7e014c5853e8a01 100644 (file)
@@ -652,7 +652,7 @@ void get_sys_info(sys_info_t *sys_info)
 int get_clocks (void)
 {
        sys_info_t sys_info;
-#ifdef CONFIG_MPC8544
+#ifdef CONFIG_ARCH_MPC8544
        volatile ccsr_gur_t *gur = (void *) CONFIG_SYS_MPC85xx_GUTS_ADDR;
 #endif
 #if defined(CONFIG_CPM2)
@@ -685,7 +685,7 @@ int get_clocks (void)
        defined(CONFIG_MPC8560) || defined(CONFIG_MPC8555) || \
        defined(CONFIG_P1022)
        gd->arch.i2c1_clk = sys_info.freq_systembus;
-#elif defined(CONFIG_MPC8544)
+#elif defined(CONFIG_ARCH_MPC8544)
        /*
         * On the 8544, the I2C clock is the same as the SEC clock.  This can be
         * either CCB/2 or CCB/3, depending on the value of cfg_sec_freq. See
index 1b4844f523a07adefc53a3377a9865435b149f23..5c97e6974dae101add1a3b054b37b263105636ae 100644 (file)
@@ -57,7 +57,7 @@
 #define CONFIG_SYS_FSL_SEC_COMPAT      2
 #define CONFIG_SYS_CCSRBAR_DEFAULT     0xff700000
 
-#elif defined(CONFIG_MPC8544)
+#elif defined(CONFIG_ARCH_MPC8544)
 #define CONFIG_MAX_CPUS                        1
 #define CONFIG_SYS_FSL_NUM_LAWS                10
 #define CONFIG_SYS_FSL_DDRC_GEN2
index d868ce231544288dbc60d95ba758348737bd9a73..fb5309a02e5a1496feee469f142f26dc26c8a44e 100644 (file)
@@ -14,7 +14,6 @@
 /* High Level Configuration Options */
 #define CONFIG_BOOKE           1       /* BOOKE */
 #define CONFIG_E500            1       /* BOOKE e500 family */
-#define CONFIG_MPC8544         1
 #define CONFIG_MPC8544DS       1
 
 #ifndef CONFIG_SYS_TEXT_BASE
index 753ccfb01e8b4ea8beeeb9995c15e598d058ff51..c697f63162adcb5320f8dab8fbabb3abc2580fe8 100644 (file)
@@ -20,7 +20,6 @@
 /* High Level Configuration Options */
 #define CONFIG_BOOKE           1       /* BOOKE                        */
 #define CONFIG_E500            1       /* BOOKE e500 family            */
-#define CONFIG_MPC8544         1
 #define CONFIG_SOCRATES                1
 
 #define        CONFIG_SYS_TEXT_BASE    0xfff80000
index 68cca9912c746e60792fc38656ecfcdd0e46ae4f..9a1bc548dc0d80b04110fca4116fb7937ddb08ab 100644 (file)
@@ -3151,7 +3151,6 @@ CONFIG_MPC8540
 CONFIG_MPC8540ADS
 CONFIG_MPC8541
 CONFIG_MPC8541CDS
-CONFIG_MPC8544
 CONFIG_MPC8544DS
 CONFIG_MPC855
 CONFIG_MPC8555