]> git.dujemihanovic.xyz Git - u-boot.git/commit
board/BuR/common: move I2C initialization from common part to board-specific
authorHannes Petermaier <hannes.petermaier@br-automation.com>
Thu, 19 Mar 2015 09:43:15 +0000 (10:43 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 28 Mar 2015 16:07:44 +0000 (12:07 -0400)
commit2b5b2be5e9444688e5d8bd0e2d263fccd1f2eee4
treebfd53e6a20757fcf21cc8b4d5da042cde1decda0
parent3b6e4841225c60aa1bd0212754ba0edc1822393d
board/BuR/common: move I2C initialization from common part to board-specific

At this time I2C and responsible pin-mux is setup during PMIC initialziation
within common.c, this is possible because today PMIC is always connected on
I2C0.

In Future this will be changed, PMIC isn't anymore connected to bus0 in call
cases.

So we do following:
- rename enable_i2c_pin_mux0 to enable_i2c_pin_mux to be generic for enabling
  pin-mux on different or more busses.
- move the call to i2c_pin_mux and i2c_init from common.c to the specific
  board.c

Signed-off-by: Hannes Petermaier <hannes.petermaier@br-automation.com>
Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
board/BuR/common/bur_common.h
board/BuR/common/common.c
board/BuR/kwb/board.c
board/BuR/kwb/mux.c
board/BuR/tseries/board.c
board/BuR/tseries/mux.c