summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-04-28 12:13:58 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-04-28 12:20:39 +0200
commit222091adb4a738c90fcc2c3c1a664e5252c09bfd (patch)
tree4f5be102918ad3e0025208793c26d8b089a9d1c8 /arch
parentcff8ddcb0ba37a184819e7a50951fe383dd52884 (diff)
downloadbarebox-222091adb4a738c90fcc2c3c1a664e5252c09bfd.tar.gz
barebox-222091adb4a738c90fcc2c3c1a664e5252c09bfd.tar.xz
arm: mxs: Add Kconfig option for device tree boards
Boards supporting device tree have to make sure OFTREE and OFDEVICE are selected. Add a convenience option pulling in the right options and select it from the boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mxs/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/Kconfig b/arch/arm/mach-mxs/Kconfig
index b3a7c6259c..f7d13569ea 100644
--- a/arch/arm/mach-mxs/Kconfig
+++ b/arch/arm/mach-mxs/Kconfig
@@ -9,6 +9,11 @@ config ARCH_TEXT_BASE
default 0x47000000 if MACH_MX28EVK
default 0x47000000 if MACH_CFA10036
+config ARCH_MXS_OF_SUPPORT
+ bool
+ select OFTREE
+ select OFDEVICE
+
comment "Freescale i.MX System-on-Chip"
choice
@@ -57,12 +62,14 @@ config MACH_TX28
config MACH_MX28EVK
bool "mx28-evk"
select MXS_OCOTP
+ select ARCH_MXS_OF_SUPPORT
help
Say Y here if you are using the Freescale i.MX28-EVK board
config MACH_DUCKBILL
bool "Duckbill"
select MXS_OCOTP
+ select ARCH_MXS_OF_SUPPORT
help
Say Y here if you are using the I2SE Duckbill board