aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm.h
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2011-06-28 20:22:29 -0700
committerNishanth Menon <nm@ti.com>2011-06-29 13:31:08 -0700
commit744ff7f5aa20f437aa2b17e18bc1cb77d477f5b5 (patch)
treeb231833bf8752eb155a7b616733d162968946cc6 /arch/arm/mach-omap2/pm.h
parent3e5fbbae24a661c6c31e80d389f4f75fc519b03a (diff)
downloadkernel_samsung_tuna-744ff7f5aa20f437aa2b17e18bc1cb77d477f5b5.zip
kernel_samsung_tuna-744ff7f5aa20f437aa2b17e18bc1cb77d477f5b5.tar.gz
kernel_samsung_tuna-744ff7f5aa20f437aa2b17e18bc1cb77d477f5b5.tar.bz2
OMAP2+: PMIC: add ability to modify the map
This allows temporary maps to be setup and updated. This allows platforms to modify the pre-existing default maps as needed. Acked-by: Colin Cross <ccross@google.com> Signed-off-by: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r--arch/arm/mach-omap2/pm.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h
index 451b1da..d82694e 100644
--- a/arch/arm/mach-omap2/pm.h
+++ b/arch/arm/mach-omap2/pm.h
@@ -157,14 +157,23 @@ static inline int omap_pmic_register_data(struct omap_pmic_map *map)
#endif
extern void omap_pmic_data_init(void);
+extern int omap_pmic_update(struct omap_pmic_map *tmp_map, char *name,
+ u16 old_chip_id, u16 new_chip_id);
+
#ifdef CONFIG_TWL4030_CORE
extern int omap_twl_init(void);
extern int omap3_twl_set_sr_bit(bool enable);
+extern int omap_twl_pmic_update(char *name, u16 old_chip_id, u16 new_chip_id);
#else
static inline int omap_twl_init(void)
{
return -EINVAL;
}
+static inline int omap_twl_pmic_update(char *name, u16 old_chip_id,
+ u16 new_chip_id)
+{
+ return -EINVAL;
+}
#endif
#ifdef CONFIG_OMAP_TPS6236X
@@ -172,6 +181,7 @@ extern int omap_tps6236x_board_setup(bool use_62361, int gpio_vsel0,
int gpio_vsel1, int pull0, int pull1);
extern int omap_tps6236x_init(void);
+extern int omap_tps6236x_update(char *name, u16 old_chip_id, u16 new_chip_id);
#else
static inline int omap_tps6236x_board_setup(bool use_62361, int gpio_vsel0,
int gpio_vsel1, int pull0, int pull1)
@@ -182,6 +192,11 @@ static inline int omap_tps6236x_init(void)
{
return -EINVAL;
}
+static inline nt omap_tps6236x_update(char *name, u16 old_chip_id,
+ u16 new_chip_id)
+{
+ return -EINVAL;
+}
#endif
#endif