From d4e53f063dd25e071444b87303573e7440deeb89 Mon Sep 17 00:00:00 2001 From: Steve Kipisz Date: Mon, 18 Apr 2011 17:27:00 -0400 Subject: OMAP3: BeagleBoard: Enable pullups on i2c2. This allows the reading of EEPROMS on the expansion bus without adding external pull-ups. Signed-off-by: Jason Kridner Signed-off-by: Steve Kipisz Signed-off-by: Sandeep Paulraj --- board/ti/beagle/beagle.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'board/ti') diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c index 89e3dbae76..2fdee7c08b 100644 --- a/board/ti/beagle/beagle.c +++ b/board/ti/beagle/beagle.c @@ -155,6 +155,10 @@ int misc_init_r(void) { struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE; struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE; + struct control_prog_io *prog_io_base = (struct gpio *)OMAP34XX_CTRL_BASE; + + /* Enable i2c2 pullup resisters */ + writel(~(PRG_I2C2_PULLUPRESX), &prog_io_base->io1); switch (get_board_revision()) { case REVISION_AXBX: -- cgit