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-overo.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-overo.c')
-rw-r--r-- | arch/arm/mach-omap2/board-overo.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 4a02f8434f59..809d3944f549 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c | |||
@@ -540,19 +540,9 @@ static struct twl4030_platform_data overo_twldata = { | |||
540 | .vpll2 = &overo_vpll2, | 540 | .vpll2 = &overo_vpll2, |
541 | }; | 541 | }; |
542 | 542 | ||
543 | static struct i2c_board_info __initdata overo_i2c_boardinfo[] = { | ||
544 | { | ||
545 | I2C_BOARD_INFO("tps65950", 0x48), | ||
546 | .flags = I2C_CLIENT_WAKE, | ||
547 | .irq = INT_34XX_SYS_NIRQ, | ||
548 | .platform_data = &overo_twldata, | ||
549 | }, | ||
550 | }; | ||
551 | |||
552 | static int __init overo_i2c_init(void) | 543 | static int __init overo_i2c_init(void) |
553 | { | 544 | { |
554 | omap_register_i2c_bus(1, 2600, overo_i2c_boardinfo, | 545 | omap3_pmic_init("tps65950", &overo_twldata); |
555 | ARRAY_SIZE(overo_i2c_boardinfo)); | ||
556 | /* i2c2 pins are used for gpio */ | 546 | /* i2c2 pins are used for gpio */ |
557 | omap_register_i2c_bus(3, 400, NULL, 0); | 547 | omap_register_i2c_bus(3, 400, NULL, 0); |
558 | return 0; | 548 | return 0; |