aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2012-06-22 07:45:57 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-08-05 22:02:36 +0200
commit6eb5d2680372a48161f11697d2a9db76d0979ffd (patch)
treed325bffe1ba36bd6606bf8c1a05cc45602b01577 /board
parent25ca57490a8cbf5120411feaab4fb5d76189e759 (diff)
omap: am335x_evm: enable i2c1 channel
This patch sets up pinmux, enables fclk, and defines CONFIG_I2C_MULTI_BUS Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'board')
-rw-r--r--board/ti/am335x/evm.c1
-rw-r--r--board/ti/am335x/mux.c13
2 files changed, 14 insertions, 0 deletions
diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c
index f2e355c79..0d0affa83 100644
--- a/board/ti/am335x/evm.c
+++ b/board/ti/am335x/evm.c
@@ -30,6 +30,7 @@ int board_init(void)
#ifdef CONFIG_I2C
enable_i2c0_pin_mux();
+ enable_i2c1_pin_mux();
i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
#endif
diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c
index 9ccb43642..c696c0fe9 100644
--- a/board/ti/am335x/mux.c
+++ b/board/ti/am335x/mux.c
@@ -280,6 +280,14 @@ static struct module_pin_mux i2c0_pin_mux[] = {
{-1},
};
+static struct module_pin_mux i2c1_pin_mux[] = {
+ {OFFSET(spi0_d1), (MODE(2) | RXACTIVE |
+ PULLUDEN | SLEWCTRL)}, /* I2C_DATA */
+ {OFFSET(spi0_cs0), (MODE(2) | RXACTIVE |
+ PULLUDEN | SLEWCTRL)}, /* I2C_SCLK */
+ {-1},
+};
+
/*
* Configure the pin mux for the module
*/
@@ -310,3 +318,8 @@ void enable_i2c0_pin_mux(void)
{
configure_module_pin_mux(i2c0_pin_mux);
}
+
+void enable_i2c1_pin_mux(void)
+{
+ configure_module_pin_mux(i2c1_pin_mux);
+}