| /* |
| * Copyright (C) 2014 Marvell International Ltd. |
| * Yi Zhang <yizhang@marvell.com> |
| * |
| * SPDX-License-Identifier: GPL-2.0+ |
| */ |
| |
| #ifndef __MARVELL_COMMON_CHARGE_H |
| #define __MARVELL_COMMON_CHARGE_H |
| |
| #include <common.h> |
| #include <malloc.h> |
| #include <power/pmic.h> |
| #include <power/battery.h> |
| |
| #ifdef CONFIG_POWER_88PM830 |
| #include <power/88pm830.h> |
| #endif |
| |
| #ifdef CONFIG_CHRG_BQ2419X |
| #include <power/bq2419x.h> |
| #endif |
| |
| #ifdef CONFIG_CHRG_FAN540X |
| #include <power/fan540x.h> |
| #endif |
| |
| #ifdef CONFIG_CHRG_ETA6005 |
| #include <power/eta6005.h> |
| #endif |
| |
| #include <power/marvell88pm_pmic.h> |
| #include <errno.h> |
| |
| extern void power_off_charge(u32 *emmd_pmic, u8 pmic_i2c, u8 chg_i2c, u8 fg_i2c, |
| u32 lo_uv, u32 hi_uv); |
| extern void check_sys_boot_or_pd(u32 *emmd_pmic, u8 pmic_i2c, |
| u8 chg_i2c, u8 fg_i2c); |
| #endif |