Commit 55c0e49ab31dbd7d45ee978ae08194a8f28ae188

Authored by Markus Niebel
Committed by Stefano Babic
1 parent 30ed1257db

arm: imx6: tqma6: boot device selection via Kconfig

Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>

Showing 5 changed files with 25 additions and 4 deletions Side-by-side Diff

board/tqc/tqma6/Kconfig
... ... @@ -33,6 +33,25 @@
33 33  
34 34 endchoice
35 35  
  36 +choice
  37 + prompt "TQMa6 boot configuration"
  38 + default TQMA6X_MMC_BOOT
  39 + help
  40 + Configure boot device. This is also used to implement environment
  41 + location.
  42 +
  43 +config TQMA6X_MMC_BOOT
  44 + bool "MMC / SD Boot"
  45 + help
  46 + Boot from eMMC / SD Card
  47 +
  48 +config TQMA6X_SPI_BOOT
  49 + bool "SPI NOR Boot"
  50 + help
  51 + Boot from on board SPI NOR flash
  52 +
  53 +endchoice
  54 +
36 55 config IMX_CONFIG
37 56 default "board/tqc/tqma6/tqma6q.cfg" if TQMA6Q
38 57 default "board/tqc/tqma6/tqma6s.cfg" if TQMA6S
configs/tqma6q_mba6_mmc_defconfig
1 1 CONFIG_ARM=y
2 2 CONFIG_ARCH_MX6=y
3 3 CONFIG_TARGET_TQMA6=y
4   -CONFIG_SYS_EXTRA_OPTIONS="MBA6,TQMA6X_MMC_BOOT"
  4 +CONFIG_SYS_EXTRA_OPTIONS="MBA6"
5 5 CONFIG_CMD_SETEXPR=y
6 6 CONFIG_CMD_NET=y
configs/tqma6q_mba6_spi_defconfig
1 1 CONFIG_ARM=y
2 2 CONFIG_ARCH_MX6=y
3 3 CONFIG_TARGET_TQMA6=y
4   -CONFIG_SYS_EXTRA_OPTIONS="MBA6,TQMA6X_SPI_BOOT"
  4 +CONFIG_TQMA6X_SPI_BOOT=y
  5 +CONFIG_SYS_EXTRA_OPTIONS="MBA6"
5 6 CONFIG_CMD_SETEXPR=y
6 7 CONFIG_CMD_NET=y
configs/tqma6s_mba6_mmc_defconfig
... ... @@ -2,7 +2,7 @@
2 2 CONFIG_ARCH_MX6=y
3 3 CONFIG_TARGET_TQMA6=y
4 4 CONFIG_TQMA6S=y
5   -CONFIG_SYS_EXTRA_OPTIONS="MBA6,TQMA6X_MMC_BOOT"
  5 +CONFIG_SYS_EXTRA_OPTIONS="MBA6"
6 6 CONFIG_CMD_SETEXPR=y
7 7 CONFIG_CMD_NET=y
configs/tqma6s_mba6_spi_defconfig
... ... @@ -2,7 +2,8 @@
2 2 CONFIG_ARCH_MX6=y
3 3 CONFIG_TARGET_TQMA6=y
4 4 CONFIG_TQMA6S=y
5   -CONFIG_SYS_EXTRA_OPTIONS="MBA6,TQMA6X_SPI_BOOT"
  5 +CONFIG_TQMA6X_SPI_BOOT=y
  6 +CONFIG_SYS_EXTRA_OPTIONS="MBA6"
6 7 CONFIG_CMD_SETEXPR=y
7 8 CONFIG_CMD_NET=y