Hello,

On 08/07/2015 10:43 AM, Peng Fan wrote:
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 <[email protected]>
Cc: Przemyslaw Marczak <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefano Babic <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
---

Changes v3:
  None

Changes v2:
  None

  board/freescale/common/pfuze.c | 2 ++
  1 file changed, 2 insertions(+)

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 <power/pmic.h>
  #include <power/pfuze100_pmic.h>

+#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


Applied to: u-boot-pmic.

Best regards,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
[email protected]
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to