diff options
author | Kory Maincent <kory.maincent@bootlin.com> | 2021-05-04 19:31:29 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-05-13 13:09:09 -0400 |
commit | d705527a89ddbc30766b6ca9fe2eebf715a3ceda (patch) | |
tree | ca53d6048f8fb25d9365e0ec08bd4a474b82558c /board/ti/am335x/board.c | |
parent | 77115a5526f0893f55041e217a1ce36bb1e596b1 (diff) | |
download | u-boot-d705527a89ddbc30766b6ca9fe2eebf715a3ceda.zip u-boot-d705527a89ddbc30766b6ca9fe2eebf715a3ceda.tar.gz u-boot-d705527a89ddbc30766b6ca9fe2eebf715a3ceda.tar.bz2 |
arm: am335x: add support for i2c2 bus
The am335x from BeagleBone use i2c EEPROM to detect capes.
The memory is wired to i2c bus 2 therefore it need to be enabled.
Add i2c2 clock, pinmux description and pinmux enable function.
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Diffstat (limited to 'board/ti/am335x/board.c')
-rw-r--r-- | board/ti/am335x/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index bc1657e..c7476b3 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -77,8 +77,10 @@ static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; void do_board_detect(void) { enable_i2c0_pin_mux(); + enable_i2c2_pin_mux(); #if !CONFIG_IS_ENABLED(DM_I2C) i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED, CONFIG_SYS_OMAP24_I2C_SLAVE); + i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED2, CONFIG_SYS_OMAP24_I2C_SLAVE2); #endif if (ti_i2c_eeprom_am_get(CONFIG_EEPROM_BUS_ADDRESS, CONFIG_EEPROM_CHIP_ADDRESS)) |