Skip to content
Snippets Groups Projects
Commit d4e53f06 authored by Steve Kipisz's avatar Steve Kipisz Committed by Albert ARIBAUD
Browse files

OMAP3: BeagleBoard: Enable pullups on i2c2.


This allows the reading of EEPROMS on the expansion bus without adding
external pull-ups.

Signed-off-by: default avatarJason Kridner <jkridner@beagleboard.org>
Signed-off-by: default avatarSteve Kipisz <s-kipisz2@ti.com>
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent cf073e49
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,20 @@ ...@@ -50,6 +50,20 @@
/* CONTROL */ /* CONTROL */
#define OMAP34XX_CTRL_BASE (OMAP34XX_L4_IO_BASE + 0x2000) #define OMAP34XX_CTRL_BASE (OMAP34XX_L4_IO_BASE + 0x2000)
#ifndef __ASSEMBLY__
/* Signal Integrity Parameter Control Registers */
struct control_prog_io {
unsigned char res[0x408];
unsigned int io2; /* 0x408 */
unsigned char res2[0x38];
unsigned int io0; /* 0x444 */
unsigned int io1; /* 0x448 */
};
#endif /* __ASSEMBLY__ */
/* Bit definition for CONTROL_PROG_IO1 */
#define PRG_I2C2_PULLUPRESX 0x00000001
/* UART */ /* UART */
#define OMAP34XX_UART1 (OMAP34XX_L4_IO_BASE + 0x6a000) #define OMAP34XX_UART1 (OMAP34XX_L4_IO_BASE + 0x6a000)
#define OMAP34XX_UART2 (OMAP34XX_L4_IO_BASE + 0x6c000) #define OMAP34XX_UART2 (OMAP34XX_L4_IO_BASE + 0x6c000)
......
...@@ -155,6 +155,10 @@ int misc_init_r(void) ...@@ -155,6 +155,10 @@ int misc_init_r(void)
{ {
struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE; struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE;
struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_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()) { switch (get_board_revision()) {
case REVISION_AXBX: case REVISION_AXBX:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment