diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-11-24 15:56:03 +0000 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-11-24 15:56:03 +0000 |
commit | b70c4207821f3f895e1c4c368aa0bece9141e524 (patch) | |
tree | d5644c819d3773691a1be3f33a6cf6bc34a25b0c /arch/arm/mach-omap2/twl-common.c | |
parent | 597b97cab66da331ae9e19e728601e62542a7ca8 (diff) | |
parent | 52f3a41e0aca5625fbd118ed57a4debb25817e99 (diff) |
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
Diffstat (limited to 'arch/arm/mach-omap2/twl-common.c')
-rw-r--r-- | arch/arm/mach-omap2/twl-common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach-omap2/twl-common.c index 522435772168..10b20c652e5d 100644 --- a/arch/arm/mach-omap2/twl-common.c +++ b/arch/arm/mach-omap2/twl-common.c @@ -30,6 +30,7 @@ #include <plat/usb.h> #include "twl-common.h" +#include "pm.h" static struct i2c_board_info __initdata pmic_i2c_board_info = { .addr = 0x48, @@ -48,6 +49,16 @@ void __init omap_pmic_init(int bus, u32 clkrate, omap_register_i2c_bus(bus, clkrate, &pmic_i2c_board_info, 1); } +void __init omap_pmic_late_init(void) +{ + /* Init the OMAP TWL parameters (if PMIC has been registerd) */ + if (!pmic_i2c_board_info.irq) + return; + + omap3_twl_init(); + omap4_twl_init(); +} + #if defined(CONFIG_ARCH_OMAP3) static struct twl4030_usb_data omap3_usb_pdata = { .usb_mode = T2_USB_MODE_ULPI, |