blob: 1a3ee77fe3fa3fdb33897bcce7069883d99e858c [file] [log] [blame]
/*
* Copyright (C) 2014 Marvell International Ltd.
* Xuhong Gao <gaoxhong@marvell.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __88PM802_H_
#define __88PM802_H_
#include <power/marvell88pm_pmic.h>
enum PM802_REGS {
/* gpadc page */
PM802_GPADC_CONFIG1 = 0x1,
PM802_GPADC_CONFIG2 = 0x2,
/* ldo page */
PM802_ID_LDO1 = 0x09,
PM802_ID_LDO2 = 0x0c,
PM802_ID_LDO3 = 0x0f,
PM802_ID_LDO4 = 0x12,
PM802_ID_LDO5 = 0x15,
PM802_ID_LDO6 = 0x18,
/* buck page */
PM802_ID_BUCK1 = 0x29,
PM802_ID_BUCK2 = 0x30,
PM802_ID_BUCK3 = 0x40,
PM802_ID_BUCK4 = 0x50,
PM802_ID_BUCK5 = 0x60,
};
enum PM803_REGS {
/* buck page */
PM803_ID_BUCK1 = 0x2b,
/* ldo page */
PM803_ID_LDO1 = 0x71,
PM803_ID_LDO2 = 0x74,
PM803_ID_LDO3 = 0x77,
PM803_ID_LDO4 = 0x7A,
PM803_ID_LDO5 = 0x7D,
PM803_ID_LDO6 = 0x80,
PM803_ID_LDO7 = 0x83,
PM803_ID_LDO8 = 0x86,
};
enum PM813_REGS {
/* buck page */
PM813_ID_BUCK1 = 0x2a,
/* ldo page */
PM813_ID_LDO1 = 0x71,
PM813_ID_LDO2 = 0x74,
PM813_ID_LDO3 = 0x77,
PM813_ID_LDO4 = 0x7A,
PM813_ID_LDO5 = 0x7D,
PM813_ID_LDO6 = 0x80,
PM813_ID_LDO7 = 0x83,
PM813_ID_LDO8 = 0x86,
PM813_ID_LDO9 = 0x89,
PM813_ID_LDO10 = 0x8C,
PM813_ID_LDO11 = 0x8F,
PM813_ID_LDO12 = 0x92,
PM813_ID_LDO13 = 0x95,
};
#define PM802_FG_I2C_ADDR 0x32
#define PM802_FG_REG_NUM 0x77
#define PM802_BAT_I2C_ADDR 0x30
#define PM802_BAT_REG_NUM 0xF3
#endif /* __88PM802_H_ */