summaryrefslogtreecommitdiffstats
path: root/board/ti/am335x/evm.c
diff options
context:
space:
mode:
authorPatil, Rachna <rachna@ti.com>2012-01-22 23:47:01 +0000
committerHeiko Schocher <hs@denx.de>2012-01-23 11:57:31 +0100
commitb4116ede36da628a517a94d6cba9dba4a02104a4 (patch)
tree3f38815b07fed2a404115186ba60f61a45d940d3 /board/ti/am335x/evm.c
parent498cbdfe62a8330f6c89765bdd15e60328a26511 (diff)
downloadtalos-obmc-uboot-b4116ede36da628a517a94d6cba9dba4a02104a4.tar.gz
talos-obmc-uboot-b4116ede36da628a517a94d6cba9dba4a02104a4.zip
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/evm.c')
-rw-r--r--board/ti/am335x/evm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/ti/am335x/evm.c b/board/ti/am335x/evm.c
index 6a9f788299..13dc60361a 100644
--- a/board/ti/am335x/evm.c
+++ b/board/ti/am335x/evm.c
@@ -18,6 +18,7 @@
#include <asm/arch/hardware.h>
#include <asm/arch/common_def.h>
#include <serial.h>
+#include <i2c.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -42,6 +43,12 @@ int init_basic_setup(void)
int board_init(void)
{
enable_uart0_pin_mux();
+
+#ifdef CONFIG_I2C
+ enable_i2c0_pin_mux();
+ i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
+#endif
+
init_basic_setup();
return 0;
OpenPOWER on IntegriCloud