arm: imx6: tqma6: boot device selection via Kconfig

Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
This commit is contained in:
Markus Niebel 2015-06-04 17:25:33 +02:00 committed by Stefano Babic
parent 30ed1257db
commit 55c0e49ab3
5 changed files with 25 additions and 4 deletions

View File

@ -33,6 +33,25 @@ config TQMA6S
endchoice
choice
prompt "TQMa6 boot configuration"
default TQMA6X_MMC_BOOT
help
Configure boot device. This is also used to implement environment
location.
config TQMA6X_MMC_BOOT
bool "MMC / SD Boot"
help
Boot from eMMC / SD Card
config TQMA6X_SPI_BOOT
bool "SPI NOR Boot"
help
Boot from on board SPI NOR flash
endchoice
config IMX_CONFIG
default "board/tqc/tqma6/tqma6q.cfg" if TQMA6Q
default "board/tqc/tqma6/tqma6s.cfg" if TQMA6S

View File

@ -1,6 +1,6 @@
CONFIG_ARM=y
CONFIG_ARCH_MX6=y
CONFIG_TARGET_TQMA6=y
CONFIG_SYS_EXTRA_OPTIONS="MBA6,TQMA6X_MMC_BOOT"
CONFIG_SYS_EXTRA_OPTIONS="MBA6"
CONFIG_CMD_SETEXPR=y
CONFIG_CMD_NET=y

View File

@ -1,6 +1,7 @@
CONFIG_ARM=y
CONFIG_ARCH_MX6=y
CONFIG_TARGET_TQMA6=y
CONFIG_SYS_EXTRA_OPTIONS="MBA6,TQMA6X_SPI_BOOT"
CONFIG_TQMA6X_SPI_BOOT=y
CONFIG_SYS_EXTRA_OPTIONS="MBA6"
CONFIG_CMD_SETEXPR=y
CONFIG_CMD_NET=y

View File

@ -2,6 +2,6 @@ CONFIG_ARM=y
CONFIG_ARCH_MX6=y
CONFIG_TARGET_TQMA6=y
CONFIG_TQMA6S=y
CONFIG_SYS_EXTRA_OPTIONS="MBA6,TQMA6X_MMC_BOOT"
CONFIG_SYS_EXTRA_OPTIONS="MBA6"
CONFIG_CMD_SETEXPR=y
CONFIG_CMD_NET=y

View File

@ -2,6 +2,7 @@ CONFIG_ARM=y
CONFIG_ARCH_MX6=y
CONFIG_TARGET_TQMA6=y
CONFIG_TQMA6S=y
CONFIG_SYS_EXTRA_OPTIONS="MBA6,TQMA6X_SPI_BOOT"
CONFIG_TQMA6X_SPI_BOOT=y
CONFIG_SYS_EXTRA_OPTIONS="MBA6"
CONFIG_CMD_SETEXPR=y
CONFIG_CMD_NET=y