]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: vf610: move to standard arch/board approach
authorStefan Agner <stefan.agner@toradex.com>
Tue, 14 Mar 2017 01:41:36 +0000 (18:41 -0700)
committerStefano Babic <sbabic@denx.de>
Sun, 19 Mar 2017 16:30:11 +0000 (17:30 +0100)
Move Freescale/NXP Vybrid to a standard arch/board approach, similar
to what has been done to i.MX 6 earlier in commit 89ebc82137be ("ARM:
mx6: move to a standard arch/board approach").

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
13 files changed:
arch/arm/Kconfig
arch/arm/cpu/armv7/vf610/Kconfig [new file with mode: 0644]
board/freescale/vf610twr/Kconfig
board/phytec/pcm052/Kconfig
board/toradex/colibri_vf/Kconfig
configs/bk4r1_defconfig
configs/colibri_vf_defconfig
configs/pcm052_defconfig
configs/vf610twr_defconfig
configs/vf610twr_nand_defconfig
include/configs/colibri_vf.h
include/configs/pcm052.h
include/configs/vf610twr.h

index e8cdefa5f5437f8f465b11f619ec53c9da890e65..b1f78520d09ea620f26cf99173bdc46d89173551 100644 (file)
@@ -786,31 +786,11 @@ config TARGET_TS4800
        select CPU_V7
        select SYS_FSL_ERRATUM_ESDHC_A001
 
-config TARGET_VF610TWR
-       bool "Support vf610twr"
+config ARCH_VF610
+       bool "Freescale Vybrid"
        select CPU_V7
        select SYS_FSL_ERRATUM_ESDHC111
 
-config TARGET_COLIBRI_VF
-       bool "Support Colibri VF50/61"
-       select BOARD_LATE_INIT
-       select CPU_V7
-       select SYS_FSL_ERRATUM_ESDHC111
-
-config TARGET_PCM052
-       bool "Support pcm-052"
-       select CPU_V7
-       select SYS_FSL_ERRATUM_ESDHC111
-       select SYS_FSL_ERRATUM_ESDHC135
-       select SYS_FSL_ERRATUM_ESDHC_A001
-
-config TARGET_BK4R1
-       bool "Support BK4r1"
-       select CPU_V7
-       select SYS_FSL_ERRATUM_ESDHC111
-       select SYS_FSL_ERRATUM_ESDHC135
-       select SYS_FSL_ERRATUM_ESDHC_A001
-
 config ARCH_ZYNQ
        bool "Xilinx Zynq Platform"
        select BOARD_LATE_INIT
@@ -1197,6 +1177,8 @@ source "arch/arm/mach-tegra/Kconfig"
 
 source "arch/arm/mach-uniphier/Kconfig"
 
+source "arch/arm/cpu/armv7/vf610/Kconfig"
+
 source "arch/arm/mach-zynq/Kconfig"
 
 source "arch/arm/cpu/armv7/Kconfig"
@@ -1253,7 +1235,6 @@ source "board/freescale/mx53evk/Kconfig"
 source "board/freescale/mx53loco/Kconfig"
 source "board/freescale/mx53smd/Kconfig"
 source "board/freescale/s32v234evb/Kconfig"
-source "board/freescale/vf610twr/Kconfig"
 source "board/grinn/chiliboard/Kconfig"
 source "board/gumstix/pepper/Kconfig"
 source "board/h2200/Kconfig"
@@ -1262,7 +1243,6 @@ source "board/imx31_phycore/Kconfig"
 source "board/isee/igep0033/Kconfig"
 source "board/olimex/mx23_olinuxino/Kconfig"
 source "board/phytec/pcm051/Kconfig"
-source "board/phytec/pcm052/Kconfig"
 source "board/ppcag/bg0900/Kconfig"
 source "board/sandisk/sansa_fuze_plus/Kconfig"
 source "board/schulercontrol/sc_sps_1/Kconfig"
@@ -1286,7 +1266,6 @@ source "board/ti/ti814x/Kconfig"
 source "board/ti/ti816x/Kconfig"
 source "board/timll/devkit3250/Kconfig"
 source "board/toradex/colibri_pxa270/Kconfig"
-source "board/toradex/colibri_vf/Kconfig"
 source "board/technologic/ts4600/Kconfig"
 source "board/technologic/ts4800/Kconfig"
 source "board/vscom/baltos/Kconfig"
diff --git a/arch/arm/cpu/armv7/vf610/Kconfig b/arch/arm/cpu/armv7/vf610/Kconfig
new file mode 100644 (file)
index 0000000..13905b5
--- /dev/null
@@ -0,0 +1,36 @@
+if ARCH_VF610
+
+config VF610
+       bool
+       default y
+
+choice
+       prompt "Vybrid board select"
+
+config TARGET_VF610TWR
+       bool "TWR-VF65GS10-DS5"
+
+config TARGET_COLIBRI_VF
+       bool "Colibri VF50/61"
+       select BOARD_LATE_INIT
+
+config TARGET_PCM052
+       bool "PCM-052"
+       select SYS_FSL_ERRATUM_ESDHC135
+       select SYS_FSL_ERRATUM_ESDHC_A001
+
+config TARGET_BK4R1
+       bool "BK4r1"
+       select SYS_FSL_ERRATUM_ESDHC135
+       select SYS_FSL_ERRATUM_ESDHC_A001
+
+endchoice
+
+config SYS_SOC
+       default "vf610"
+
+source "board/freescale/vf610twr/Kconfig"
+source "board/phytec/pcm052/Kconfig"
+source "board/toradex/colibri_vf/Kconfig"
+
+endif
index ef091d6b2bf26fb6b9172c1b9df104d5d41c2e61..3b90ed67fe6af272d6f2f57ba52c1e99df66a97f 100644 (file)
@@ -6,9 +6,6 @@ config SYS_BOARD
 config SYS_VENDOR
        default "freescale"
 
-config SYS_SOC
-       default "vf610"
-
 config SYS_CONFIG_NAME
        default "vf610twr"
 
index 212f9942944202e9c47f2fc6d61276ea9c0b0d78..4fde21c586d80273aefd2db0e7dac1189da02eea 100644 (file)
@@ -6,9 +6,6 @@ config SYS_BOARD
 config SYS_VENDOR
        default "phytec"
 
-config SYS_SOC
-       default "vf610"
-
 config SYS_CONFIG_NAME
        default "pcm052"
 
@@ -26,9 +23,6 @@ config SYS_BOARD
 config SYS_VENDOR
        default "phytec"
 
-config SYS_SOC
-       default "vf610"
-
 config SYS_CONFIG_NAME
        default "bk4r1"
 
index bf9bb0146e5a0749bad1aa04d1ec83bb72389b2c..5f7129dd359bfb6d392f77cd5a58994e6ea2929d 100644 (file)
@@ -1,17 +1,11 @@
 if TARGET_COLIBRI_VF
 
-config SYS_CPU
-       default "armv7"
-
 config SYS_BOARD
        default "colibri_vf"
 
 config SYS_VENDOR
        default "toradex"
 
-config SYS_SOC
-       default "vf610"
-
 config SYS_CONFIG_NAME
        default "colibri_vf"
 
index 964cfed2a7b64857aba2c80621c423a14cb34f14..37a92bc33a134faf275e58541c700817e4665c24 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_ARCH_VF610=y
 CONFIG_TARGET_BK4R1=y
 CONFIG_DEFAULT_DEVICE_TREE="bk4r1"
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/phytec/pcm052/imximage.cfg,ENV_IS_IN_NAND"
index c107710ce0009a170deccc27036a580a1c7d9a23..9d94c61897d89851c481ad5bdbab8a0c3e10bf5d 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_ARCH_VF610=y
 CONFIG_TARGET_COLIBRI_VF=y
 CONFIG_DEFAULT_DEVICE_TREE="vf610-colibri"
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/toradex/colibri_vf/imximage.cfg,ENV_IS_IN_NAND,IMX_NAND"
index fbd7841051222b469ad9f1915144baa968b666df..b925aac022cd9e2bdd4aed3bc130d5725d5903fe 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_ARCH_VF610=y
 CONFIG_TARGET_PCM052=y
 CONFIG_DEFAULT_DEVICE_TREE="pcm052"
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/phytec/pcm052/imximage.cfg,ENV_IS_IN_NAND"
index 3f5db8b671a9482a96420da98a9c4610f0786678..12f269662f210ca3754e2c957a9f3224e886ef03 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_ARCH_VF610=y
 CONFIG_TARGET_VF610TWR=y
 CONFIG_DEFAULT_DEVICE_TREE="vf610-twr"
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/vf610twr/imximage.cfg,ENV_IS_IN_MMC"
index c78f71659e657a6e28170bdb3daa9c914bb235c2..a313910decb85ead8194da8c041c266205b5ff41 100644 (file)
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_ARCH_VF610=y
 CONFIG_TARGET_VF610TWR=y
 CONFIG_DEFAULT_DEVICE_TREE="vf610-twr"
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/vf610twr/imximage.cfg,ENV_IS_IN_NAND"
index bfd5fbd8d7387e9b454089061f9fc004832513e7..6d05f930d36f841ccb52d05589d5479bc7350da8 100644 (file)
@@ -14,7 +14,6 @@
 
 #include <asm/arch/imx-regs.h>
 
-#define CONFIG_VF610
 #define CONFIG_SYS_THUMB_BUILD
 #define CONFIG_SYS_FSL_CLK
 
index 49090498dacade8753dbaddbe78724223cc9db3a..ba3b9750de0b1423fcd3e72e12fc7cddc24d8258 100644 (file)
@@ -11,8 +11,6 @@
 
 #include <asm/arch/imx-regs.h>
 
-#define CONFIG_VF610
-
 #define CONFIG_SYS_THUMB_BUILD
 
 #define CONFIG_SKIP_LOWLEVEL_INIT
index dde3a114aaf68a35edd705981daa5265e7922232..b6407e94712c866df6e208401ed92f38dc9947d7 100644 (file)
@@ -11,8 +11,6 @@
 
 #include <asm/arch/imx-regs.h>
 
-#define CONFIG_VF610
-
 #define CONFIG_SYS_FSL_CLK
 
 #define CONFIG_MACH_TYPE               4146