From 125914d4beb1e8319d7a04e6a6e88290763594f8 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Fri, 7 Aug 2015 16:43:46 +0800 Subject: fsl: common: pfuze: no use original pfuze code if DM_PMIC If enable DM PMIC and REGULATOR, we should not use original power framework. So need to comment out the pfuze code for original power framework, when CONFIG_DM_PMIC_PFUZE100 defined. Signed-off-by: Peng Fan Cc: Przemyslaw Marczak Cc: Simon Glass Cc: Stefano Babic Reviewed-by: Simon Glass --- board/freescale/common/pfuze.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board') diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c index d6a209e..783c46d 100644 --- a/board/freescale/common/pfuze.c +++ b/board/freescale/common/pfuze.c @@ -9,6 +9,7 @@ #include #include +#ifndef CONFIG_DM_PMIC_PFUZE100 int pfuze_mode_init(struct pmic *p, u32 mode) { unsigned char offset, i, switch_num; @@ -90,3 +91,4 @@ struct pmic *pfuze_common_init(unsigned char i2cbus) return p; } +#endif -- cgit v1.1