From 2b5b2be5e9444688e5d8bd0e2d263fccd1f2eee4 Mon Sep 17 00:00:00 2001 From: Hannes Petermaier Date: Thu, 19 Mar 2015 10:43:15 +0100 Subject: 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 Signed-off-by: Hannes Petermaier --- board/BuR/tseries/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/BuR/tseries/mux.c') diff --git a/board/BuR/tseries/mux.c b/board/BuR/tseries/mux.c index 2c87a63b85..ac7e885f61 100644 --- a/board/BuR/tseries/mux.c +++ b/board/BuR/tseries/mux.c @@ -226,7 +226,7 @@ void enable_uart0_pin_mux(void) configure_module_pin_mux(uart0_pin_mux); } -void enable_i2c0_pin_mux(void) +void enable_i2c_pin_mux(void) { configure_module_pin_mux(i2c0_pin_mux); } -- cgit v1.2.1