summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-03-13 17:55:27 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-03-30 10:10:17 +0200
commit2f6afae9faa6a32b74cce09bfff5a82efbb8945b (patch)
tree879b236a0144caefe24789464f93cfccb3223cd5
parentf0d5faf6f5ce11423bb26ee905ca22522cb62366 (diff)
ARM: vf610: move to standard arch/board approach
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> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--arch/arm/Kconfig20
-rw-r--r--arch/arm/cpu/armv7/vf610/Kconfig36
-rw-r--r--board/freescale/vf610twr/Kconfig3
-rw-r--r--board/phytec/pcm052/Kconfig6
-rw-r--r--board/toradex/colibri_vf/Kconfig6
-rw-r--r--configs/bk4r1_defconfig1
-rw-r--r--configs/colibri_vf_defconfig3
-rw-r--r--configs/pcm052_defconfig1
-rw-r--r--configs/vf610twr_defconfig1
-rw-r--r--configs/vf610twr_nand_defconfig1
-rw-r--r--include/configs/colibri_vf.h1
-rw-r--r--include/configs/pcm052.h2
-rw-r--r--include/configs/vf610twr.h2
13 files changed, 46 insertions, 37 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index d7a9b11c76..9719475a61 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -583,20 +583,8 @@ config TARGET_TS4800
bool "Support TS4800"
select CPU_V7
-config TARGET_VF610TWR
- bool "Support vf610twr"
- select CPU_V7
-
-config TARGET_COLIBRI_VF
- bool "Support Colibri VF50/61"
- select CPU_V7
-
-config TARGET_PCM052
- bool "Support pcm-052"
- select CPU_V7
-
-config TARGET_BK4R1
- bool "Support BK4r1"
+config ARCH_VF610
+ bool "Freescale Vybrid"
select CPU_V7
config ARCH_ZYNQ
@@ -925,6 +913,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"
@@ -988,7 +978,6 @@ source "board/imx31_phycore/Kconfig"
source "board/isee/igep0033/Kconfig"
source "board/mpl/vcma9/Kconfig"
source "board/olimex/mx23_olinuxino/Kconfig"
-source "board/phytec/pcm051/Kconfig"
source "board/phytec/pcm052/Kconfig"
source "board/ppcag/bg0900/Kconfig"
source "board/samsung/smdk2410/Kconfig"
@@ -1014,7 +1003,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/ts4800/Kconfig"
source "board/vscom/baltos/Kconfig"
source "board/woodburn/Kconfig"
diff --git a/arch/arm/cpu/armv7/vf610/Kconfig b/arch/arm/cpu/armv7/vf610/Kconfig
new file mode 100644
index 0000000000..13905b5281
--- /dev/null
+++ b/arch/arm/cpu/armv7/vf610/Kconfig
@@ -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
diff --git a/board/freescale/vf610twr/Kconfig b/board/freescale/vf610twr/Kconfig
index ef091d6b2b..3b90ed67fe 100644
--- a/board/freescale/vf610twr/Kconfig
+++ b/board/freescale/vf610twr/Kconfig
@@ -6,9 +6,6 @@ config SYS_BOARD
config SYS_VENDOR
default "freescale"
-config SYS_SOC
- default "vf610"
-
config SYS_CONFIG_NAME
default "vf610twr"
diff --git a/board/phytec/pcm052/Kconfig b/board/phytec/pcm052/Kconfig
index 212f994294..4fde21c586 100644
--- a/board/phytec/pcm052/Kconfig
+++ b/board/phytec/pcm052/Kconfig
@@ -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"
diff --git a/board/toradex/colibri_vf/Kconfig b/board/toradex/colibri_vf/Kconfig
index bf9bb0146e..5f7129dd35 100644
--- a/board/toradex/colibri_vf/Kconfig
+++ b/board/toradex/colibri_vf/Kconfig
@@ -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"
diff --git a/configs/bk4r1_defconfig b/configs/bk4r1_defconfig
index 39a47eafab..aee55c6298 100644
--- a/configs/bk4r1_defconfig
+++ b/configs/bk4r1_defconfig
@@ -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"
diff --git a/configs/colibri_vf_defconfig b/configs/colibri_vf_defconfig
index cf2d87ac5e..1467c39974 100644
--- a/configs/colibri_vf_defconfig
+++ b/configs/colibri_vf_defconfig
@@ -1,6 +1,7 @@
CONFIG_ARM=y
-CONFIG_TARGET_COLIBRI_VF=y
+CONFIG_ARCH_VF610=y
CONFIG_DM_SERIAL=y
+CONFIG_TARGET_COLIBRI_VF=y
CONFIG_DEFAULT_DEVICE_TREE="vf610-colibri"
CONFIG_FIT=y
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/toradex/colibri_vf/imximage.cfg,ENV_IS_IN_NAND,IMX_NAND"
diff --git a/configs/pcm052_defconfig b/configs/pcm052_defconfig
index f7db263f25..dc59a2d262 100644
--- a/configs/pcm052_defconfig
+++ b/configs/pcm052_defconfig
@@ -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"
diff --git a/configs/vf610twr_defconfig b/configs/vf610twr_defconfig
index 5794c28679..845b66b65b 100644
--- a/configs/vf610twr_defconfig
+++ b/configs/vf610twr_defconfig
@@ -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"
diff --git a/configs/vf610twr_nand_defconfig b/configs/vf610twr_nand_defconfig
index 60d0126508..c55701bf8f 100644
--- a/configs/vf610twr_nand_defconfig
+++ b/configs/vf610twr_nand_defconfig
@@ -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"
diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h
index 9fc65a5843..6770f62b90 100644
--- a/include/configs/colibri_vf.h
+++ b/include/configs/colibri_vf.h
@@ -15,7 +15,6 @@
#include <asm/arch/imx-regs.h>
#include <linux/sizes.h>
-#define CONFIG_VF610
#define CONFIG_SYS_THUMB_BUILD
#define CONFIG_USE_ARCH_MEMCPY
#define CONFIG_USE_ARCH_MEMSET
diff --git a/include/configs/pcm052.h b/include/configs/pcm052.h
index eb1944aa29..20b4f1ff52 100644
--- a/include/configs/pcm052.h
+++ b/include/configs/pcm052.h
@@ -11,8 +11,6 @@
#include <asm/arch/imx-regs.h>
-#define CONFIG_VF610
-
#define CONFIG_SYS_THUMB_BUILD
#define CONFIG_SKIP_LOWLEVEL_INIT
diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h
index af5ba61ec9..a9ec895af6 100644
--- a/include/configs/vf610twr.h
+++ b/include/configs/vf610twr.h
@@ -11,8 +11,6 @@
#include <asm/arch/imx-regs.h>
-#define CONFIG_VF610
-
#define CONFIG_SYS_FSL_CLK
#define CONFIG_MACH_TYPE 4146