summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-05-07 10:25:58 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-05-15 08:31:34 +0200
commited5157e8895a6bf59a8163329639e34db0702331 (patch)
treed66082c1f28541fd35b8f5e716e8a18c488792a8 /include
parentbff969eaf0f8d6743558607dfbc7a03f3a7a36d2 (diff)
downloadu-boot-ed5157e8895a6bf59a8163329639e34db0702331.tar.gz
u-boot-ed5157e8895a6bf59a8163329639e34db0702331.tar.xz
u-boot-ed5157e8895a6bf59a8163329639e34db0702331.zip
pmic: dialog: Avoid name conflicts
As mx53loco board has two variants: one with Dialog PMIC and another with FSL MC34708 PMIC, we need to be able to build both drivers. Change pmic_init() and PMIC_NUM_OF_REGS names to avoid build conflicts when both drivers are present. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/dialog_pmic.h2
-rw-r--r--include/pmic.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/dialog_pmic.h b/include/dialog_pmic.h
index b0925f5ce7..8d43585e24 100644
--- a/include/dialog_pmic.h
+++ b/include/dialog_pmic.h
@@ -164,7 +164,7 @@ enum {
DA9053_GPID7_REG,
DA9053_GPID8_REG,
DA9053_GPID9_REG,
- PMIC_NUM_OF_REGS,
+ DIALOG_NUM_OF_REGS,
};
#define DA_BUCKCORE_VBCORE_1_250V 0x1E
diff --git a/include/pmic.h b/include/pmic.h
index 52a1526d95..6a05b40aef 100644
--- a/include/pmic.h
+++ b/include/pmic.h
@@ -55,6 +55,7 @@ struct pmic {
};
int pmic_init(void);
+int pmic_dialog_init(void);
int check_reg(u32 reg);
struct pmic *get_pmic(void);
int pmic_probe(struct pmic *p);