]> git.sur5r.net Git - u-boot/commitdiff
armv8: ls1046a: Convert CONFIG_LS1046A to Kconfig option ARCH_LS1046A
authorYork Sun <york.sun@nxp.com>
Mon, 26 Sep 2016 15:09:24 +0000 (08:09 -0700)
committerYork Sun <york.sun@nxp.com>
Mon, 26 Sep 2016 15:53:07 +0000 (08:53 -0700)
Move this option to Kconfig and clean up existing uses.

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Mingkai Hu <mingkai.hu@nxp.com>
CC: Gong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/Kconfig
arch/arm/cpu/armv8/fsl-layerscape/Kconfig [new file with mode: 0644]
arch/arm/cpu/armv8/fsl-layerscape/Makefile
arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S
arch/arm/cpu/armv8/fsl-layerscape/soc.c
arch/arm/include/asm/arch-fsl-layerscape/config.h
drivers/net/fm/Makefile
include/configs/ls1046a_common.h

index 1560bcc7a5ce9505e145c48ad3c1db1401ef13e8..aed89c953a56176b4a00a982c8d4f66e4d271659 100644 (file)
@@ -843,6 +843,7 @@ config TARGET_LS1043ARDB
 
 config TARGET_LS1046AQDS
        bool "Support ls1046aqds"
+       select ARCH_LS1046A
        select ARM64
        select ARMV8_MULTIENTRY
        select SUPPORT_SPL
@@ -855,6 +856,7 @@ config TARGET_LS1046AQDS
 
 config TARGET_LS1046ARDB
        bool "Support ls1046ardb"
+       select ARCH_LS1046A
        select ARM64
        select ARMV8_MULTIENTRY
        select SUPPORT_SPL
@@ -951,6 +953,8 @@ source "arch/arm/cpu/armv7/mx5/Kconfig"
 
 source "arch/arm/cpu/armv7/omap-common/Kconfig"
 
+source "arch/arm/cpu/armv8/fsl-layerscape/Kconfig"
+
 source "arch/arm/mach-orion5x/Kconfig"
 
 source "arch/arm/mach-rmobile/Kconfig"
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
new file mode 100644 (file)
index 0000000..c234eff
--- /dev/null
@@ -0,0 +1,2 @@
+config ARCH_LS1046A
+       bool "Freescale Layerscape LS1046A SoC"
index 8c1317faea26931c64370cf0ff710ec88f0dd23a..f9590af9a5b3ac4d01b5d0ff1bb0aeb33fe4de80 100644 (file)
@@ -34,6 +34,6 @@ ifneq ($(CONFIG_LS1012A),)
 obj-$(CONFIG_SYS_HAS_SERDES) += ls1012a_serdes.o
 endif
 
-ifneq ($(CONFIG_LS1046A),)
+ifneq ($(CONFIG_ARCH_LS1046A),)
 obj-$(CONFIG_SYS_HAS_SERDES) += ls1046a_serdes.o
 endif
index 6451a36e54a0f2a28694882695ad4224cfac0d78..5d0b7a45c354d6c12fe25b2e04c923437b6c6af7 100644 (file)
@@ -180,7 +180,7 @@ ENTRY(lowlevel_init)
        dsb     sy
 #endif
 
-#ifdef CONFIG_LS1046A
+#ifdef CONFIG_ARCH_LS1046A
        /* Initialize the L2 RAM latency */
        mrs   x1, S3_1_c11_c0_2
        mov   x0, #0x1C7
index 5ca721d079c016458f274051b228f802ed44a49a..463d1e30d2c3966b1b858c28af43f7d9535a25d3 100644 (file)
@@ -228,7 +228,7 @@ int sata_init(void)
 {
        struct ccsr_ahci __iomem *ccsr_ahci = (void *)CONFIG_SYS_SATA;
 
-#ifdef CONFIG_LS1046A
+#ifdef CONFIG_ARCH_LS1046A
        /* Disable SATA ECC */
        out_le32((void *)CONFIG_SYS_DCSR_DCFG_ADDR + 0x520, 0x80000000);
 #endif
index 81a5e7c6cf92de11d7bf6b9435fca560f2403011..e7c7d98af0341c41894f41d07125538432274d7c 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef _ASM_ARMV8_FSL_LAYERSCAPE_CONFIG_H_
 #define _ASM_ARMV8_FSL_LAYERSCAPE_CONFIG_H_
 
+#include <linux/kconfig.h>
 #include <fsl_ddrc_version.h>
 
 #define CONFIG_STANDALONE_LOAD_ADDR    0x80300000
 
 #define GICD_BASE              0x01401000
 #define GICC_BASE              0x01402000
-#elif defined(CONFIG_LS1046A)
+#elif defined(CONFIG_ARCH_LS1046A)
 #define CONFIG_MAX_CPUS                                4
 #define CONFIG_SYS_FMAN_V3
 #define CONFIG_SYS_NUM_FMAN                    1
index 344fbe20a566ce5c3de39c4dc3937a8750160efa..316fef485dac6e1e8ffa46ee99acdd6dda0df293 100644 (file)
@@ -39,4 +39,4 @@ obj-$(CONFIG_PPC_T4080) += t4240.o
 obj-$(CONFIG_PPC_B4420) += b4860.o
 obj-$(CONFIG_PPC_B4860) += b4860.o
 obj-$(CONFIG_LS1043A)  += ls1043.o
-obj-$(CONFIG_LS1046A)  += ls1046.o
+obj-$(CONFIG_ARCH_LS1046A)     += ls1046.o
index 5856de8bba5c4b22271180e31a7800c3426c7d6c..7c5e6350e2907639f8337f17f3592efa9a5079b5 100644 (file)
@@ -10,7 +10,6 @@
 #define CONFIG_REMAKE_ELF
 #define CONFIG_FSL_LAYERSCAPE
 #define CONFIG_FSL_LSCH2
-#define CONFIG_LS1046A
 #define CONFIG_MP
 #define CONFIG_SYS_FSL_CLK
 #define CONFIG_GICV2