From 65ed2f0cb6895ea5a1590d5a21e5633ef67a73ab Mon Sep 17 00:00:00 2001 From: Ye Li Date: Tue, 24 Jan 2017 16:19:21 +0800 Subject: MLK-14421 imx: Add pfuze pmic common init for DM pmic driver Since the DM pmic driver has changed the driver API, add a new file pfuze_dm.c for common pfuze100 init. Signed-off-by: Ye Li --- board/freescale/common/pfuze.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'board/freescale/common/pfuze.h') diff --git a/board/freescale/common/pfuze.h b/board/freescale/common/pfuze.h index 53cfc99..b4afd3d 100644 --- a/board/freescale/common/pfuze.h +++ b/board/freescale/common/pfuze.h @@ -1,5 +1,6 @@ /* * Copyright 2014 Freescale Semiconductor, Inc. + * Copyright 2017 NXP * * SPDX-License-Identifier: GPL-2.0+ */ @@ -7,7 +8,13 @@ #ifndef __PFUZE_BOARD_HELPER__ #define __PFUZE_BOARD_HELPER__ +#ifdef CONFIG_DM_PMIC_PFUZE100 +struct udevice *pfuze_common_init(void); +int pfuze_mode_init(struct udevice *dev, u32 mode); + +#elif defined(CONFIG_POWER_PFUZE100) struct pmic *pfuze_common_init(unsigned char i2cbus); int pfuze_mode_init(struct pmic *p, u32 mode); +#endif #endif -- cgit v1.1