]> git.sur5r.net Git - u-boot/commitdiff
powerpc: MPC8610: Remove macro CONFIG_MPC8610
authorYork Sun <york.sun@nxp.com>
Wed, 23 Nov 2016 22:06:21 +0000 (14:06 -0800)
committerYork Sun <york.sun@nxp.com>
Thu, 24 Nov 2016 07:42:16 +0000 (23:42 -0800)
Replace CONFIG_MPC8610 with ARCH_MPC8610 in Kconfig and clean up
existing macros.

Signed-off-by: York Sun <york.sun@nxp.com>
arch/powerpc/cpu/mpc86xx/Kconfig
arch/powerpc/cpu/mpc86xx/Makefile
arch/powerpc/cpu/mpc86xx/cpu.c
arch/powerpc/cpu/mpc86xx/speed.c
arch/powerpc/include/asm/config_mpc86xx.h
arch/powerpc/include/asm/immap_86xx.h
include/configs/MPC8610HPCD.h
scripts/config_whitelist.txt

index fe1859d206bc99e5875b6eef841d4de8c44cef65..c3b3b07c3c11c4e57bbd5495f2b459024b661db9 100644 (file)
@@ -13,6 +13,7 @@ config TARGET_SBC8641D
 
 config TARGET_MPC8610HPCD
        bool "Support MPC8610HPCD"
+       select ARCH_MPC8610
 
 config TARGET_MPC8641HPCN
        bool "Support MPC8641HPCN"
@@ -22,6 +23,9 @@ config TARGET_XPEDITE517X
 
 endchoice
 
+config ARCH_MPC8610
+       bool
+
 source "board/freescale/mpc8610hpcd/Kconfig"
 source "board/freescale/mpc8641hpcn/Kconfig"
 source "board/sbc8641d/Kconfig"
index 0f790b0efc4440a9f4b8c21c556546d1edfae97f..0caf9f10128a2b195bfdea43e5599a0eb50b4664 100644 (file)
@@ -19,6 +19,6 @@ obj-y += cpu_init.o
 obj-$(CONFIG_OF_LIBFDT) += fdt.o
 obj-y  += interrupts.o
 obj-$(CONFIG_MP) += mp.o
-obj-$(CONFIG_MPC8610) += mpc8610_serdes.o
+obj-$(CONFIG_ARCH_MPC8610) += mpc8610_serdes.o
 obj-$(CONFIG_MPC8641) += mpc8641_serdes.o
 obj-y  += speed.o
index 30518544dd65827e723d054785b1edcc8a3c0017..4dc483b7d4227157a8cefd33a5e72494ff5f4ad5 100644 (file)
@@ -90,7 +90,7 @@ checkcpu(void)
 
        puts("L2:    ");
        if (get_l2cr() & 0x80000000) {
-#if defined(CONFIG_MPC8610)
+#if defined(CONFIG_ARCH_MPC8610)
                puts("256");
 #elif defined(CONFIG_MPC8641)
                puts("512");
@@ -139,7 +139,7 @@ get_tbclk(void)
 void
 watchdog_reset(void)
 {
-#if defined(CONFIG_MPC8610)
+#if defined(CONFIG_ARCH_MPC8610)
        /*
         * This actually feed the hard enabled watchdog.
         */
index 5abe6f0bf2cf102a0ce8a4e75ba593e373687089..05f23db457884edca6c05aee6b0a15f55ed6de76 100644 (file)
@@ -115,7 +115,7 @@ int get_clocks(void)
         * for that SOC. This information is taken from application note
         * AN2919.
         */
-#ifdef CONFIG_MPC8610
+#ifdef CONFIG_ARCH_MPC8610
        gd->arch.i2c1_clk = sys_info.freq_systembus;
 #else
        gd->arch.i2c1_clk = sys_info.freq_systembus / 2;
index 4f9b2252be671f1012cdd495d514ba2ecf7b5f55..96340affa895e2dc67ad8cb1e608b251e6160e83 100644 (file)
@@ -11,7 +11,7 @@
 
 /* SoC specific defines for Freescale MPC86xx processors */
 
-#if defined(CONFIG_MPC8610)
+#if defined(CONFIG_ARCH_MPC8610)
 #define CONFIG_MAX_CPUS                        1
 #define CONFIG_SYS_FSL_NUM_LAWS                10
 
index b078569c45ebe824be7f16802242e40e1aac82e4..1fbc63a5ceb8d866bba1b217bbd998c1b5e742cc 100644 (file)
@@ -1195,7 +1195,7 @@ extern immap_t  *immr;
 
 
 #define CONFIG_SYS_MPC86xx_PCI1_OFFSET         0x8000
-#ifdef CONFIG_MPC8610
+#ifdef CONFIG_ARCH_MPC8610
 #define CONFIG_SYS_MPC86xx_PCIE1_OFFSET         0xa000
 #else
 #define CONFIG_SYS_MPC86xx_PCIE1_OFFSET         0x8000
index 2529d8a71e2d2fc8b9ac6f45e4957c41ca6733f3..b71a0f5130e6b3164179be922524062c4cb13b88 100644 (file)
@@ -12,7 +12,6 @@
 #define __CONFIG_H
 
 /* High Level Configuration Options */
-#define CONFIG_MPC8610         1       /* MPC8610 specific */
 #define CONFIG_MPC8610HPCD     1       /* MPC8610HPCD board specific */
 #define CONFIG_LINUX_RESET_VEC 0x100   /* Reset vector used by Linux */
 
index e8a3c674b24f07c01ac9ea8d93360e47527d5210..e5e91d9a5a4dabfe0eaab819e36e82323da4c778 100644 (file)
@@ -3146,7 +3146,6 @@ CONFIG_MPC85XX_FEC_NAME
 CONFIG_MPC85XX_PCI2
 CONFIG_MPC860
 CONFIG_MPC860T
-CONFIG_MPC8610
 CONFIG_MPC8610HPCD
 CONFIG_MPC862
 CONFIG_MPC8641