blob: 5bb05c8df479ec63f11fb103d4a991200ac6d87d [file] [log] [blame]
/*
* Copyright (C) 2014 Marvell International Ltd.
* Xuhong Gao <gaoxhong@marvell.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __ETA6005_H_
#define __ETA6005_H_
#include <power/marvell88pm_pmic.h>
#define MARVELL_PMIC_CHARGE "ETA6005_CHARGE"
#define MARVELL_PMIC_FG "88PM801_FG"
#define MARVELL_PMIC_BATT "88PM801_BATT"
/* these can be configured in include/configs/*.h */
#ifndef CHARGER_EN_GPIO
#define CHARGER_EN_GPIO (8)
#endif
#ifndef CHARGER_STATUS_GPIO
#define CHARGER_STATUS_GPIO (4)
#endif
int eta6005_charger_full(void);
/* init funtions */
int power_fg_init(unsigned char bus);
int power_chrg_init(unsigned char bus);
int power_bat_init(unsigned char bus);
#endif /* __ETA6005_H_ */