Skip to contentSkip to conversation

Kconfig: ti: Make board detect EEPROM addresses depend BOARD_DETECT

PATCH New Adam Ford 2 participants 2 messages Nov 4, 2019 – Nov 8, 2019

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 Kconfig: ti: Make board detect EEPROM addresses depend BOARD_DETECT

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.

board/ti/common/Kconfig +2 -0
index b1956b8100..9ead7ca038 100644
@@ -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"
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 Kconfig: ti: Make board detect EEPROM addresses depend BOARD_DETECT

board/ti/common/Kconfig

Quoted 11 lines · Adam Ford

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.

board/ti/common/Kconfig +0 -0
index b1956b8100..9ead7ca038 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191108/42b61d7f/attachment.sig>