Kconfig: ti: Make board detect EEPROM addresses depend BOARD_DETECT
authorAdam Ford <aford173@gmail.com>
Mon, 4 Nov 2019 23:05:24 +0000 (17:05 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 7 Nov 2019 23:39:18 +0000 (18:39 -0500)
There is an option to enable the board detection for TI platforms.
If this is option is not set, there is no reason to set the EEPROM
bus address or chip address.

This patch makes both EEPROM_BUS_ADDRESS and EEPROM_CHIP_ADDRESS
depend on TI_I2C_BOARD_DETECT.

Signed-off-by: Adam Ford <aford173@gmail.com>
board/ti/common/Kconfig

index b1956b810035ab5e1ff64427942353453fcb0d05..9ead7ca03811db3216e934614a4fdece031f7af5 100644 (file)
@@ -8,11 +8,13 @@ config EEPROM_BUS_ADDRESS
        int "Board EEPROM's I2C bus address"
        range 0 8
        default 0
+       depends on TI_I2C_BOARD_DETECT
 
 config EEPROM_CHIP_ADDRESS
        hex "Board EEPROM's I2C chip address"
        range 0 0xff
        default 0x50
+       depends on TI_I2C_BOARD_DETECT
 
 config TI_COMMON_CMD_OPTIONS
        bool "Enable cmd options on TI platforms"