Commit 05731faf authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

ARM: OMAP: Tweak Trilok's h4 i2c boardinfo patch:

 - Don't #ifdef
 - Declare the rv5c387a RTC too
 - Move irq pinmux out of the driver into board-specific init
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarTrilok Soni <soni.trilok@gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 0d6d581f
......@@ -493,12 +493,15 @@ static void __init tusb_evm_setup(void)
#endif
static struct i2c_board_info __initdata h4_i2c_board_info[] = {
#ifdef CONFIG_MENELAUS
{
I2C_BOARD_INFO("rtc-rs5c372", 0x32),
.type = "rv5c387a",
/* no IRQ wired to OMAP; nINTB goes to AGPS */
},
{
I2C_BOARD_INFO("menelaus", 0x72),
.irq = INT_24XX_SYS_NIRQ,
},
#endif
};
static void __init omap_h4_init(void)
......@@ -529,6 +532,9 @@ static void __init omap_h4_init(void)
omap_cfg_reg(V19_24XX_USB1_RCV);
#endif
/* Menelaus interrupt */
omap_cfg_reg(W19_24XX_SYS_NIRQ);
i2c_register_board_info(1, h4_i2c_board_info,
ARRAY_SIZE(h4_i2c_board_info));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment