Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * pv88060-regulator.h - Regulator definitions for PV88060
0004  * Copyright (C) 2015 Powerventure Semiconductor Ltd.
0005  */
0006 
0007 #ifndef __PV88060_REGISTERS_H__
0008 #define __PV88060_REGISTERS_H__
0009 
0010 /* System Control and Event Registers */
0011 #define PV88060_REG_EVENT_A         0x04
0012 #define PV88060_REG_MASK_A          0x08
0013 #define PV88060_REG_MASK_B          0x09
0014 #define PV88060_REG_MASK_C          0x0A
0015 
0016 /* Regulator Registers */
0017 #define PV88060_REG_BUCK1_CONF0         0x1B
0018 #define PV88060_REG_BUCK1_CONF1         0x1C
0019 #define PV88060_REG_LDO1_CONF           0x1D
0020 #define PV88060_REG_LDO2_CONF           0x1E
0021 #define PV88060_REG_LDO3_CONF           0x1F
0022 #define PV88060_REG_LDO4_CONF           0x20
0023 #define PV88060_REG_LDO5_CONF           0x21
0024 #define PV88060_REG_LDO6_CONF           0x22
0025 #define PV88060_REG_LDO7_CONF           0x23
0026 
0027 #define PV88060_REG_SW1_CONF            0x3B
0028 #define PV88060_REG_SW2_CONF            0x3C
0029 #define PV88060_REG_SW3_CONF            0x3D
0030 #define PV88060_REG_SW4_CONF            0x3E
0031 #define PV88060_REG_SW5_CONF            0x3F
0032 #define PV88060_REG_SW6_CONF            0x40
0033 
0034 /* PV88060_REG_EVENT_A (addr=0x04) */
0035 #define PV88060_E_VDD_FLT           0x01
0036 #define PV88060_E_OVER_TEMP         0x02
0037 
0038 /* PV88060_REG_MASK_A (addr=0x08) */
0039 #define PV88060_M_VDD_FLT           0x01
0040 #define PV88060_M_OVER_TEMP         0x02
0041 
0042 /* PV88060_REG_BUCK1_CONF0 (addr=0x1B) */
0043 #define PV88060_BUCK_EN         0x80
0044 #define PV88060_VBUCK_MASK          0x7F
0045 /* PV88060_REG_LDO1/2/3/4/5/6/7_CONT */
0046 #define PV88060_LDO_EN          0x40
0047 #define PV88060_VLDO_MASK           0x3F
0048 /* PV88060_REG_SW1/2/3/4/5_CONF */
0049 #define PV88060_SW_EN           0x80
0050 
0051 /* PV88060_REG_BUCK1_CONF1 (addr=0x1C) */
0052 #define PV88060_BUCK_ILIM_SHIFT         2
0053 #define PV88060_BUCK_ILIM_MASK          0x0C
0054 #define PV88060_BUCK_MODE_SHIFT         0
0055 #define PV88060_BUCK_MODE_MASK          0x03
0056 #define PV88060_BUCK_MODE_SLEEP         0x00
0057 #define PV88060_BUCK_MODE_AUTO          0x01
0058 #define PV88060_BUCK_MODE_SYNC          0x02
0059 
0060 #endif  /* __PV88060_REGISTERS_H__ */