diff options
author | Mike Rapoport <mike@compulab.co.il> | 2011-04-24 18:09:06 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-05-03 05:51:45 -0400 |
commit | fbd8071c188e3053fb318d78214e54d4615d93f2 (patch) | |
tree | f95630f09350122e503701e8c4af14fec2b978a6 /arch/arm/mach-omap2/board-cm-t35.c | |
parent | 96974a249b0cf3537f49115a59be67e2c54f315c (diff) |
omap: use common initialization for PMIC i2c bus
Introduce omap_pmic_init that registers i2c bus and PMIC device on that
bus and add omap2/3/4 wrappers for common cases.
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t35.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 4af5cf9ef43a..948161d3998e 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -541,19 +541,9 @@ static struct twl4030_platform_data cm_t35_twldata = { | |||
541 | .vpll2 = &cm_t35_vpll2, | 541 | .vpll2 = &cm_t35_vpll2, |
542 | }; | 542 | }; |
543 | 543 | ||
544 | static struct i2c_board_info __initdata cm_t35_i2c_boardinfo[] = { | ||
545 | { | ||
546 | I2C_BOARD_INFO("tps65930", 0x48), | ||
547 | .flags = I2C_CLIENT_WAKE, | ||
548 | .irq = INT_34XX_SYS_NIRQ, | ||
549 | .platform_data = &cm_t35_twldata, | ||
550 | }, | ||
551 | }; | ||
552 | |||
553 | static void __init cm_t35_init_i2c(void) | 544 | static void __init cm_t35_init_i2c(void) |
554 | { | 545 | { |
555 | omap_register_i2c_bus(1, 2600, cm_t35_i2c_boardinfo, | 546 | omap3_pmic_init("tps65930", &cm_t35_twldata); |
556 | ARRAY_SIZE(cm_t35_i2c_boardinfo)); | ||
557 | } | 547 | } |
558 | 548 | ||
559 | static void __init cm_t35_init_early(void) | 549 | static void __init cm_t35_init_early(void) |