]> git.sur5r.net Git - u-boot/commit
ti: common: board_detect: Introduce function to set the address length.
authorCooper Jr., Franklin <fcooper@ti.com>
Thu, 20 Apr 2017 15:25:44 +0000 (10:25 -0500)
committerHeiko Schocher <hs@denx.de>
Tue, 9 May 2017 07:04:29 +0000 (09:04 +0200)
commitc6b80b13924adc9b72fb03c368c2e39b85131a91
treee7da8149306b213e92aab9b64fdff75251f07b2c
parent70f6f94c773550faf955e852854ed07519dae8de
ti: common: board_detect: Introduce function to set the address length.

Reading from the I2C EEPROM used typically requires using an address length
of 2. However, when using DM for I2C the default address length used is 1.
To fix this introduce a new function that allows the address length to be
changed. The logic to do so was copied from cmd/i2c.c.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
board/ti/common/board_detect.c