diff options
author | Patil, Rachna <rachna@ti.com> | 2012-01-22 23:47:01 +0000 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2012-01-23 11:57:31 +0100 |
commit | b4116ede36da628a517a94d6cba9dba4a02104a4 (patch) | |
tree | 3f38815b07fed2a404115186ba60f61a45d940d3 /board/ti/am335x/mux.c | |
parent | 498cbdfe62a8330f6c89765bdd15e60328a26511 (diff) | |
download | u-boot-imx-b4116ede36da628a517a94d6cba9dba4a02104a4.zip u-boot-imx-b4116ede36da628a517a94d6cba9dba4a02104a4.tar.gz u-boot-imx-b4116ede36da628a517a94d6cba9dba4a02104a4.tar.bz2 |
ARM: AM33XX: Add i2c support
Add i2c driver board hookup for AM335X EVM
Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Patil, Rachna <rachna@ti.com>
Diffstat (limited to 'board/ti/am335x/mux.c')
-rw-r--r-- | board/ti/am335x/mux.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c index 4cb0cdf..9ccb436 100644 --- a/board/ti/am335x/mux.c +++ b/board/ti/am335x/mux.c @@ -272,6 +272,14 @@ static struct module_pin_mux mmc0_pin_mux[] = { }; #endif +static struct module_pin_mux i2c0_pin_mux[] = { + {OFFSET(i2c0_sda), (MODE(0) | RXACTIVE | + PULLUDEN | SLEWCTRL)}, /* I2C_DATA */ + {OFFSET(i2c0_scl), (MODE(0) | RXACTIVE | + PULLUDEN | SLEWCTRL)}, /* I2C_SCLK */ + {-1}, +}; + /* * Configure the pin mux for the module */ @@ -297,3 +305,8 @@ void enable_mmc0_pin_mux(void) configure_module_pin_mux(mmc0_pin_mux); } #endif + +void enable_i2c0_pin_mux(void) +{ + configure_module_pin_mux(i2c0_pin_mux); +} |