]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mx6: tqma6: CPU type selection via Kconfig
authorMarkus Niebel <Markus.Niebel@tq-group.com>
Thu, 4 Jun 2015 15:25:31 +0000 (17:25 +0200)
committerStefano Babic <sbabic@denx.de>
Sat, 27 Jun 2015 15:52:20 +0000 (17:52 +0200)
This is the first patch to remove the
CONFIG_SYS_EXTRA_OPTIONS.

This patch implements CPU type selection from Kconfig.
Further Kconfig stuff is added later.

Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
arch/arm/Kconfig
arch/arm/cpu/armv7/mx6/Kconfig
board/tqc/tqma6/Kconfig
configs/tqma6q_mba6_mmc_defconfig
configs/tqma6q_mba6_spi_defconfig
configs/tqma6s_mba6_mmc_defconfig
configs/tqma6s_mba6_spi_defconfig

index fd47e60a909a7450f391ec1ae78e0ff5cc37770a..3e07eccb40c671950f9029e2b16ff6604c85343f 100644 (file)
@@ -576,10 +576,6 @@ config TARGET_TBS2910
        bool "Support tbs2910"
        select CPU_V7
 
-config TARGET_TQMA6
-       bool "TQ Systems TQMa6 board"
-       select CPU_V7
-
 config TARGET_OT1200
        bool "Bachmann OT1200"
        select CPU_V7
@@ -959,7 +955,6 @@ source "board/ti/ti816x/Kconfig"
 source "board/timll/devkit3250/Kconfig"
 source "board/toradex/colibri_pxa270/Kconfig"
 source "board/toradex/colibri_vf/Kconfig"
-source "board/tqc/tqma6/Kconfig"
 source "board/trizepsiv/Kconfig"
 source "board/ttcontrol/vision2/Kconfig"
 source "board/udoo/Kconfig"
index 1282be3418c332a2ab166e0d9bd52ec11ac8008c..10908c4c4a295d1b2da47422aaa5056a6887abb0 100644 (file)
@@ -33,11 +33,16 @@ config TARGET_SECOMX6
        bool "Support secomx6 boards"
        select CPU_V7
 
+config TARGET_TQMA6
+       bool "TQ Systems TQMa6 board"
+       select CPU_V7
+
 endchoice
 
 config SYS_SOC
        default "mx6"
 
 source "board/seco/Kconfig"
+source "board/tqc/tqma6/Kconfig"
 
 endif
index f8b3d1fd404b70ff1f3b5706820ab941747aae83..3e4d9f51707929ad983aa13a14dc114c4fb1db06 100644 (file)
@@ -12,4 +12,25 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "tqma6"
 
+choice
+       prompt "TQMa6 SoC variant"
+       default TQMA6Q
+       help
+         select the TQMa6 module variant. The variants differing in the used
+         i.MX6 CPU type and DRAM
+
+config TQMA6Q
+       bool "TQMa6Q / TQMa6D"
+       select MX6Q
+       help
+         select TQMa6Q / TQMa6D with i.MX6Q/D and 1GiB DRAM
+
+config TQMA6S
+       bool "TQMa6S"
+       select MX6S
+       help
+         select TQMa6S with i.MX6S and 512 MiB DRAM
+
+endchoice
+
 endif
index 01355b6a9a5d0fe7b18f2006a7b7e66680469c9c..31b3fc3e1b10d1e62c0cd813bf17bc4430efa2d3 100644 (file)
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
+CONFIG_ARCH_MX6=y
 CONFIG_TARGET_TQMA6=y
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/tqc/tqma6/tqma6q.cfg,MX6Q,MBA6,TQMA6X_MMC_BOOT"
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/tqc/tqma6/tqma6q.cfg,MBA6,TQMA6X_MMC_BOOT"
 CONFIG_CMD_SETEXPR=y
 CONFIG_CMD_NET=y
index ba24663a350003c990260a45f7a58adf15125b3d..30ad2330fb1830cbe73642e5b3224b0dae890f01 100644 (file)
@@ -1,5 +1,6 @@
 CONFIG_ARM=y
+CONFIG_ARCH_MX6=y
 CONFIG_TARGET_TQMA6=y
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/tqc/tqma6/tqma6q.cfg,MX6Q,MBA6,TQMA6X_SPI_BOOT"
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/tqc/tqma6/tqma6q.cfg,MBA6,TQMA6X_SPI_BOOT"
 CONFIG_CMD_SETEXPR=y
 CONFIG_CMD_NET=y
index cbb45008ec2c1888a8e6db8d359c82a4187495b5..ab6b0ea7c1c4e44cbf7706f152b507d023beff0c 100644 (file)
@@ -1,5 +1,7 @@
 CONFIG_ARM=y
+CONFIG_ARCH_MX6=y
 CONFIG_TARGET_TQMA6=y
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/tqc/tqma6/tqma6s.cfg,MX6S,MBA6,TQMA6X_MMC_BOOT"
+CONFIG_TQMA6S=y
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/tqc/tqma6/tqma6s.cfg,MBA6,TQMA6X_MMC_BOOT"
 CONFIG_CMD_SETEXPR=y
 CONFIG_CMD_NET=y
index 805d8ab4be4c8c8d0d20834ac55c84319bc8e10a..f4cfc8dc2fd461f78d6a47470bcee0805696dfc0 100644 (file)
@@ -1,5 +1,7 @@
 CONFIG_ARM=y
+CONFIG_ARCH_MX6=y
 CONFIG_TARGET_TQMA6=y
-CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/tqc/tqma6/tqma6s.cfg,MX6S,MBA6,TQMA6X_SPI_BOOT"
+CONFIG_TQMA6S=y
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/tqc/tqma6/tqma6s.cfg,MBA6,TQMA6X_SPI_BOOT"
 CONFIG_CMD_SETEXPR=y
 CONFIG_CMD_NET=y