Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ye.Li | 5051ff5 | 2014-11-06 16:28:59 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2014 Freescale Semiconductor, Inc. |
Ye.Li | 5051ff5 | 2014-11-06 16:28:59 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __PFUZE_BOARD_HELPER__ |
| 7 | #define __PFUZE_BOARD_HELPER__ |
| 8 | |
Peng Fan | f8e450a | 2018-01-02 09:32:06 +0800 | [diff] [blame] | 9 | #ifdef CONFIG_DM_PMIC_PFUZE100 |
| 10 | struct udevice *pfuze_common_init(void); |
| 11 | int pfuze_mode_init(struct udevice *dev, u32 mode); |
| 12 | #else |
Ye.Li | 5051ff5 | 2014-11-06 16:28:59 +0800 | [diff] [blame] | 13 | struct pmic *pfuze_common_init(unsigned char i2cbus); |
Peng Fan | 7428f55 | 2015-01-27 10:14:03 +0800 | [diff] [blame] | 14 | int pfuze_mode_init(struct pmic *p, u32 mode); |
Peng Fan | f8e450a | 2018-01-02 09:32:06 +0800 | [diff] [blame] | 15 | #endif |
Ye.Li | 5051ff5 | 2014-11-06 16:28:59 +0800 | [diff] [blame] | 16 | |
| 17 | #endif |