]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: Define Kconfig symbol for common cmd options
authorLokesh Vutla <lokeshvutla@ti.com>
Thu, 27 Apr 2017 10:13:58 +0000 (15:43 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 8 May 2017 15:57:36 +0000 (11:57 -0400)
Instead of defining command options in every defconfig,
define a common Kconfig symbol that consolidates all command
options that are supported by any TI platform. Also use imply
keyword so that that specific option can be disabled if
not required.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/common/Kconfig

index 15b5ccf741b627e273e2b3f8372e5bbf309465e1..08c39d94098c67688ea33ffb8e5d5a45ca5debe0 100644 (file)
@@ -13,3 +13,29 @@ config EEPROM_CHIP_ADDRESS
        hex "Board EEPROM's I2C chip address"
        range 0 0xff
        default 0x50
+
+config TI_COMMON_CMD_OPTIONS
+       bool "Enable cmd options on TI platforms"
+       imply CMD_ASKENV
+       imply CMD_BOOTZ
+       imply CMD_DFU if USB_GADGET_DOWNLOAD
+       imply CMD_DHCP
+       imply CMD_EXT2
+       imply CMD_EXT4
+       imply CMD_EXT4_WRITE
+       imply CMD_FASTBOOT if FASTBOOT
+       imply CMD_FAT
+       imply CMD_FS_GENERIC
+       imply CMD_GPIO
+       imply CMD_GPT
+       imply CMD_I2C
+       imply CMD_MII
+       imply CMD_MMC
+       imply CMD_PART
+       imply CMD_PING
+       imply CMD_PMIC if DM_PMIC
+       imply CMD_REGULATOR if DM_REGULATOR
+       imply CMD_SF if SPI_FLASH
+       imply CMD_SPI
+       imply CMD_TIME
+       imply CMD_USB if USB