]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:34:21 +0000 (14:34 +0200)
commit94a1431c203ee9950207ea2555cbebbd75c16ed7
treecf6a8036d7615209ac7d367b966eccb3ade06fc0
parent3fce43679353321cedec0048527f8a7f290a7be1
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