61 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * pv88060-regulator.h - Regulator definitions for PV880604 * Copyright (C) 2015 Powerventure Semiconductor Ltd.5 */6 7#ifndef __PV88060_REGISTERS_H__8#define __PV88060_REGISTERS_H__9 10/* System Control and Event Registers */11#define PV88060_REG_EVENT_A 0x0412#define PV88060_REG_MASK_A 0x0813#define PV88060_REG_MASK_B 0x0914#define PV88060_REG_MASK_C 0x0A15 16/* Regulator Registers */17#define PV88060_REG_BUCK1_CONF0 0x1B18#define PV88060_REG_BUCK1_CONF1 0x1C19#define PV88060_REG_LDO1_CONF 0x1D20#define PV88060_REG_LDO2_CONF 0x1E21#define PV88060_REG_LDO3_CONF 0x1F22#define PV88060_REG_LDO4_CONF 0x2023#define PV88060_REG_LDO5_CONF 0x2124#define PV88060_REG_LDO6_CONF 0x2225#define PV88060_REG_LDO7_CONF 0x2326 27#define PV88060_REG_SW1_CONF 0x3B28#define PV88060_REG_SW2_CONF 0x3C29#define PV88060_REG_SW3_CONF 0x3D30#define PV88060_REG_SW4_CONF 0x3E31#define PV88060_REG_SW5_CONF 0x3F32#define PV88060_REG_SW6_CONF 0x4033 34/* PV88060_REG_EVENT_A (addr=0x04) */35#define PV88060_E_VDD_FLT 0x0136#define PV88060_E_OVER_TEMP 0x0237 38/* PV88060_REG_MASK_A (addr=0x08) */39#define PV88060_M_VDD_FLT 0x0140#define PV88060_M_OVER_TEMP 0x0241 42/* PV88060_REG_BUCK1_CONF0 (addr=0x1B) */43#define PV88060_BUCK_EN 0x8044#define PV88060_VBUCK_MASK 0x7F45/* PV88060_REG_LDO1/2/3/4/5/6/7_CONT */46#define PV88060_LDO_EN 0x4047#define PV88060_VLDO_MASK 0x3F48/* PV88060_REG_SW1/2/3/4/5_CONF */49#define PV88060_SW_EN 0x8050 51/* PV88060_REG_BUCK1_CONF1 (addr=0x1C) */52#define PV88060_BUCK_ILIM_SHIFT 253#define PV88060_BUCK_ILIM_MASK 0x0C54#define PV88060_BUCK_MODE_SHIFT 055#define PV88060_BUCK_MODE_MASK 0x0356#define PV88060_BUCK_MODE_SLEEP 0x0057#define PV88060_BUCK_MODE_AUTO 0x0158#define PV88060_BUCK_MODE_SYNC 0x0259 60#endif /* __PV88060_REGISTERS_H__ */61