~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/palmas.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/mfd/palmas.h (Version linux-6.11.5) and /include/linux/mfd/palmas.h (Version linux-4.18.20)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 /*                                                  1 /*
  3  * TI Palmas                                        2  * TI Palmas
  4  *                                                  3  *
  5  * Copyright 2011-2013 Texas Instruments Inc.       4  * Copyright 2011-2013 Texas Instruments Inc.
  6  *                                                  5  *
  7  * Author: Graeme Gregory <gg@slimlogic.co.uk>      6  * Author: Graeme Gregory <gg@slimlogic.co.uk>
  8  * Author: Ian Lartey <ian@slimlogic.co.uk>         7  * Author: Ian Lartey <ian@slimlogic.co.uk>
                                                   >>   8  *
                                                   >>   9  *  This program is free software; you can redistribute it and/or modify it
                                                   >>  10  *  under  the terms of the GNU General  Public License as published by the
                                                   >>  11  *  Free Software Foundation;  either version 2 of the License, or (at your
                                                   >>  12  *  option) any later version.
                                                   >>  13  *
  9  */                                                14  */
 10                                                    15 
 11 #ifndef __LINUX_MFD_PALMAS_H                       16 #ifndef __LINUX_MFD_PALMAS_H
 12 #define __LINUX_MFD_PALMAS_H                       17 #define __LINUX_MFD_PALMAS_H
 13                                                    18 
 14 #include <linux/usb/otg.h>                         19 #include <linux/usb/otg.h>
 15 #include <linux/leds.h>                            20 #include <linux/leds.h>
 16 #include <linux/regmap.h>                          21 #include <linux/regmap.h>
 17 #include <linux/regulator/driver.h>                22 #include <linux/regulator/driver.h>
 18 #include <linux/extcon-provider.h>                 23 #include <linux/extcon-provider.h>
                                                   >>  24 #include <linux/of_gpio.h>
 19 #include <linux/usb/phy_companion.h>               25 #include <linux/usb/phy_companion.h>
 20                                                    26 
 21 #define PALMAS_NUM_CLIENTS              3          27 #define PALMAS_NUM_CLIENTS              3
 22                                                    28 
 23 /* The ID_REVISION NUMBERS */                      29 /* The ID_REVISION NUMBERS */
 24 #define PALMAS_CHIP_OLD_ID              0x0000     30 #define PALMAS_CHIP_OLD_ID              0x0000
 25 #define PALMAS_CHIP_ID                  0xC035     31 #define PALMAS_CHIP_ID                  0xC035
 26 #define PALMAS_CHIP_CHARGER_ID          0xC036     32 #define PALMAS_CHIP_CHARGER_ID          0xC036
 27                                                    33 
 28 #define TPS65917_RESERVED               -1         34 #define TPS65917_RESERVED               -1
 29                                                    35 
 30 #define is_palmas(a)    (((a) == PALMAS_CHIP_O     36 #define is_palmas(a)    (((a) == PALMAS_CHIP_OLD_ID) || \
 31                         ((a) == PALMAS_CHIP_ID     37                         ((a) == PALMAS_CHIP_ID))
 32 #define is_palmas_charger(a) ((a) == PALMAS_CH     38 #define is_palmas_charger(a) ((a) == PALMAS_CHIP_CHARGER_ID)
 33                                                    39 
 34 /**                                                40 /**
 35  * Palmas PMIC feature types                       41  * Palmas PMIC feature types
 36  *                                                 42  *
 37  * PALMAS_PMIC_FEATURE_SMPS10_BOOST - used whe     43  * PALMAS_PMIC_FEATURE_SMPS10_BOOST - used when the PMIC provides SMPS10_BOOST
 38  *      regulator.                                 44  *      regulator.
 39  *                                                 45  *
 40  * PALMAS_PMIC_HAS(b, f) - macro to check if a     46  * PALMAS_PMIC_HAS(b, f) - macro to check if a bandgap device is capable of a
 41  *      specific feature (above) or not. Retur     47  *      specific feature (above) or not. Return non-zero, if yes.
 42  */                                                48  */
 43 #define PALMAS_PMIC_FEATURE_SMPS10_BOOST           49 #define PALMAS_PMIC_FEATURE_SMPS10_BOOST        BIT(0)
 44 #define PALMAS_PMIC_HAS(b, f)                      50 #define PALMAS_PMIC_HAS(b, f)                   \
 45                         ((b)->features & PALMA     51                         ((b)->features & PALMAS_PMIC_FEATURE_ ## f)
 46                                                    52 
 47 struct palmas_pmic;                                53 struct palmas_pmic;
 48 struct palmas_gpadc;                               54 struct palmas_gpadc;
 49 struct palmas_resource;                            55 struct palmas_resource;
 50 struct palmas_usb;                                 56 struct palmas_usb;
 51 struct palmas_pmic_driver_data;                    57 struct palmas_pmic_driver_data;
 52 struct palmas_pmic_platform_data;                  58 struct palmas_pmic_platform_data;
 53                                                    59 
 54 enum palmas_usb_state {                            60 enum palmas_usb_state {
 55         PALMAS_USB_STATE_DISCONNECT,               61         PALMAS_USB_STATE_DISCONNECT,
 56         PALMAS_USB_STATE_VBUS,                     62         PALMAS_USB_STATE_VBUS,
 57         PALMAS_USB_STATE_ID,                       63         PALMAS_USB_STATE_ID,
 58 };                                                 64 };
 59                                                    65 
 60 struct palmas {                                    66 struct palmas {
 61         struct device *dev;                        67         struct device *dev;
 62                                                    68 
 63         struct i2c_client *i2c_clients[PALMAS_     69         struct i2c_client *i2c_clients[PALMAS_NUM_CLIENTS];
 64         struct regmap *regmap[PALMAS_NUM_CLIEN     70         struct regmap *regmap[PALMAS_NUM_CLIENTS];
 65                                                    71 
 66         /* Stored chip id */                       72         /* Stored chip id */
 67         int id;                                    73         int id;
 68                                                    74 
 69         unsigned int features;                     75         unsigned int features;
 70         /* IRQ Data */                             76         /* IRQ Data */
 71         int irq;                                   77         int irq;
 72         u32 irq_mask;                              78         u32 irq_mask;
 73         struct mutex irq_lock;                     79         struct mutex irq_lock;
 74         struct regmap_irq_chip_data *irq_data;     80         struct regmap_irq_chip_data *irq_data;
 75                                                    81 
 76         struct palmas_pmic_driver_data *pmic_d     82         struct palmas_pmic_driver_data *pmic_ddata;
 77                                                    83 
 78         /* Child Devices */                        84         /* Child Devices */
 79         struct palmas_pmic *pmic;                  85         struct palmas_pmic *pmic;
 80         struct palmas_gpadc *gpadc;                86         struct palmas_gpadc *gpadc;
 81         struct palmas_resource *resource;          87         struct palmas_resource *resource;
 82         struct palmas_usb *usb;                    88         struct palmas_usb *usb;
 83                                                    89 
 84         /* GPIO MUXing */                          90         /* GPIO MUXing */
 85         u8 gpio_muxed;                             91         u8 gpio_muxed;
 86         u8 led_muxed;                              92         u8 led_muxed;
 87         u8 pwm_muxed;                              93         u8 pwm_muxed;
 88 };                                                 94 };
 89                                                    95 
 90 #define PALMAS_EXT_REQ (PALMAS_EXT_CONTROL_ENA     96 #define PALMAS_EXT_REQ (PALMAS_EXT_CONTROL_ENABLE1 |    \
 91                         PALMAS_EXT_CONTROL_ENA     97                         PALMAS_EXT_CONTROL_ENABLE2 |    \
 92                         PALMAS_EXT_CONTROL_NSL     98                         PALMAS_EXT_CONTROL_NSLEEP)
 93                                                    99 
 94 struct palmas_sleep_requestor_info {              100 struct palmas_sleep_requestor_info {
 95         int id;                                   101         int id;
 96         int reg_offset;                           102         int reg_offset;
 97         int bit_pos;                              103         int bit_pos;
 98 };                                                104 };
 99                                                   105 
100 struct palmas_regs_info {                         106 struct palmas_regs_info {
101         char    *name;                            107         char    *name;
102         char    *sname;                           108         char    *sname;
103         u8      vsel_addr;                        109         u8      vsel_addr;
104         u8      ctrl_addr;                        110         u8      ctrl_addr;
105         u8      tstep_addr;                       111         u8      tstep_addr;
106         int     sleep_id;                         112         int     sleep_id;
107 };                                                113 };
108                                                   114 
109 struct palmas_pmic_driver_data {                  115 struct palmas_pmic_driver_data {
110         int smps_start;                           116         int smps_start;
111         int smps_end;                             117         int smps_end;
112         int ldo_begin;                            118         int ldo_begin;
113         int ldo_end;                              119         int ldo_end;
114         int max_reg;                              120         int max_reg;
115         bool has_regen3;                          121         bool has_regen3;
116         struct palmas_regs_info *palmas_regs_i    122         struct palmas_regs_info *palmas_regs_info;
117         struct of_regulator_match *palmas_matc    123         struct of_regulator_match *palmas_matches;
118         struct palmas_sleep_requestor_info *sl    124         struct palmas_sleep_requestor_info *sleep_req_info;
119         int (*smps_register)(struct palmas_pmi    125         int (*smps_register)(struct palmas_pmic *pmic,
120                              struct palmas_pmi    126                              struct palmas_pmic_driver_data *ddata,
121                              struct palmas_pmi    127                              struct palmas_pmic_platform_data *pdata,
122                              const char *pdev_    128                              const char *pdev_name,
123                              struct regulator_    129                              struct regulator_config config);
124         int (*ldo_register)(struct palmas_pmic    130         int (*ldo_register)(struct palmas_pmic *pmic,
125                             struct palmas_pmic    131                             struct palmas_pmic_driver_data *ddata,
126                             struct palmas_pmic    132                             struct palmas_pmic_platform_data *pdata,
127                             const char *pdev_n    133                             const char *pdev_name,
128                             struct regulator_c    134                             struct regulator_config config);
129 };                                                135 };
130                                                   136 
                                                   >> 137 struct palmas_adc_wakeup_property {
                                                   >> 138         int adc_channel_number;
                                                   >> 139         int adc_high_threshold;
                                                   >> 140         int adc_low_threshold;
                                                   >> 141 };
                                                   >> 142 
131 struct palmas_gpadc_platform_data {               143 struct palmas_gpadc_platform_data {
132         /* Channel 3 current source is only en    144         /* Channel 3 current source is only enabled during conversion */
133         int ch3_current;        /* 0: off; 1:     145         int ch3_current;        /* 0: off; 1: 10uA; 2: 400uA; 3: 800 uA */
134                                                   146 
135         /* Channel 0 current source can be use    147         /* Channel 0 current source can be used for battery detection.
136          * If used for battery detection this     148          * If used for battery detection this will cause a permanent current
137          * consumption depending on current le    149          * consumption depending on current level set here.
138          */                                       150          */
139         int ch0_current;        /* 0: off; 1:     151         int ch0_current;        /* 0: off; 1: 5uA; 2: 15uA; 3: 20 uA */
140         bool extended_delay;    /* use extende    152         bool extended_delay;    /* use extended delay for conversion */
141                                                   153 
142         /* default BAT_REMOVAL_DAT setting on     154         /* default BAT_REMOVAL_DAT setting on device probe */
143         int bat_removal;                          155         int bat_removal;
144                                                   156 
145         /* Sets the START_POLARITY bit in the     157         /* Sets the START_POLARITY bit in the RT_CTRL register */
146         int start_polarity;                       158         int start_polarity;
147                                                   159 
148         int auto_conversion_period_ms;            160         int auto_conversion_period_ms;
                                                   >> 161         struct palmas_adc_wakeup_property *adc_wakeup1_data;
                                                   >> 162         struct palmas_adc_wakeup_property *adc_wakeup2_data;
149 };                                                163 };
150                                                   164 
151 struct palmas_reg_init {                          165 struct palmas_reg_init {
152         /* warm_rest controls the voltage leve    166         /* warm_rest controls the voltage levels after a warm reset
153          *                                        167          *
154          * 0: reload default values from OTP o    168          * 0: reload default values from OTP on warm reset
155          * 1: maintain voltage from VSEL on wa    169          * 1: maintain voltage from VSEL on warm reset
156          */                                       170          */
157         int warm_reset;                           171         int warm_reset;
158                                                   172 
159         /* roof_floor controls whether the reg    173         /* roof_floor controls whether the regulator uses the i2c style
160          * of DVS or uses the method where a G    174          * of DVS or uses the method where a GPIO or other control method is
161          * attached to the NSLEEP/ENABLE1/ENAB    175          * attached to the NSLEEP/ENABLE1/ENABLE2 pins
162          *                                        176          *
163          * For SMPS                               177          * For SMPS
164          *                                        178          *
165          * 0: i2c selection of voltage            179          * 0: i2c selection of voltage
166          * 1: pin selection of voltage.           180          * 1: pin selection of voltage.
167          *                                        181          *
168          * For LDO unused                         182          * For LDO unused
169          */                                       183          */
170         int roof_floor;                           184         int roof_floor;
171                                                   185 
172         /* sleep_mode is the mode loaded to MO    186         /* sleep_mode is the mode loaded to MODE_SLEEP bits as defined in
173          * the data sheet.                        187          * the data sheet.
174          *                                        188          *
175          * For SMPS                               189          * For SMPS
176          *                                        190          *
177          * 0: Off                                 191          * 0: Off
178          * 1: AUTO                                192          * 1: AUTO
179          * 2: ECO                                 193          * 2: ECO
180          * 3: Forced PWM                          194          * 3: Forced PWM
181          *                                        195          *
182          * For LDO                                196          * For LDO
183          *                                        197          *
184          * 0: Off                                 198          * 0: Off
185          * 1: On                                  199          * 1: On
186          */                                       200          */
187         int mode_sleep;                           201         int mode_sleep;
188                                                   202 
189         /* voltage_sel is the bitfield loaded     203         /* voltage_sel is the bitfield loaded onto the SMPSX_VOLTAGE
190          * register. Set this is the default v    204          * register. Set this is the default voltage set in OTP needs
191          * to be overridden.                      205          * to be overridden.
192          */                                       206          */
193         u8 vsel;                                  207         u8 vsel;
194                                                   208 
195 };                                                209 };
196                                                   210 
197 enum palmas_regulators {                          211 enum palmas_regulators {
198         /* SMPS regulators */                     212         /* SMPS regulators */
199         PALMAS_REG_SMPS12,                        213         PALMAS_REG_SMPS12,
200         PALMAS_REG_SMPS123,                       214         PALMAS_REG_SMPS123,
201         PALMAS_REG_SMPS3,                         215         PALMAS_REG_SMPS3,
202         PALMAS_REG_SMPS45,                        216         PALMAS_REG_SMPS45,
203         PALMAS_REG_SMPS457,                       217         PALMAS_REG_SMPS457,
204         PALMAS_REG_SMPS6,                         218         PALMAS_REG_SMPS6,
205         PALMAS_REG_SMPS7,                         219         PALMAS_REG_SMPS7,
206         PALMAS_REG_SMPS8,                         220         PALMAS_REG_SMPS8,
207         PALMAS_REG_SMPS9,                         221         PALMAS_REG_SMPS9,
208         PALMAS_REG_SMPS10_OUT2,                   222         PALMAS_REG_SMPS10_OUT2,
209         PALMAS_REG_SMPS10_OUT1,                   223         PALMAS_REG_SMPS10_OUT1,
210         /* LDO regulators */                      224         /* LDO regulators */
211         PALMAS_REG_LDO1,                          225         PALMAS_REG_LDO1,
212         PALMAS_REG_LDO2,                          226         PALMAS_REG_LDO2,
213         PALMAS_REG_LDO3,                          227         PALMAS_REG_LDO3,
214         PALMAS_REG_LDO4,                          228         PALMAS_REG_LDO4,
215         PALMAS_REG_LDO5,                          229         PALMAS_REG_LDO5,
216         PALMAS_REG_LDO6,                          230         PALMAS_REG_LDO6,
217         PALMAS_REG_LDO7,                          231         PALMAS_REG_LDO7,
218         PALMAS_REG_LDO8,                          232         PALMAS_REG_LDO8,
219         PALMAS_REG_LDO9,                          233         PALMAS_REG_LDO9,
220         PALMAS_REG_LDOLN,                         234         PALMAS_REG_LDOLN,
221         PALMAS_REG_LDOUSB,                        235         PALMAS_REG_LDOUSB,
222         /* External regulators */                 236         /* External regulators */
223         PALMAS_REG_REGEN1,                        237         PALMAS_REG_REGEN1,
224         PALMAS_REG_REGEN2,                        238         PALMAS_REG_REGEN2,
225         PALMAS_REG_REGEN3,                        239         PALMAS_REG_REGEN3,
226         PALMAS_REG_SYSEN1,                        240         PALMAS_REG_SYSEN1,
227         PALMAS_REG_SYSEN2,                        241         PALMAS_REG_SYSEN2,
228         /* Total number of regulators */          242         /* Total number of regulators */
229         PALMAS_NUM_REGS,                          243         PALMAS_NUM_REGS,
230 };                                                244 };
231                                                   245 
232 enum tps65917_regulators {                        246 enum tps65917_regulators {
233         /* SMPS regulators */                     247         /* SMPS regulators */
234         TPS65917_REG_SMPS1,                       248         TPS65917_REG_SMPS1,
235         TPS65917_REG_SMPS2,                       249         TPS65917_REG_SMPS2,
236         TPS65917_REG_SMPS3,                       250         TPS65917_REG_SMPS3,
237         TPS65917_REG_SMPS4,                       251         TPS65917_REG_SMPS4,
238         TPS65917_REG_SMPS5,                       252         TPS65917_REG_SMPS5,
239         TPS65917_REG_SMPS12,                      253         TPS65917_REG_SMPS12,
240         /* LDO regulators */                      254         /* LDO regulators */
241         TPS65917_REG_LDO1,                        255         TPS65917_REG_LDO1,
242         TPS65917_REG_LDO2,                        256         TPS65917_REG_LDO2,
243         TPS65917_REG_LDO3,                        257         TPS65917_REG_LDO3,
244         TPS65917_REG_LDO4,                        258         TPS65917_REG_LDO4,
245         TPS65917_REG_LDO5,                        259         TPS65917_REG_LDO5,
246         TPS65917_REG_REGEN1,                      260         TPS65917_REG_REGEN1,
247         TPS65917_REG_REGEN2,                      261         TPS65917_REG_REGEN2,
248         TPS65917_REG_REGEN3,                      262         TPS65917_REG_REGEN3,
249                                                   263 
250         /* Total number of regulators */          264         /* Total number of regulators */
251         TPS65917_NUM_REGS,                        265         TPS65917_NUM_REGS,
252 };                                                266 };
253                                                   267 
254 /* External controll signal name */               268 /* External controll signal name */
255 enum {                                            269 enum {
256         PALMAS_EXT_CONTROL_ENABLE1      = 0x1,    270         PALMAS_EXT_CONTROL_ENABLE1      = 0x1,
257         PALMAS_EXT_CONTROL_ENABLE2      = 0x2,    271         PALMAS_EXT_CONTROL_ENABLE2      = 0x2,
258         PALMAS_EXT_CONTROL_NSLEEP       = 0x4,    272         PALMAS_EXT_CONTROL_NSLEEP       = 0x4,
259 };                                                273 };
260                                                   274 
261 /*                                                275 /*
262  * Palmas device resources can be controlled e    276  * Palmas device resources can be controlled externally for
263  * enabling/disabling it rather than register     277  * enabling/disabling it rather than register write through i2c.
264  * Add the external controlled requestor ID fo    278  * Add the external controlled requestor ID for different resources.
265  */                                               279  */
266 enum palmas_external_requestor_id {               280 enum palmas_external_requestor_id {
267         PALMAS_EXTERNAL_REQSTR_ID_REGEN1,         281         PALMAS_EXTERNAL_REQSTR_ID_REGEN1,
268         PALMAS_EXTERNAL_REQSTR_ID_REGEN2,         282         PALMAS_EXTERNAL_REQSTR_ID_REGEN2,
269         PALMAS_EXTERNAL_REQSTR_ID_SYSEN1,         283         PALMAS_EXTERNAL_REQSTR_ID_SYSEN1,
270         PALMAS_EXTERNAL_REQSTR_ID_SYSEN2,         284         PALMAS_EXTERNAL_REQSTR_ID_SYSEN2,
271         PALMAS_EXTERNAL_REQSTR_ID_CLK32KG,        285         PALMAS_EXTERNAL_REQSTR_ID_CLK32KG,
272         PALMAS_EXTERNAL_REQSTR_ID_CLK32KGAUDIO    286         PALMAS_EXTERNAL_REQSTR_ID_CLK32KGAUDIO,
273         PALMAS_EXTERNAL_REQSTR_ID_REGEN3,         287         PALMAS_EXTERNAL_REQSTR_ID_REGEN3,
274         PALMAS_EXTERNAL_REQSTR_ID_SMPS12,         288         PALMAS_EXTERNAL_REQSTR_ID_SMPS12,
275         PALMAS_EXTERNAL_REQSTR_ID_SMPS3,          289         PALMAS_EXTERNAL_REQSTR_ID_SMPS3,
276         PALMAS_EXTERNAL_REQSTR_ID_SMPS45,         290         PALMAS_EXTERNAL_REQSTR_ID_SMPS45,
277         PALMAS_EXTERNAL_REQSTR_ID_SMPS6,          291         PALMAS_EXTERNAL_REQSTR_ID_SMPS6,
278         PALMAS_EXTERNAL_REQSTR_ID_SMPS7,          292         PALMAS_EXTERNAL_REQSTR_ID_SMPS7,
279         PALMAS_EXTERNAL_REQSTR_ID_SMPS8,          293         PALMAS_EXTERNAL_REQSTR_ID_SMPS8,
280         PALMAS_EXTERNAL_REQSTR_ID_SMPS9,          294         PALMAS_EXTERNAL_REQSTR_ID_SMPS9,
281         PALMAS_EXTERNAL_REQSTR_ID_SMPS10,         295         PALMAS_EXTERNAL_REQSTR_ID_SMPS10,
282         PALMAS_EXTERNAL_REQSTR_ID_LDO1,           296         PALMAS_EXTERNAL_REQSTR_ID_LDO1,
283         PALMAS_EXTERNAL_REQSTR_ID_LDO2,           297         PALMAS_EXTERNAL_REQSTR_ID_LDO2,
284         PALMAS_EXTERNAL_REQSTR_ID_LDO3,           298         PALMAS_EXTERNAL_REQSTR_ID_LDO3,
285         PALMAS_EXTERNAL_REQSTR_ID_LDO4,           299         PALMAS_EXTERNAL_REQSTR_ID_LDO4,
286         PALMAS_EXTERNAL_REQSTR_ID_LDO5,           300         PALMAS_EXTERNAL_REQSTR_ID_LDO5,
287         PALMAS_EXTERNAL_REQSTR_ID_LDO6,           301         PALMAS_EXTERNAL_REQSTR_ID_LDO6,
288         PALMAS_EXTERNAL_REQSTR_ID_LDO7,           302         PALMAS_EXTERNAL_REQSTR_ID_LDO7,
289         PALMAS_EXTERNAL_REQSTR_ID_LDO8,           303         PALMAS_EXTERNAL_REQSTR_ID_LDO8,
290         PALMAS_EXTERNAL_REQSTR_ID_LDO9,           304         PALMAS_EXTERNAL_REQSTR_ID_LDO9,
291         PALMAS_EXTERNAL_REQSTR_ID_LDOLN,          305         PALMAS_EXTERNAL_REQSTR_ID_LDOLN,
292         PALMAS_EXTERNAL_REQSTR_ID_LDOUSB,         306         PALMAS_EXTERNAL_REQSTR_ID_LDOUSB,
293                                                   307 
294         /* Last entry */                          308         /* Last entry */
295         PALMAS_EXTERNAL_REQSTR_ID_MAX,            309         PALMAS_EXTERNAL_REQSTR_ID_MAX,
296 };                                                310 };
297                                                   311 
298 enum tps65917_external_requestor_id {             312 enum tps65917_external_requestor_id {
299         TPS65917_EXTERNAL_REQSTR_ID_REGEN1,       313         TPS65917_EXTERNAL_REQSTR_ID_REGEN1,
300         TPS65917_EXTERNAL_REQSTR_ID_REGEN2,       314         TPS65917_EXTERNAL_REQSTR_ID_REGEN2,
301         TPS65917_EXTERNAL_REQSTR_ID_REGEN3,       315         TPS65917_EXTERNAL_REQSTR_ID_REGEN3,
302         TPS65917_EXTERNAL_REQSTR_ID_SMPS1,        316         TPS65917_EXTERNAL_REQSTR_ID_SMPS1,
303         TPS65917_EXTERNAL_REQSTR_ID_SMPS2,        317         TPS65917_EXTERNAL_REQSTR_ID_SMPS2,
304         TPS65917_EXTERNAL_REQSTR_ID_SMPS3,        318         TPS65917_EXTERNAL_REQSTR_ID_SMPS3,
305         TPS65917_EXTERNAL_REQSTR_ID_SMPS4,        319         TPS65917_EXTERNAL_REQSTR_ID_SMPS4,
306         TPS65917_EXTERNAL_REQSTR_ID_SMPS5,        320         TPS65917_EXTERNAL_REQSTR_ID_SMPS5,
307         TPS65917_EXTERNAL_REQSTR_ID_SMPS12,       321         TPS65917_EXTERNAL_REQSTR_ID_SMPS12,
308         TPS65917_EXTERNAL_REQSTR_ID_LDO1,         322         TPS65917_EXTERNAL_REQSTR_ID_LDO1,
309         TPS65917_EXTERNAL_REQSTR_ID_LDO2,         323         TPS65917_EXTERNAL_REQSTR_ID_LDO2,
310         TPS65917_EXTERNAL_REQSTR_ID_LDO3,         324         TPS65917_EXTERNAL_REQSTR_ID_LDO3,
311         TPS65917_EXTERNAL_REQSTR_ID_LDO4,         325         TPS65917_EXTERNAL_REQSTR_ID_LDO4,
312         TPS65917_EXTERNAL_REQSTR_ID_LDO5,         326         TPS65917_EXTERNAL_REQSTR_ID_LDO5,
313         /* Last entry */                          327         /* Last entry */
314         TPS65917_EXTERNAL_REQSTR_ID_MAX,          328         TPS65917_EXTERNAL_REQSTR_ID_MAX,
315 };                                                329 };
316                                                   330 
317 struct palmas_pmic_platform_data {                331 struct palmas_pmic_platform_data {
318         /* An array of pointers to regulator i    332         /* An array of pointers to regulator init data indexed by regulator
319          * ID                                     333          * ID
320          */                                       334          */
321         struct regulator_init_data *reg_data[P    335         struct regulator_init_data *reg_data[PALMAS_NUM_REGS];
322                                                   336 
323         /* An array of pointers to structures     337         /* An array of pointers to structures containing sleep mode and DVS
324          * configuration for regulators indexe    338          * configuration for regulators indexed by ID
325          */                                       339          */
326         struct palmas_reg_init *reg_init[PALMA    340         struct palmas_reg_init *reg_init[PALMAS_NUM_REGS];
327                                                   341 
328         /* use LDO6 for vibrator control */       342         /* use LDO6 for vibrator control */
329         int ldo6_vibrator;                        343         int ldo6_vibrator;
330                                                   344 
331         /* Enable tracking mode of LDO8 */        345         /* Enable tracking mode of LDO8 */
332         bool enable_ldo8_tracking;                346         bool enable_ldo8_tracking;
333 };                                                347 };
334                                                   348 
335 struct palmas_usb_platform_data {                 349 struct palmas_usb_platform_data {
336         /* Do we enable the wakeup comparator     350         /* Do we enable the wakeup comparator on probe */
337         int wakeup;                               351         int wakeup;
338 };                                                352 };
339                                                   353 
340 struct palmas_resource_platform_data {            354 struct palmas_resource_platform_data {
341         int regen1_mode_sleep;                    355         int regen1_mode_sleep;
342         int regen2_mode_sleep;                    356         int regen2_mode_sleep;
343         int sysen1_mode_sleep;                    357         int sysen1_mode_sleep;
344         int sysen2_mode_sleep;                    358         int sysen2_mode_sleep;
345                                                   359 
346         /* bitfield to be loaded to NSLEEP_RES    360         /* bitfield to be loaded to NSLEEP_RES_ASSIGN */
347         u8 nsleep_res;                            361         u8 nsleep_res;
348         /* bitfield to be loaded to NSLEEP_SMP    362         /* bitfield to be loaded to NSLEEP_SMPS_ASSIGN */
349         u8 nsleep_smps;                           363         u8 nsleep_smps;
350         /* bitfield to be loaded to NSLEEP_LDO    364         /* bitfield to be loaded to NSLEEP_LDO_ASSIGN1 */
351         u8 nsleep_ldo1;                           365         u8 nsleep_ldo1;
352         /* bitfield to be loaded to NSLEEP_LDO    366         /* bitfield to be loaded to NSLEEP_LDO_ASSIGN2 */
353         u8 nsleep_ldo2;                           367         u8 nsleep_ldo2;
354                                                   368 
355         /* bitfield to be loaded to ENABLE1_RE    369         /* bitfield to be loaded to ENABLE1_RES_ASSIGN */
356         u8 enable1_res;                           370         u8 enable1_res;
357         /* bitfield to be loaded to ENABLE1_SM    371         /* bitfield to be loaded to ENABLE1_SMPS_ASSIGN */
358         u8 enable1_smps;                          372         u8 enable1_smps;
359         /* bitfield to be loaded to ENABLE1_LD    373         /* bitfield to be loaded to ENABLE1_LDO_ASSIGN1 */
360         u8 enable1_ldo1;                          374         u8 enable1_ldo1;
361         /* bitfield to be loaded to ENABLE1_LD    375         /* bitfield to be loaded to ENABLE1_LDO_ASSIGN2 */
362         u8 enable1_ldo2;                          376         u8 enable1_ldo2;
363                                                   377 
364         /* bitfield to be loaded to ENABLE2_RE    378         /* bitfield to be loaded to ENABLE2_RES_ASSIGN */
365         u8 enable2_res;                           379         u8 enable2_res;
366         /* bitfield to be loaded to ENABLE2_SM    380         /* bitfield to be loaded to ENABLE2_SMPS_ASSIGN */
367         u8 enable2_smps;                          381         u8 enable2_smps;
368         /* bitfield to be loaded to ENABLE2_LD    382         /* bitfield to be loaded to ENABLE2_LDO_ASSIGN1 */
369         u8 enable2_ldo1;                          383         u8 enable2_ldo1;
370         /* bitfield to be loaded to ENABLE2_LD    384         /* bitfield to be loaded to ENABLE2_LDO_ASSIGN2 */
371         u8 enable2_ldo2;                          385         u8 enable2_ldo2;
372 };                                                386 };
373                                                   387 
374 struct palmas_clk_platform_data {                 388 struct palmas_clk_platform_data {
375         int clk32kg_mode_sleep;                   389         int clk32kg_mode_sleep;
376         int clk32kgaudio_mode_sleep;              390         int clk32kgaudio_mode_sleep;
377 };                                                391 };
378                                                   392 
379 struct palmas_platform_data {                     393 struct palmas_platform_data {
380         int irq_flags;                            394         int irq_flags;
381         int gpio_base;                            395         int gpio_base;
382                                                   396 
383         /* bit value to be loaded to the POWER    397         /* bit value to be loaded to the POWER_CTRL register */
384         u8 power_ctrl;                            398         u8 power_ctrl;
385                                                   399 
386         /*                                        400         /*
387          * boolean to select if we want to con    401          * boolean to select if we want to configure muxing here
388          * then the two value to load into the    402          * then the two value to load into the registers if true
389          */                                       403          */
390         int mux_from_pdata;                       404         int mux_from_pdata;
391         u8 pad1, pad2;                            405         u8 pad1, pad2;
392         bool pm_off;                              406         bool pm_off;
393                                                   407 
394         struct palmas_pmic_platform_data *pmic    408         struct palmas_pmic_platform_data *pmic_pdata;
395         struct palmas_gpadc_platform_data *gpa    409         struct palmas_gpadc_platform_data *gpadc_pdata;
396         struct palmas_usb_platform_data *usb_p    410         struct palmas_usb_platform_data *usb_pdata;
397         struct palmas_resource_platform_data *    411         struct palmas_resource_platform_data *resource_pdata;
398         struct palmas_clk_platform_data *clk_p    412         struct palmas_clk_platform_data *clk_pdata;
399 };                                                413 };
400                                                   414 
401 struct palmas_gpadc_calibration {                 415 struct palmas_gpadc_calibration {
402         s32 gain;                                 416         s32 gain;
403         s32 gain_error;                           417         s32 gain_error;
404         s32 offset_error;                         418         s32 offset_error;
405 };                                                419 };
406                                                   420 
407 #define PALMAS_DATASHEET_NAME(_name)    "palma    421 #define PALMAS_DATASHEET_NAME(_name)    "palmas-gpadc-chan-"#_name
408                                                   422 
409 struct palmas_gpadc_result {                      423 struct palmas_gpadc_result {
410         s32 raw_code;                             424         s32 raw_code;
411         s32 corrected_code;                       425         s32 corrected_code;
412         s32 result;                               426         s32 result;
413 };                                                427 };
414                                                   428 
415 #define PALMAS_MAX_CHANNELS 16                    429 #define PALMAS_MAX_CHANNELS 16
416                                                   430 
417 /* Define the tps65917 IRQ numbers */             431 /* Define the tps65917 IRQ numbers */
418 enum tps65917_irqs {                              432 enum tps65917_irqs {
419         /* INT1 registers */                      433         /* INT1 registers */
420         TPS65917_RESERVED1,                       434         TPS65917_RESERVED1,
421         TPS65917_PWRON_IRQ,                       435         TPS65917_PWRON_IRQ,
422         TPS65917_LONG_PRESS_KEY_IRQ,              436         TPS65917_LONG_PRESS_KEY_IRQ,
423         TPS65917_RESERVED2,                       437         TPS65917_RESERVED2,
424         TPS65917_PWRDOWN_IRQ,                     438         TPS65917_PWRDOWN_IRQ,
425         TPS65917_HOTDIE_IRQ,                      439         TPS65917_HOTDIE_IRQ,
426         TPS65917_VSYS_MON_IRQ,                    440         TPS65917_VSYS_MON_IRQ,
427         TPS65917_RESERVED3,                       441         TPS65917_RESERVED3,
428         /* INT2 registers */                      442         /* INT2 registers */
429         TPS65917_RESERVED4,                       443         TPS65917_RESERVED4,
430         TPS65917_OTP_ERROR_IRQ,                   444         TPS65917_OTP_ERROR_IRQ,
431         TPS65917_WDT_IRQ,                         445         TPS65917_WDT_IRQ,
432         TPS65917_RESERVED5,                       446         TPS65917_RESERVED5,
433         TPS65917_RESET_IN_IRQ,                    447         TPS65917_RESET_IN_IRQ,
434         TPS65917_FSD_IRQ,                         448         TPS65917_FSD_IRQ,
435         TPS65917_SHORT_IRQ,                       449         TPS65917_SHORT_IRQ,
436         TPS65917_RESERVED6,                       450         TPS65917_RESERVED6,
437         /* INT3 registers */                      451         /* INT3 registers */
438         TPS65917_GPADC_AUTO_0_IRQ,                452         TPS65917_GPADC_AUTO_0_IRQ,
439         TPS65917_GPADC_AUTO_1_IRQ,                453         TPS65917_GPADC_AUTO_1_IRQ,
440         TPS65917_GPADC_EOC_SW_IRQ,                454         TPS65917_GPADC_EOC_SW_IRQ,
441         TPS65917_RESREVED6,                       455         TPS65917_RESREVED6,
442         TPS65917_RESERVED7,                       456         TPS65917_RESERVED7,
443         TPS65917_RESERVED8,                       457         TPS65917_RESERVED8,
444         TPS65917_RESERVED9,                       458         TPS65917_RESERVED9,
445         TPS65917_VBUS_IRQ,                        459         TPS65917_VBUS_IRQ,
446         /* INT4 registers */                      460         /* INT4 registers */
447         TPS65917_GPIO_0_IRQ,                      461         TPS65917_GPIO_0_IRQ,
448         TPS65917_GPIO_1_IRQ,                      462         TPS65917_GPIO_1_IRQ,
449         TPS65917_GPIO_2_IRQ,                      463         TPS65917_GPIO_2_IRQ,
450         TPS65917_GPIO_3_IRQ,                      464         TPS65917_GPIO_3_IRQ,
451         TPS65917_GPIO_4_IRQ,                      465         TPS65917_GPIO_4_IRQ,
452         TPS65917_GPIO_5_IRQ,                      466         TPS65917_GPIO_5_IRQ,
453         TPS65917_GPIO_6_IRQ,                      467         TPS65917_GPIO_6_IRQ,
454         TPS65917_RESERVED10,                      468         TPS65917_RESERVED10,
455         /* Total Number IRQs */                   469         /* Total Number IRQs */
456         TPS65917_NUM_IRQ,                         470         TPS65917_NUM_IRQ,
457 };                                                471 };
458                                                   472 
459 /* Define the palmas IRQ numbers */               473 /* Define the palmas IRQ numbers */
460 enum palmas_irqs {                                474 enum palmas_irqs {
461         /* INT1 registers */                      475         /* INT1 registers */
462         PALMAS_CHARG_DET_N_VBUS_OVV_IRQ,          476         PALMAS_CHARG_DET_N_VBUS_OVV_IRQ,
463         PALMAS_PWRON_IRQ,                         477         PALMAS_PWRON_IRQ,
464         PALMAS_LONG_PRESS_KEY_IRQ,                478         PALMAS_LONG_PRESS_KEY_IRQ,
465         PALMAS_RPWRON_IRQ,                        479         PALMAS_RPWRON_IRQ,
466         PALMAS_PWRDOWN_IRQ,                       480         PALMAS_PWRDOWN_IRQ,
467         PALMAS_HOTDIE_IRQ,                        481         PALMAS_HOTDIE_IRQ,
468         PALMAS_VSYS_MON_IRQ,                      482         PALMAS_VSYS_MON_IRQ,
469         PALMAS_VBAT_MON_IRQ,                      483         PALMAS_VBAT_MON_IRQ,
470         /* INT2 registers */                      484         /* INT2 registers */
471         PALMAS_RTC_ALARM_IRQ,                     485         PALMAS_RTC_ALARM_IRQ,
472         PALMAS_RTC_TIMER_IRQ,                     486         PALMAS_RTC_TIMER_IRQ,
473         PALMAS_WDT_IRQ,                           487         PALMAS_WDT_IRQ,
474         PALMAS_BATREMOVAL_IRQ,                    488         PALMAS_BATREMOVAL_IRQ,
475         PALMAS_RESET_IN_IRQ,                      489         PALMAS_RESET_IN_IRQ,
476         PALMAS_FBI_BB_IRQ,                        490         PALMAS_FBI_BB_IRQ,
477         PALMAS_SHORT_IRQ,                         491         PALMAS_SHORT_IRQ,
478         PALMAS_VAC_ACOK_IRQ,                      492         PALMAS_VAC_ACOK_IRQ,
479         /* INT3 registers */                      493         /* INT3 registers */
480         PALMAS_GPADC_AUTO_0_IRQ,                  494         PALMAS_GPADC_AUTO_0_IRQ,
481         PALMAS_GPADC_AUTO_1_IRQ,                  495         PALMAS_GPADC_AUTO_1_IRQ,
482         PALMAS_GPADC_EOC_SW_IRQ,                  496         PALMAS_GPADC_EOC_SW_IRQ,
483         PALMAS_GPADC_EOC_RT_IRQ,                  497         PALMAS_GPADC_EOC_RT_IRQ,
484         PALMAS_ID_OTG_IRQ,                        498         PALMAS_ID_OTG_IRQ,
485         PALMAS_ID_IRQ,                            499         PALMAS_ID_IRQ,
486         PALMAS_VBUS_OTG_IRQ,                      500         PALMAS_VBUS_OTG_IRQ,
487         PALMAS_VBUS_IRQ,                          501         PALMAS_VBUS_IRQ,
488         /* INT4 registers */                      502         /* INT4 registers */
489         PALMAS_GPIO_0_IRQ,                        503         PALMAS_GPIO_0_IRQ,
490         PALMAS_GPIO_1_IRQ,                        504         PALMAS_GPIO_1_IRQ,
491         PALMAS_GPIO_2_IRQ,                        505         PALMAS_GPIO_2_IRQ,
492         PALMAS_GPIO_3_IRQ,                        506         PALMAS_GPIO_3_IRQ,
493         PALMAS_GPIO_4_IRQ,                        507         PALMAS_GPIO_4_IRQ,
494         PALMAS_GPIO_5_IRQ,                        508         PALMAS_GPIO_5_IRQ,
495         PALMAS_GPIO_6_IRQ,                        509         PALMAS_GPIO_6_IRQ,
496         PALMAS_GPIO_7_IRQ,                        510         PALMAS_GPIO_7_IRQ,
497         /* Total Number IRQs */                   511         /* Total Number IRQs */
498         PALMAS_NUM_IRQ,                           512         PALMAS_NUM_IRQ,
499 };                                                513 };
500                                                   514 
501 /* Palmas GPADC Channels */                       515 /* Palmas GPADC Channels */
502 enum {                                            516 enum {
503         PALMAS_ADC_CH_IN0,                        517         PALMAS_ADC_CH_IN0,
504         PALMAS_ADC_CH_IN1,                        518         PALMAS_ADC_CH_IN1,
505         PALMAS_ADC_CH_IN2,                        519         PALMAS_ADC_CH_IN2,
506         PALMAS_ADC_CH_IN3,                        520         PALMAS_ADC_CH_IN3,
507         PALMAS_ADC_CH_IN4,                        521         PALMAS_ADC_CH_IN4,
508         PALMAS_ADC_CH_IN5,                        522         PALMAS_ADC_CH_IN5,
509         PALMAS_ADC_CH_IN6,                        523         PALMAS_ADC_CH_IN6,
510         PALMAS_ADC_CH_IN7,                        524         PALMAS_ADC_CH_IN7,
511         PALMAS_ADC_CH_IN8,                        525         PALMAS_ADC_CH_IN8,
512         PALMAS_ADC_CH_IN9,                        526         PALMAS_ADC_CH_IN9,
513         PALMAS_ADC_CH_IN10,                       527         PALMAS_ADC_CH_IN10,
514         PALMAS_ADC_CH_IN11,                       528         PALMAS_ADC_CH_IN11,
515         PALMAS_ADC_CH_IN12,                       529         PALMAS_ADC_CH_IN12,
516         PALMAS_ADC_CH_IN13,                       530         PALMAS_ADC_CH_IN13,
517         PALMAS_ADC_CH_IN14,                       531         PALMAS_ADC_CH_IN14,
518         PALMAS_ADC_CH_IN15,                       532         PALMAS_ADC_CH_IN15,
519         PALMAS_ADC_CH_MAX,                        533         PALMAS_ADC_CH_MAX,
520 };                                                534 };
521                                                   535 
522 /* Palmas GPADC Channel0 Current Source */        536 /* Palmas GPADC Channel0 Current Source */
523 enum {                                            537 enum {
524         PALMAS_ADC_CH0_CURRENT_SRC_0,             538         PALMAS_ADC_CH0_CURRENT_SRC_0,
525         PALMAS_ADC_CH0_CURRENT_SRC_5,             539         PALMAS_ADC_CH0_CURRENT_SRC_5,
526         PALMAS_ADC_CH0_CURRENT_SRC_15,            540         PALMAS_ADC_CH0_CURRENT_SRC_15,
527         PALMAS_ADC_CH0_CURRENT_SRC_20,            541         PALMAS_ADC_CH0_CURRENT_SRC_20,
528 };                                                542 };
529                                                   543 
530 /* Palmas GPADC Channel3 Current Source */        544 /* Palmas GPADC Channel3 Current Source */
531 enum {                                            545 enum {
532         PALMAS_ADC_CH3_CURRENT_SRC_0,             546         PALMAS_ADC_CH3_CURRENT_SRC_0,
533         PALMAS_ADC_CH3_CURRENT_SRC_10,            547         PALMAS_ADC_CH3_CURRENT_SRC_10,
534         PALMAS_ADC_CH3_CURRENT_SRC_400,           548         PALMAS_ADC_CH3_CURRENT_SRC_400,
535         PALMAS_ADC_CH3_CURRENT_SRC_800,           549         PALMAS_ADC_CH3_CURRENT_SRC_800,
536 };                                                550 };
537                                                   551 
538 struct palmas_pmic {                              552 struct palmas_pmic {
539         struct palmas *palmas;                    553         struct palmas *palmas;
540         struct device *dev;                       554         struct device *dev;
541         struct regulator_desc desc[PALMAS_NUM_    555         struct regulator_desc desc[PALMAS_NUM_REGS];
                                                   >> 556         struct regulator_dev *rdev[PALMAS_NUM_REGS];
542         struct mutex mutex;                       557         struct mutex mutex;
543                                                   558 
544         int smps123;                              559         int smps123;
545         int smps457;                              560         int smps457;
546         int smps12;                               561         int smps12;
547                                                   562 
548         int range[PALMAS_REG_SMPS10_OUT1];        563         int range[PALMAS_REG_SMPS10_OUT1];
549         unsigned int ramp_delay[PALMAS_REG_SMP    564         unsigned int ramp_delay[PALMAS_REG_SMPS10_OUT1];
550         unsigned int current_reg_mode[PALMAS_R    565         unsigned int current_reg_mode[PALMAS_REG_SMPS10_OUT1];
551 };                                                566 };
552                                                   567 
553 struct palmas_resource {                          568 struct palmas_resource {
554         struct palmas *palmas;                    569         struct palmas *palmas;
555         struct device *dev;                       570         struct device *dev;
556 };                                                571 };
557                                                   572 
558 struct palmas_usb {                               573 struct palmas_usb {
559         struct palmas *palmas;                    574         struct palmas *palmas;
560         struct device *dev;                       575         struct device *dev;
561                                                   576 
562         struct extcon_dev *edev;                  577         struct extcon_dev *edev;
563                                                   578 
564         int id_otg_irq;                           579         int id_otg_irq;
565         int id_irq;                               580         int id_irq;
566         int vbus_otg_irq;                         581         int vbus_otg_irq;
567         int vbus_irq;                             582         int vbus_irq;
568                                                   583 
569         int gpio_id_irq;                          584         int gpio_id_irq;
570         int gpio_vbus_irq;                        585         int gpio_vbus_irq;
571         struct gpio_desc *id_gpiod;               586         struct gpio_desc *id_gpiod;
572         struct gpio_desc *vbus_gpiod;             587         struct gpio_desc *vbus_gpiod;
573         unsigned long sw_debounce_jiffies;        588         unsigned long sw_debounce_jiffies;
574         struct delayed_work wq_detectid;          589         struct delayed_work wq_detectid;
575                                                   590 
576         enum palmas_usb_state linkstat;           591         enum palmas_usb_state linkstat;
577         int wakeup;                               592         int wakeup;
578         bool enable_vbus_detection;               593         bool enable_vbus_detection;
579         bool enable_id_detection;                 594         bool enable_id_detection;
580         bool enable_gpio_id_detection;            595         bool enable_gpio_id_detection;
581         bool enable_gpio_vbus_detection;          596         bool enable_gpio_vbus_detection;
582 };                                                597 };
583                                                   598 
584 #define comparator_to_palmas(x) container_of((    599 #define comparator_to_palmas(x) container_of((x), struct palmas_usb, comparator)
585                                                   600 
586 enum usb_irq_events {                             601 enum usb_irq_events {
587         /* Wakeup events from INT3 */             602         /* Wakeup events from INT3 */
588         PALMAS_USB_ID_WAKEPUP,                    603         PALMAS_USB_ID_WAKEPUP,
589         PALMAS_USB_VBUS_WAKEUP,                   604         PALMAS_USB_VBUS_WAKEUP,
590                                                   605 
591         /* ID_OTG_EVENTS */                       606         /* ID_OTG_EVENTS */
592         PALMAS_USB_ID_GND,                        607         PALMAS_USB_ID_GND,
593         N_PALMAS_USB_ID_GND,                      608         N_PALMAS_USB_ID_GND,
594         PALMAS_USB_ID_C,                          609         PALMAS_USB_ID_C,
595         N_PALMAS_USB_ID_C,                        610         N_PALMAS_USB_ID_C,
596         PALMAS_USB_ID_B,                          611         PALMAS_USB_ID_B,
597         N_PALMAS_USB_ID_B,                        612         N_PALMAS_USB_ID_B,
598         PALMAS_USB_ID_A,                          613         PALMAS_USB_ID_A,
599         N_PALMAS_USB_ID_A,                        614         N_PALMAS_USB_ID_A,
600         PALMAS_USB_ID_FLOAT,                      615         PALMAS_USB_ID_FLOAT,
601         N_PALMAS_USB_ID_FLOAT,                    616         N_PALMAS_USB_ID_FLOAT,
602                                                   617 
603         /* VBUS_OTG_EVENTS */                     618         /* VBUS_OTG_EVENTS */
604         PALMAS_USB_VB_SESS_END,                   619         PALMAS_USB_VB_SESS_END,
605         N_PALMAS_USB_VB_SESS_END,                 620         N_PALMAS_USB_VB_SESS_END,
606         PALMAS_USB_VB_SESS_VLD,                   621         PALMAS_USB_VB_SESS_VLD,
607         N_PALMAS_USB_VB_SESS_VLD,                 622         N_PALMAS_USB_VB_SESS_VLD,
608         PALMAS_USB_VA_SESS_VLD,                   623         PALMAS_USB_VA_SESS_VLD,
609         N_PALMAS_USB_VA_SESS_VLD,                 624         N_PALMAS_USB_VA_SESS_VLD,
610         PALMAS_USB_VA_VBUS_VLD,                   625         PALMAS_USB_VA_VBUS_VLD,
611         N_PALMAS_USB_VA_VBUS_VLD,                 626         N_PALMAS_USB_VA_VBUS_VLD,
612         PALMAS_USB_VADP_SNS,                      627         PALMAS_USB_VADP_SNS,
613         N_PALMAS_USB_VADP_SNS,                    628         N_PALMAS_USB_VADP_SNS,
614         PALMAS_USB_VADP_PRB,                      629         PALMAS_USB_VADP_PRB,
615         N_PALMAS_USB_VADP_PRB,                    630         N_PALMAS_USB_VADP_PRB,
616         PALMAS_USB_VOTG_SESS_VLD,                 631         PALMAS_USB_VOTG_SESS_VLD,
617         N_PALMAS_USB_VOTG_SESS_VLD,               632         N_PALMAS_USB_VOTG_SESS_VLD,
618 };                                                633 };
619                                                   634 
620 /* defines so we can store the mux settings */    635 /* defines so we can store the mux settings */
621 #define PALMAS_GPIO_0_MUXED                       636 #define PALMAS_GPIO_0_MUXED                                     (1 << 0)
622 #define PALMAS_GPIO_1_MUXED                       637 #define PALMAS_GPIO_1_MUXED                                     (1 << 1)
623 #define PALMAS_GPIO_2_MUXED                       638 #define PALMAS_GPIO_2_MUXED                                     (1 << 2)
624 #define PALMAS_GPIO_3_MUXED                       639 #define PALMAS_GPIO_3_MUXED                                     (1 << 3)
625 #define PALMAS_GPIO_4_MUXED                       640 #define PALMAS_GPIO_4_MUXED                                     (1 << 4)
626 #define PALMAS_GPIO_5_MUXED                       641 #define PALMAS_GPIO_5_MUXED                                     (1 << 5)
627 #define PALMAS_GPIO_6_MUXED                       642 #define PALMAS_GPIO_6_MUXED                                     (1 << 6)
628 #define PALMAS_GPIO_7_MUXED                       643 #define PALMAS_GPIO_7_MUXED                                     (1 << 7)
629                                                   644 
630 #define PALMAS_LED1_MUXED                         645 #define PALMAS_LED1_MUXED                                       (1 << 0)
631 #define PALMAS_LED2_MUXED                         646 #define PALMAS_LED2_MUXED                                       (1 << 1)
632                                                   647 
633 #define PALMAS_PWM1_MUXED                         648 #define PALMAS_PWM1_MUXED                                       (1 << 0)
634 #define PALMAS_PWM2_MUXED                         649 #define PALMAS_PWM2_MUXED                                       (1 << 1)
635                                                   650 
636 /* helper macro to get correct slave number */    651 /* helper macro to get correct slave number */
637 #define PALMAS_BASE_TO_SLAVE(x)         ((x >>    652 #define PALMAS_BASE_TO_SLAVE(x)         ((x >> 8) - 1)
638 #define PALMAS_BASE_TO_REG(x, y)        ((x &     653 #define PALMAS_BASE_TO_REG(x, y)        ((x & 0xFF) + y)
639                                                   654 
640 /* Base addresses of IP blocks in Palmas */       655 /* Base addresses of IP blocks in Palmas */
641 #define PALMAS_SMPS_DVS_BASE                      656 #define PALMAS_SMPS_DVS_BASE                                    0x020
642 #define PALMAS_RTC_BASE                           657 #define PALMAS_RTC_BASE                                         0x100
643 #define PALMAS_VALIDITY_BASE                      658 #define PALMAS_VALIDITY_BASE                                    0x118
644 #define PALMAS_SMPS_BASE                          659 #define PALMAS_SMPS_BASE                                        0x120
645 #define PALMAS_LDO_BASE                           660 #define PALMAS_LDO_BASE                                         0x150
646 #define PALMAS_DVFS_BASE                          661 #define PALMAS_DVFS_BASE                                        0x180
647 #define PALMAS_PMU_CONTROL_BASE                   662 #define PALMAS_PMU_CONTROL_BASE                                 0x1A0
648 #define PALMAS_RESOURCE_BASE                      663 #define PALMAS_RESOURCE_BASE                                    0x1D4
649 #define PALMAS_PU_PD_OD_BASE                      664 #define PALMAS_PU_PD_OD_BASE                                    0x1F0
650 #define PALMAS_LED_BASE                           665 #define PALMAS_LED_BASE                                         0x200
651 #define PALMAS_INTERRUPT_BASE                     666 #define PALMAS_INTERRUPT_BASE                                   0x210
652 #define PALMAS_USB_OTG_BASE                       667 #define PALMAS_USB_OTG_BASE                                     0x250
653 #define PALMAS_VIBRATOR_BASE                      668 #define PALMAS_VIBRATOR_BASE                                    0x270
654 #define PALMAS_GPIO_BASE                          669 #define PALMAS_GPIO_BASE                                        0x280
655 #define PALMAS_USB_BASE                           670 #define PALMAS_USB_BASE                                         0x290
656 #define PALMAS_GPADC_BASE                         671 #define PALMAS_GPADC_BASE                                       0x2C0
657 #define PALMAS_TRIM_GPADC_BASE                    672 #define PALMAS_TRIM_GPADC_BASE                                  0x3CD
658                                                   673 
659 /* Registers for function RTC */                  674 /* Registers for function RTC */
660 #define PALMAS_SECONDS_REG                        675 #define PALMAS_SECONDS_REG                                      0x00
661 #define PALMAS_MINUTES_REG                        676 #define PALMAS_MINUTES_REG                                      0x01
662 #define PALMAS_HOURS_REG                          677 #define PALMAS_HOURS_REG                                        0x02
663 #define PALMAS_DAYS_REG                           678 #define PALMAS_DAYS_REG                                         0x03
664 #define PALMAS_MONTHS_REG                         679 #define PALMAS_MONTHS_REG                                       0x04
665 #define PALMAS_YEARS_REG                          680 #define PALMAS_YEARS_REG                                        0x05
666 #define PALMAS_WEEKS_REG                          681 #define PALMAS_WEEKS_REG                                        0x06
667 #define PALMAS_ALARM_SECONDS_REG                  682 #define PALMAS_ALARM_SECONDS_REG                                0x08
668 #define PALMAS_ALARM_MINUTES_REG                  683 #define PALMAS_ALARM_MINUTES_REG                                0x09
669 #define PALMAS_ALARM_HOURS_REG                    684 #define PALMAS_ALARM_HOURS_REG                                  0x0A
670 #define PALMAS_ALARM_DAYS_REG                     685 #define PALMAS_ALARM_DAYS_REG                                   0x0B
671 #define PALMAS_ALARM_MONTHS_REG                   686 #define PALMAS_ALARM_MONTHS_REG                                 0x0C
672 #define PALMAS_ALARM_YEARS_REG                    687 #define PALMAS_ALARM_YEARS_REG                                  0x0D
673 #define PALMAS_RTC_CTRL_REG                       688 #define PALMAS_RTC_CTRL_REG                                     0x10
674 #define PALMAS_RTC_STATUS_REG                     689 #define PALMAS_RTC_STATUS_REG                                   0x11
675 #define PALMAS_RTC_INTERRUPTS_REG                 690 #define PALMAS_RTC_INTERRUPTS_REG                               0x12
676 #define PALMAS_RTC_COMP_LSB_REG                   691 #define PALMAS_RTC_COMP_LSB_REG                                 0x13
677 #define PALMAS_RTC_COMP_MSB_REG                   692 #define PALMAS_RTC_COMP_MSB_REG                                 0x14
678 #define PALMAS_RTC_RES_PROG_REG                   693 #define PALMAS_RTC_RES_PROG_REG                                 0x15
679 #define PALMAS_RTC_RESET_STATUS_REG               694 #define PALMAS_RTC_RESET_STATUS_REG                             0x16
680                                                   695 
681 /* Bit definitions for SECONDS_REG */             696 /* Bit definitions for SECONDS_REG */
682 #define PALMAS_SECONDS_REG_SEC1_MASK              697 #define PALMAS_SECONDS_REG_SEC1_MASK                            0x70
683 #define PALMAS_SECONDS_REG_SEC1_SHIFT             698 #define PALMAS_SECONDS_REG_SEC1_SHIFT                           0x04
684 #define PALMAS_SECONDS_REG_SEC0_MASK              699 #define PALMAS_SECONDS_REG_SEC0_MASK                            0x0F
685 #define PALMAS_SECONDS_REG_SEC0_SHIFT             700 #define PALMAS_SECONDS_REG_SEC0_SHIFT                           0x00
686                                                   701 
687 /* Bit definitions for MINUTES_REG */             702 /* Bit definitions for MINUTES_REG */
688 #define PALMAS_MINUTES_REG_MIN1_MASK              703 #define PALMAS_MINUTES_REG_MIN1_MASK                            0x70
689 #define PALMAS_MINUTES_REG_MIN1_SHIFT             704 #define PALMAS_MINUTES_REG_MIN1_SHIFT                           0x04
690 #define PALMAS_MINUTES_REG_MIN0_MASK              705 #define PALMAS_MINUTES_REG_MIN0_MASK                            0x0F
691 #define PALMAS_MINUTES_REG_MIN0_SHIFT             706 #define PALMAS_MINUTES_REG_MIN0_SHIFT                           0x00
692                                                   707 
693 /* Bit definitions for HOURS_REG */               708 /* Bit definitions for HOURS_REG */
694 #define PALMAS_HOURS_REG_PM_NAM                   709 #define PALMAS_HOURS_REG_PM_NAM                                 0x80
695 #define PALMAS_HOURS_REG_PM_NAM_SHIFT             710 #define PALMAS_HOURS_REG_PM_NAM_SHIFT                           0x07
696 #define PALMAS_HOURS_REG_HOUR1_MASK               711 #define PALMAS_HOURS_REG_HOUR1_MASK                             0x30
697 #define PALMAS_HOURS_REG_HOUR1_SHIFT              712 #define PALMAS_HOURS_REG_HOUR1_SHIFT                            0x04
698 #define PALMAS_HOURS_REG_HOUR0_MASK               713 #define PALMAS_HOURS_REG_HOUR0_MASK                             0x0F
699 #define PALMAS_HOURS_REG_HOUR0_SHIFT              714 #define PALMAS_HOURS_REG_HOUR0_SHIFT                            0x00
700                                                   715 
701 /* Bit definitions for DAYS_REG */                716 /* Bit definitions for DAYS_REG */
702 #define PALMAS_DAYS_REG_DAY1_MASK                 717 #define PALMAS_DAYS_REG_DAY1_MASK                               0x30
703 #define PALMAS_DAYS_REG_DAY1_SHIFT                718 #define PALMAS_DAYS_REG_DAY1_SHIFT                              0x04
704 #define PALMAS_DAYS_REG_DAY0_MASK                 719 #define PALMAS_DAYS_REG_DAY0_MASK                               0x0F
705 #define PALMAS_DAYS_REG_DAY0_SHIFT                720 #define PALMAS_DAYS_REG_DAY0_SHIFT                              0x00
706                                                   721 
707 /* Bit definitions for MONTHS_REG */              722 /* Bit definitions for MONTHS_REG */
708 #define PALMAS_MONTHS_REG_MONTH1                  723 #define PALMAS_MONTHS_REG_MONTH1                                0x10
709 #define PALMAS_MONTHS_REG_MONTH1_SHIFT            724 #define PALMAS_MONTHS_REG_MONTH1_SHIFT                          0x04
710 #define PALMAS_MONTHS_REG_MONTH0_MASK             725 #define PALMAS_MONTHS_REG_MONTH0_MASK                           0x0F
711 #define PALMAS_MONTHS_REG_MONTH0_SHIFT            726 #define PALMAS_MONTHS_REG_MONTH0_SHIFT                          0x00
712                                                   727 
713 /* Bit definitions for YEARS_REG */               728 /* Bit definitions for YEARS_REG */
714 #define PALMAS_YEARS_REG_YEAR1_MASK               729 #define PALMAS_YEARS_REG_YEAR1_MASK                             0xf0
715 #define PALMAS_YEARS_REG_YEAR1_SHIFT              730 #define PALMAS_YEARS_REG_YEAR1_SHIFT                            0x04
716 #define PALMAS_YEARS_REG_YEAR0_MASK               731 #define PALMAS_YEARS_REG_YEAR0_MASK                             0x0F
717 #define PALMAS_YEARS_REG_YEAR0_SHIFT              732 #define PALMAS_YEARS_REG_YEAR0_SHIFT                            0x00
718                                                   733 
719 /* Bit definitions for WEEKS_REG */               734 /* Bit definitions for WEEKS_REG */
720 #define PALMAS_WEEKS_REG_WEEK_MASK                735 #define PALMAS_WEEKS_REG_WEEK_MASK                              0x07
721 #define PALMAS_WEEKS_REG_WEEK_SHIFT               736 #define PALMAS_WEEKS_REG_WEEK_SHIFT                             0x00
722                                                   737 
723 /* Bit definitions for ALARM_SECONDS_REG */       738 /* Bit definitions for ALARM_SECONDS_REG */
724 #define PALMAS_ALARM_SECONDS_REG_ALARM_SEC1_MA    739 #define PALMAS_ALARM_SECONDS_REG_ALARM_SEC1_MASK                0x70
725 #define PALMAS_ALARM_SECONDS_REG_ALARM_SEC1_SH    740 #define PALMAS_ALARM_SECONDS_REG_ALARM_SEC1_SHIFT               0x04
726 #define PALMAS_ALARM_SECONDS_REG_ALARM_SEC0_MA    741 #define PALMAS_ALARM_SECONDS_REG_ALARM_SEC0_MASK                0x0F
727 #define PALMAS_ALARM_SECONDS_REG_ALARM_SEC0_SH    742 #define PALMAS_ALARM_SECONDS_REG_ALARM_SEC0_SHIFT               0x00
728                                                   743 
729 /* Bit definitions for ALARM_MINUTES_REG */       744 /* Bit definitions for ALARM_MINUTES_REG */
730 #define PALMAS_ALARM_MINUTES_REG_ALARM_MIN1_MA    745 #define PALMAS_ALARM_MINUTES_REG_ALARM_MIN1_MASK                0x70
731 #define PALMAS_ALARM_MINUTES_REG_ALARM_MIN1_SH    746 #define PALMAS_ALARM_MINUTES_REG_ALARM_MIN1_SHIFT               0x04
732 #define PALMAS_ALARM_MINUTES_REG_ALARM_MIN0_MA    747 #define PALMAS_ALARM_MINUTES_REG_ALARM_MIN0_MASK                0x0F
733 #define PALMAS_ALARM_MINUTES_REG_ALARM_MIN0_SH    748 #define PALMAS_ALARM_MINUTES_REG_ALARM_MIN0_SHIFT               0x00
734                                                   749 
735 /* Bit definitions for ALARM_HOURS_REG */         750 /* Bit definitions for ALARM_HOURS_REG */
736 #define PALMAS_ALARM_HOURS_REG_ALARM_PM_NAM       751 #define PALMAS_ALARM_HOURS_REG_ALARM_PM_NAM                     0x80
737 #define PALMAS_ALARM_HOURS_REG_ALARM_PM_NAM_SH    752 #define PALMAS_ALARM_HOURS_REG_ALARM_PM_NAM_SHIFT               0x07
738 #define PALMAS_ALARM_HOURS_REG_ALARM_HOUR1_MAS    753 #define PALMAS_ALARM_HOURS_REG_ALARM_HOUR1_MASK                 0x30
739 #define PALMAS_ALARM_HOURS_REG_ALARM_HOUR1_SHI    754 #define PALMAS_ALARM_HOURS_REG_ALARM_HOUR1_SHIFT                0x04
740 #define PALMAS_ALARM_HOURS_REG_ALARM_HOUR0_MAS    755 #define PALMAS_ALARM_HOURS_REG_ALARM_HOUR0_MASK                 0x0F
741 #define PALMAS_ALARM_HOURS_REG_ALARM_HOUR0_SHI    756 #define PALMAS_ALARM_HOURS_REG_ALARM_HOUR0_SHIFT                0x00
742                                                   757 
743 /* Bit definitions for ALARM_DAYS_REG */          758 /* Bit definitions for ALARM_DAYS_REG */
744 #define PALMAS_ALARM_DAYS_REG_ALARM_DAY1_MASK     759 #define PALMAS_ALARM_DAYS_REG_ALARM_DAY1_MASK                   0x30
745 #define PALMAS_ALARM_DAYS_REG_ALARM_DAY1_SHIFT    760 #define PALMAS_ALARM_DAYS_REG_ALARM_DAY1_SHIFT                  0x04
746 #define PALMAS_ALARM_DAYS_REG_ALARM_DAY0_MASK     761 #define PALMAS_ALARM_DAYS_REG_ALARM_DAY0_MASK                   0x0F
747 #define PALMAS_ALARM_DAYS_REG_ALARM_DAY0_SHIFT    762 #define PALMAS_ALARM_DAYS_REG_ALARM_DAY0_SHIFT                  0x00
748                                                   763 
749 /* Bit definitions for ALARM_MONTHS_REG */        764 /* Bit definitions for ALARM_MONTHS_REG */
750 #define PALMAS_ALARM_MONTHS_REG_ALARM_MONTH1      765 #define PALMAS_ALARM_MONTHS_REG_ALARM_MONTH1                    0x10
751 #define PALMAS_ALARM_MONTHS_REG_ALARM_MONTH1_S    766 #define PALMAS_ALARM_MONTHS_REG_ALARM_MONTH1_SHIFT              0x04
752 #define PALMAS_ALARM_MONTHS_REG_ALARM_MONTH0_M    767 #define PALMAS_ALARM_MONTHS_REG_ALARM_MONTH0_MASK               0x0F
753 #define PALMAS_ALARM_MONTHS_REG_ALARM_MONTH0_S    768 #define PALMAS_ALARM_MONTHS_REG_ALARM_MONTH0_SHIFT              0x00
754                                                   769 
755 /* Bit definitions for ALARM_YEARS_REG */         770 /* Bit definitions for ALARM_YEARS_REG */
756 #define PALMAS_ALARM_YEARS_REG_ALARM_YEAR1_MAS    771 #define PALMAS_ALARM_YEARS_REG_ALARM_YEAR1_MASK                 0xf0
757 #define PALMAS_ALARM_YEARS_REG_ALARM_YEAR1_SHI    772 #define PALMAS_ALARM_YEARS_REG_ALARM_YEAR1_SHIFT                0x04
758 #define PALMAS_ALARM_YEARS_REG_ALARM_YEAR0_MAS    773 #define PALMAS_ALARM_YEARS_REG_ALARM_YEAR0_MASK                 0x0F
759 #define PALMAS_ALARM_YEARS_REG_ALARM_YEAR0_SHI    774 #define PALMAS_ALARM_YEARS_REG_ALARM_YEAR0_SHIFT                0x00
760                                                   775 
761 /* Bit definitions for RTC_CTRL_REG */            776 /* Bit definitions for RTC_CTRL_REG */
762 #define PALMAS_RTC_CTRL_REG_RTC_V_OPT             777 #define PALMAS_RTC_CTRL_REG_RTC_V_OPT                           0x80
763 #define PALMAS_RTC_CTRL_REG_RTC_V_OPT_SHIFT       778 #define PALMAS_RTC_CTRL_REG_RTC_V_OPT_SHIFT                     0x07
764 #define PALMAS_RTC_CTRL_REG_GET_TIME              779 #define PALMAS_RTC_CTRL_REG_GET_TIME                            0x40
765 #define PALMAS_RTC_CTRL_REG_GET_TIME_SHIFT        780 #define PALMAS_RTC_CTRL_REG_GET_TIME_SHIFT                      0x06
766 #define PALMAS_RTC_CTRL_REG_SET_32_COUNTER        781 #define PALMAS_RTC_CTRL_REG_SET_32_COUNTER                      0x20
767 #define PALMAS_RTC_CTRL_REG_SET_32_COUNTER_SHI    782 #define PALMAS_RTC_CTRL_REG_SET_32_COUNTER_SHIFT                0x05
768 #define PALMAS_RTC_CTRL_REG_TEST_MODE             783 #define PALMAS_RTC_CTRL_REG_TEST_MODE                           0x10
769 #define PALMAS_RTC_CTRL_REG_TEST_MODE_SHIFT       784 #define PALMAS_RTC_CTRL_REG_TEST_MODE_SHIFT                     0x04
770 #define PALMAS_RTC_CTRL_REG_MODE_12_24            785 #define PALMAS_RTC_CTRL_REG_MODE_12_24                          0x08
771 #define PALMAS_RTC_CTRL_REG_MODE_12_24_SHIFT      786 #define PALMAS_RTC_CTRL_REG_MODE_12_24_SHIFT                    0x03
772 #define PALMAS_RTC_CTRL_REG_AUTO_COMP             787 #define PALMAS_RTC_CTRL_REG_AUTO_COMP                           0x04
773 #define PALMAS_RTC_CTRL_REG_AUTO_COMP_SHIFT       788 #define PALMAS_RTC_CTRL_REG_AUTO_COMP_SHIFT                     0x02
774 #define PALMAS_RTC_CTRL_REG_ROUND_30S             789 #define PALMAS_RTC_CTRL_REG_ROUND_30S                           0x02
775 #define PALMAS_RTC_CTRL_REG_ROUND_30S_SHIFT       790 #define PALMAS_RTC_CTRL_REG_ROUND_30S_SHIFT                     0x01
776 #define PALMAS_RTC_CTRL_REG_STOP_RTC              791 #define PALMAS_RTC_CTRL_REG_STOP_RTC                            0x01
777 #define PALMAS_RTC_CTRL_REG_STOP_RTC_SHIFT        792 #define PALMAS_RTC_CTRL_REG_STOP_RTC_SHIFT                      0x00
778                                                   793 
779 /* Bit definitions for RTC_STATUS_REG */          794 /* Bit definitions for RTC_STATUS_REG */
780 #define PALMAS_RTC_STATUS_REG_POWER_UP            795 #define PALMAS_RTC_STATUS_REG_POWER_UP                          0x80
781 #define PALMAS_RTC_STATUS_REG_POWER_UP_SHIFT      796 #define PALMAS_RTC_STATUS_REG_POWER_UP_SHIFT                    0x07
782 #define PALMAS_RTC_STATUS_REG_ALARM               797 #define PALMAS_RTC_STATUS_REG_ALARM                             0x40
783 #define PALMAS_RTC_STATUS_REG_ALARM_SHIFT         798 #define PALMAS_RTC_STATUS_REG_ALARM_SHIFT                       0x06
784 #define PALMAS_RTC_STATUS_REG_EVENT_1D            799 #define PALMAS_RTC_STATUS_REG_EVENT_1D                          0x20
785 #define PALMAS_RTC_STATUS_REG_EVENT_1D_SHIFT      800 #define PALMAS_RTC_STATUS_REG_EVENT_1D_SHIFT                    0x05
786 #define PALMAS_RTC_STATUS_REG_EVENT_1H            801 #define PALMAS_RTC_STATUS_REG_EVENT_1H                          0x10
787 #define PALMAS_RTC_STATUS_REG_EVENT_1H_SHIFT      802 #define PALMAS_RTC_STATUS_REG_EVENT_1H_SHIFT                    0x04
788 #define PALMAS_RTC_STATUS_REG_EVENT_1M            803 #define PALMAS_RTC_STATUS_REG_EVENT_1M                          0x08
789 #define PALMAS_RTC_STATUS_REG_EVENT_1M_SHIFT      804 #define PALMAS_RTC_STATUS_REG_EVENT_1M_SHIFT                    0x03
790 #define PALMAS_RTC_STATUS_REG_EVENT_1S            805 #define PALMAS_RTC_STATUS_REG_EVENT_1S                          0x04
791 #define PALMAS_RTC_STATUS_REG_EVENT_1S_SHIFT      806 #define PALMAS_RTC_STATUS_REG_EVENT_1S_SHIFT                    0x02
792 #define PALMAS_RTC_STATUS_REG_RUN                 807 #define PALMAS_RTC_STATUS_REG_RUN                               0x02
793 #define PALMAS_RTC_STATUS_REG_RUN_SHIFT           808 #define PALMAS_RTC_STATUS_REG_RUN_SHIFT                         0x01
794                                                   809 
795 /* Bit definitions for RTC_INTERRUPTS_REG */      810 /* Bit definitions for RTC_INTERRUPTS_REG */
796 #define PALMAS_RTC_INTERRUPTS_REG_IT_SLEEP_MAS    811 #define PALMAS_RTC_INTERRUPTS_REG_IT_SLEEP_MASK_EN              0x10
797 #define PALMAS_RTC_INTERRUPTS_REG_IT_SLEEP_MAS    812 #define PALMAS_RTC_INTERRUPTS_REG_IT_SLEEP_MASK_EN_SHIFT        0x04
798 #define PALMAS_RTC_INTERRUPTS_REG_IT_ALARM        813 #define PALMAS_RTC_INTERRUPTS_REG_IT_ALARM                      0x08
799 #define PALMAS_RTC_INTERRUPTS_REG_IT_ALARM_SHI    814 #define PALMAS_RTC_INTERRUPTS_REG_IT_ALARM_SHIFT                0x03
800 #define PALMAS_RTC_INTERRUPTS_REG_IT_TIMER        815 #define PALMAS_RTC_INTERRUPTS_REG_IT_TIMER                      0x04
801 #define PALMAS_RTC_INTERRUPTS_REG_IT_TIMER_SHI    816 #define PALMAS_RTC_INTERRUPTS_REG_IT_TIMER_SHIFT                0x02
802 #define PALMAS_RTC_INTERRUPTS_REG_EVERY_MASK      817 #define PALMAS_RTC_INTERRUPTS_REG_EVERY_MASK                    0x03
803 #define PALMAS_RTC_INTERRUPTS_REG_EVERY_SHIFT     818 #define PALMAS_RTC_INTERRUPTS_REG_EVERY_SHIFT                   0x00
804                                                   819 
805 /* Bit definitions for RTC_COMP_LSB_REG */        820 /* Bit definitions for RTC_COMP_LSB_REG */
806 #define PALMAS_RTC_COMP_LSB_REG_RTC_COMP_LSB_M    821 #define PALMAS_RTC_COMP_LSB_REG_RTC_COMP_LSB_MASK               0xFF
807 #define PALMAS_RTC_COMP_LSB_REG_RTC_COMP_LSB_S    822 #define PALMAS_RTC_COMP_LSB_REG_RTC_COMP_LSB_SHIFT              0x00
808                                                   823 
809 /* Bit definitions for RTC_COMP_MSB_REG */        824 /* Bit definitions for RTC_COMP_MSB_REG */
810 #define PALMAS_RTC_COMP_MSB_REG_RTC_COMP_MSB_M    825 #define PALMAS_RTC_COMP_MSB_REG_RTC_COMP_MSB_MASK               0xFF
811 #define PALMAS_RTC_COMP_MSB_REG_RTC_COMP_MSB_S    826 #define PALMAS_RTC_COMP_MSB_REG_RTC_COMP_MSB_SHIFT              0x00
812                                                   827 
813 /* Bit definitions for RTC_RES_PROG_REG */        828 /* Bit definitions for RTC_RES_PROG_REG */
814 #define PALMAS_RTC_RES_PROG_REG_SW_RES_PROG_MA    829 #define PALMAS_RTC_RES_PROG_REG_SW_RES_PROG_MASK                0x3F
815 #define PALMAS_RTC_RES_PROG_REG_SW_RES_PROG_SH    830 #define PALMAS_RTC_RES_PROG_REG_SW_RES_PROG_SHIFT               0x00
816                                                   831 
817 /* Bit definitions for RTC_RESET_STATUS_REG */    832 /* Bit definitions for RTC_RESET_STATUS_REG */
818 #define PALMAS_RTC_RESET_STATUS_REG_RESET_STAT    833 #define PALMAS_RTC_RESET_STATUS_REG_RESET_STATUS                0x01
819 #define PALMAS_RTC_RESET_STATUS_REG_RESET_STAT    834 #define PALMAS_RTC_RESET_STATUS_REG_RESET_STATUS_SHIFT          0x00
820                                                   835 
821 /* Registers for function BACKUP */               836 /* Registers for function BACKUP */
822 #define PALMAS_BACKUP0                            837 #define PALMAS_BACKUP0                                          0x00
823 #define PALMAS_BACKUP1                            838 #define PALMAS_BACKUP1                                          0x01
824 #define PALMAS_BACKUP2                            839 #define PALMAS_BACKUP2                                          0x02
825 #define PALMAS_BACKUP3                            840 #define PALMAS_BACKUP3                                          0x03
826 #define PALMAS_BACKUP4                            841 #define PALMAS_BACKUP4                                          0x04
827 #define PALMAS_BACKUP5                            842 #define PALMAS_BACKUP5                                          0x05
828 #define PALMAS_BACKUP6                            843 #define PALMAS_BACKUP6                                          0x06
829 #define PALMAS_BACKUP7                            844 #define PALMAS_BACKUP7                                          0x07
830                                                   845 
831 /* Bit definitions for BACKUP0 */                 846 /* Bit definitions for BACKUP0 */
832 #define PALMAS_BACKUP0_BACKUP_MASK                847 #define PALMAS_BACKUP0_BACKUP_MASK                              0xFF
833 #define PALMAS_BACKUP0_BACKUP_SHIFT               848 #define PALMAS_BACKUP0_BACKUP_SHIFT                             0x00
834                                                   849 
835 /* Bit definitions for BACKUP1 */                 850 /* Bit definitions for BACKUP1 */
836 #define PALMAS_BACKUP1_BACKUP_MASK                851 #define PALMAS_BACKUP1_BACKUP_MASK                              0xFF
837 #define PALMAS_BACKUP1_BACKUP_SHIFT               852 #define PALMAS_BACKUP1_BACKUP_SHIFT                             0x00
838                                                   853 
839 /* Bit definitions for BACKUP2 */                 854 /* Bit definitions for BACKUP2 */
840 #define PALMAS_BACKUP2_BACKUP_MASK                855 #define PALMAS_BACKUP2_BACKUP_MASK                              0xFF
841 #define PALMAS_BACKUP2_BACKUP_SHIFT               856 #define PALMAS_BACKUP2_BACKUP_SHIFT                             0x00
842                                                   857 
843 /* Bit definitions for BACKUP3 */                 858 /* Bit definitions for BACKUP3 */
844 #define PALMAS_BACKUP3_BACKUP_MASK                859 #define PALMAS_BACKUP3_BACKUP_MASK                              0xFF
845 #define PALMAS_BACKUP3_BACKUP_SHIFT               860 #define PALMAS_BACKUP3_BACKUP_SHIFT                             0x00
846                                                   861 
847 /* Bit definitions for BACKUP4 */                 862 /* Bit definitions for BACKUP4 */
848 #define PALMAS_BACKUP4_BACKUP_MASK                863 #define PALMAS_BACKUP4_BACKUP_MASK                              0xFF
849 #define PALMAS_BACKUP4_BACKUP_SHIFT               864 #define PALMAS_BACKUP4_BACKUP_SHIFT                             0x00
850                                                   865 
851 /* Bit definitions for BACKUP5 */                 866 /* Bit definitions for BACKUP5 */
852 #define PALMAS_BACKUP5_BACKUP_MASK                867 #define PALMAS_BACKUP5_BACKUP_MASK                              0xFF
853 #define PALMAS_BACKUP5_BACKUP_SHIFT               868 #define PALMAS_BACKUP5_BACKUP_SHIFT                             0x00
854                                                   869 
855 /* Bit definitions for BACKUP6 */                 870 /* Bit definitions for BACKUP6 */
856 #define PALMAS_BACKUP6_BACKUP_MASK                871 #define PALMAS_BACKUP6_BACKUP_MASK                              0xFF
857 #define PALMAS_BACKUP6_BACKUP_SHIFT               872 #define PALMAS_BACKUP6_BACKUP_SHIFT                             0x00
858                                                   873 
859 /* Bit definitions for BACKUP7 */                 874 /* Bit definitions for BACKUP7 */
860 #define PALMAS_BACKUP7_BACKUP_MASK                875 #define PALMAS_BACKUP7_BACKUP_MASK                              0xFF
861 #define PALMAS_BACKUP7_BACKUP_SHIFT               876 #define PALMAS_BACKUP7_BACKUP_SHIFT                             0x00
862                                                   877 
863 /* Registers for function SMPS */                 878 /* Registers for function SMPS */
864 #define PALMAS_SMPS12_CTRL                        879 #define PALMAS_SMPS12_CTRL                                      0x00
865 #define PALMAS_SMPS12_TSTEP                       880 #define PALMAS_SMPS12_TSTEP                                     0x01
866 #define PALMAS_SMPS12_FORCE                       881 #define PALMAS_SMPS12_FORCE                                     0x02
867 #define PALMAS_SMPS12_VOLTAGE                     882 #define PALMAS_SMPS12_VOLTAGE                                   0x03
868 #define PALMAS_SMPS3_CTRL                         883 #define PALMAS_SMPS3_CTRL                                       0x04
869 #define PALMAS_SMPS3_VOLTAGE                      884 #define PALMAS_SMPS3_VOLTAGE                                    0x07
870 #define PALMAS_SMPS45_CTRL                        885 #define PALMAS_SMPS45_CTRL                                      0x08
871 #define PALMAS_SMPS45_TSTEP                       886 #define PALMAS_SMPS45_TSTEP                                     0x09
872 #define PALMAS_SMPS45_FORCE                       887 #define PALMAS_SMPS45_FORCE                                     0x0A
873 #define PALMAS_SMPS45_VOLTAGE                     888 #define PALMAS_SMPS45_VOLTAGE                                   0x0B
874 #define PALMAS_SMPS6_CTRL                         889 #define PALMAS_SMPS6_CTRL                                       0x0C
875 #define PALMAS_SMPS6_TSTEP                        890 #define PALMAS_SMPS6_TSTEP                                      0x0D
876 #define PALMAS_SMPS6_FORCE                        891 #define PALMAS_SMPS6_FORCE                                      0x0E
877 #define PALMAS_SMPS6_VOLTAGE                      892 #define PALMAS_SMPS6_VOLTAGE                                    0x0F
878 #define PALMAS_SMPS7_CTRL                         893 #define PALMAS_SMPS7_CTRL                                       0x10
879 #define PALMAS_SMPS7_VOLTAGE                      894 #define PALMAS_SMPS7_VOLTAGE                                    0x13
880 #define PALMAS_SMPS8_CTRL                         895 #define PALMAS_SMPS8_CTRL                                       0x14
881 #define PALMAS_SMPS8_TSTEP                        896 #define PALMAS_SMPS8_TSTEP                                      0x15
882 #define PALMAS_SMPS8_FORCE                        897 #define PALMAS_SMPS8_FORCE                                      0x16
883 #define PALMAS_SMPS8_VOLTAGE                      898 #define PALMAS_SMPS8_VOLTAGE                                    0x17
884 #define PALMAS_SMPS9_CTRL                         899 #define PALMAS_SMPS9_CTRL                                       0x18
885 #define PALMAS_SMPS9_VOLTAGE                      900 #define PALMAS_SMPS9_VOLTAGE                                    0x1B
886 #define PALMAS_SMPS10_CTRL                        901 #define PALMAS_SMPS10_CTRL                                      0x1C
887 #define PALMAS_SMPS10_STATUS                      902 #define PALMAS_SMPS10_STATUS                                    0x1F
888 #define PALMAS_SMPS_CTRL                          903 #define PALMAS_SMPS_CTRL                                        0x24
889 #define PALMAS_SMPS_PD_CTRL                       904 #define PALMAS_SMPS_PD_CTRL                                     0x25
890 #define PALMAS_SMPS_DITHER_EN                     905 #define PALMAS_SMPS_DITHER_EN                                   0x26
891 #define PALMAS_SMPS_THERMAL_EN                    906 #define PALMAS_SMPS_THERMAL_EN                                  0x27
892 #define PALMAS_SMPS_THERMAL_STATUS                907 #define PALMAS_SMPS_THERMAL_STATUS                              0x28
893 #define PALMAS_SMPS_SHORT_STATUS                  908 #define PALMAS_SMPS_SHORT_STATUS                                0x29
894 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN     909 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN                   0x2A
895 #define PALMAS_SMPS_POWERGOOD_MASK1               910 #define PALMAS_SMPS_POWERGOOD_MASK1                             0x2B
896 #define PALMAS_SMPS_POWERGOOD_MASK2               911 #define PALMAS_SMPS_POWERGOOD_MASK2                             0x2C
897                                                   912 
898 /* Bit definitions for SMPS12_CTRL */             913 /* Bit definitions for SMPS12_CTRL */
899 #define PALMAS_SMPS12_CTRL_WR_S                   914 #define PALMAS_SMPS12_CTRL_WR_S                                 0x80
900 #define PALMAS_SMPS12_CTRL_WR_S_SHIFT             915 #define PALMAS_SMPS12_CTRL_WR_S_SHIFT                           0x07
901 #define PALMAS_SMPS12_CTRL_ROOF_FLOOR_EN          916 #define PALMAS_SMPS12_CTRL_ROOF_FLOOR_EN                        0x40
902 #define PALMAS_SMPS12_CTRL_ROOF_FLOOR_EN_SHIFT    917 #define PALMAS_SMPS12_CTRL_ROOF_FLOOR_EN_SHIFT                  0x06
903 #define PALMAS_SMPS12_CTRL_STATUS_MASK            918 #define PALMAS_SMPS12_CTRL_STATUS_MASK                          0x30
904 #define PALMAS_SMPS12_CTRL_STATUS_SHIFT           919 #define PALMAS_SMPS12_CTRL_STATUS_SHIFT                         0x04
905 #define PALMAS_SMPS12_CTRL_MODE_SLEEP_MASK        920 #define PALMAS_SMPS12_CTRL_MODE_SLEEP_MASK                      0x0c
906 #define PALMAS_SMPS12_CTRL_MODE_SLEEP_SHIFT       921 #define PALMAS_SMPS12_CTRL_MODE_SLEEP_SHIFT                     0x02
907 #define PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK       922 #define PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK                     0x03
908 #define PALMAS_SMPS12_CTRL_MODE_ACTIVE_SHIFT      923 #define PALMAS_SMPS12_CTRL_MODE_ACTIVE_SHIFT                    0x00
909                                                   924 
910 /* Bit definitions for SMPS12_TSTEP */            925 /* Bit definitions for SMPS12_TSTEP */
911 #define PALMAS_SMPS12_TSTEP_TSTEP_MASK            926 #define PALMAS_SMPS12_TSTEP_TSTEP_MASK                          0x03
912 #define PALMAS_SMPS12_TSTEP_TSTEP_SHIFT           927 #define PALMAS_SMPS12_TSTEP_TSTEP_SHIFT                         0x00
913                                                   928 
914 /* Bit definitions for SMPS12_FORCE */            929 /* Bit definitions for SMPS12_FORCE */
915 #define PALMAS_SMPS12_FORCE_CMD                   930 #define PALMAS_SMPS12_FORCE_CMD                                 0x80
916 #define PALMAS_SMPS12_FORCE_CMD_SHIFT             931 #define PALMAS_SMPS12_FORCE_CMD_SHIFT                           0x07
917 #define PALMAS_SMPS12_FORCE_VSEL_MASK             932 #define PALMAS_SMPS12_FORCE_VSEL_MASK                           0x7F
918 #define PALMAS_SMPS12_FORCE_VSEL_SHIFT            933 #define PALMAS_SMPS12_FORCE_VSEL_SHIFT                          0x00
919                                                   934 
920 /* Bit definitions for SMPS12_VOLTAGE */          935 /* Bit definitions for SMPS12_VOLTAGE */
921 #define PALMAS_SMPS12_VOLTAGE_RANGE               936 #define PALMAS_SMPS12_VOLTAGE_RANGE                             0x80
922 #define PALMAS_SMPS12_VOLTAGE_RANGE_SHIFT         937 #define PALMAS_SMPS12_VOLTAGE_RANGE_SHIFT                       0x07
923 #define PALMAS_SMPS12_VOLTAGE_VSEL_MASK           938 #define PALMAS_SMPS12_VOLTAGE_VSEL_MASK                         0x7F
924 #define PALMAS_SMPS12_VOLTAGE_VSEL_SHIFT          939 #define PALMAS_SMPS12_VOLTAGE_VSEL_SHIFT                        0x00
925                                                   940 
926 /* Bit definitions for SMPS3_CTRL */              941 /* Bit definitions for SMPS3_CTRL */
927 #define PALMAS_SMPS3_CTRL_WR_S                    942 #define PALMAS_SMPS3_CTRL_WR_S                                  0x80
928 #define PALMAS_SMPS3_CTRL_WR_S_SHIFT              943 #define PALMAS_SMPS3_CTRL_WR_S_SHIFT                            0x07
929 #define PALMAS_SMPS3_CTRL_STATUS_MASK             944 #define PALMAS_SMPS3_CTRL_STATUS_MASK                           0x30
930 #define PALMAS_SMPS3_CTRL_STATUS_SHIFT            945 #define PALMAS_SMPS3_CTRL_STATUS_SHIFT                          0x04
931 #define PALMAS_SMPS3_CTRL_MODE_SLEEP_MASK         946 #define PALMAS_SMPS3_CTRL_MODE_SLEEP_MASK                       0x0c
932 #define PALMAS_SMPS3_CTRL_MODE_SLEEP_SHIFT        947 #define PALMAS_SMPS3_CTRL_MODE_SLEEP_SHIFT                      0x02
933 #define PALMAS_SMPS3_CTRL_MODE_ACTIVE_MASK        948 #define PALMAS_SMPS3_CTRL_MODE_ACTIVE_MASK                      0x03
934 #define PALMAS_SMPS3_CTRL_MODE_ACTIVE_SHIFT       949 #define PALMAS_SMPS3_CTRL_MODE_ACTIVE_SHIFT                     0x00
935                                                   950 
936 /* Bit definitions for SMPS3_VOLTAGE */           951 /* Bit definitions for SMPS3_VOLTAGE */
937 #define PALMAS_SMPS3_VOLTAGE_RANGE                952 #define PALMAS_SMPS3_VOLTAGE_RANGE                              0x80
938 #define PALMAS_SMPS3_VOLTAGE_RANGE_SHIFT          953 #define PALMAS_SMPS3_VOLTAGE_RANGE_SHIFT                        0x07
939 #define PALMAS_SMPS3_VOLTAGE_VSEL_MASK            954 #define PALMAS_SMPS3_VOLTAGE_VSEL_MASK                          0x7F
940 #define PALMAS_SMPS3_VOLTAGE_VSEL_SHIFT           955 #define PALMAS_SMPS3_VOLTAGE_VSEL_SHIFT                         0x00
941                                                   956 
942 /* Bit definitions for SMPS45_CTRL */             957 /* Bit definitions for SMPS45_CTRL */
943 #define PALMAS_SMPS45_CTRL_WR_S                   958 #define PALMAS_SMPS45_CTRL_WR_S                                 0x80
944 #define PALMAS_SMPS45_CTRL_WR_S_SHIFT             959 #define PALMAS_SMPS45_CTRL_WR_S_SHIFT                           0x07
945 #define PALMAS_SMPS45_CTRL_ROOF_FLOOR_EN          960 #define PALMAS_SMPS45_CTRL_ROOF_FLOOR_EN                        0x40
946 #define PALMAS_SMPS45_CTRL_ROOF_FLOOR_EN_SHIFT    961 #define PALMAS_SMPS45_CTRL_ROOF_FLOOR_EN_SHIFT                  0x06
947 #define PALMAS_SMPS45_CTRL_STATUS_MASK            962 #define PALMAS_SMPS45_CTRL_STATUS_MASK                          0x30
948 #define PALMAS_SMPS45_CTRL_STATUS_SHIFT           963 #define PALMAS_SMPS45_CTRL_STATUS_SHIFT                         0x04
949 #define PALMAS_SMPS45_CTRL_MODE_SLEEP_MASK        964 #define PALMAS_SMPS45_CTRL_MODE_SLEEP_MASK                      0x0c
950 #define PALMAS_SMPS45_CTRL_MODE_SLEEP_SHIFT       965 #define PALMAS_SMPS45_CTRL_MODE_SLEEP_SHIFT                     0x02
951 #define PALMAS_SMPS45_CTRL_MODE_ACTIVE_MASK       966 #define PALMAS_SMPS45_CTRL_MODE_ACTIVE_MASK                     0x03
952 #define PALMAS_SMPS45_CTRL_MODE_ACTIVE_SHIFT      967 #define PALMAS_SMPS45_CTRL_MODE_ACTIVE_SHIFT                    0x00
953                                                   968 
954 /* Bit definitions for SMPS45_TSTEP */            969 /* Bit definitions for SMPS45_TSTEP */
955 #define PALMAS_SMPS45_TSTEP_TSTEP_MASK            970 #define PALMAS_SMPS45_TSTEP_TSTEP_MASK                          0x03
956 #define PALMAS_SMPS45_TSTEP_TSTEP_SHIFT           971 #define PALMAS_SMPS45_TSTEP_TSTEP_SHIFT                         0x00
957                                                   972 
958 /* Bit definitions for SMPS45_FORCE */            973 /* Bit definitions for SMPS45_FORCE */
959 #define PALMAS_SMPS45_FORCE_CMD                   974 #define PALMAS_SMPS45_FORCE_CMD                                 0x80
960 #define PALMAS_SMPS45_FORCE_CMD_SHIFT             975 #define PALMAS_SMPS45_FORCE_CMD_SHIFT                           0x07
961 #define PALMAS_SMPS45_FORCE_VSEL_MASK             976 #define PALMAS_SMPS45_FORCE_VSEL_MASK                           0x7F
962 #define PALMAS_SMPS45_FORCE_VSEL_SHIFT            977 #define PALMAS_SMPS45_FORCE_VSEL_SHIFT                          0x00
963                                                   978 
964 /* Bit definitions for SMPS45_VOLTAGE */          979 /* Bit definitions for SMPS45_VOLTAGE */
965 #define PALMAS_SMPS45_VOLTAGE_RANGE               980 #define PALMAS_SMPS45_VOLTAGE_RANGE                             0x80
966 #define PALMAS_SMPS45_VOLTAGE_RANGE_SHIFT         981 #define PALMAS_SMPS45_VOLTAGE_RANGE_SHIFT                       0x07
967 #define PALMAS_SMPS45_VOLTAGE_VSEL_MASK           982 #define PALMAS_SMPS45_VOLTAGE_VSEL_MASK                         0x7F
968 #define PALMAS_SMPS45_VOLTAGE_VSEL_SHIFT          983 #define PALMAS_SMPS45_VOLTAGE_VSEL_SHIFT                        0x00
969                                                   984 
970 /* Bit definitions for SMPS6_CTRL */              985 /* Bit definitions for SMPS6_CTRL */
971 #define PALMAS_SMPS6_CTRL_WR_S                    986 #define PALMAS_SMPS6_CTRL_WR_S                                  0x80
972 #define PALMAS_SMPS6_CTRL_WR_S_SHIFT              987 #define PALMAS_SMPS6_CTRL_WR_S_SHIFT                            0x07
973 #define PALMAS_SMPS6_CTRL_ROOF_FLOOR_EN           988 #define PALMAS_SMPS6_CTRL_ROOF_FLOOR_EN                         0x40
974 #define PALMAS_SMPS6_CTRL_ROOF_FLOOR_EN_SHIFT     989 #define PALMAS_SMPS6_CTRL_ROOF_FLOOR_EN_SHIFT                   0x06
975 #define PALMAS_SMPS6_CTRL_STATUS_MASK             990 #define PALMAS_SMPS6_CTRL_STATUS_MASK                           0x30
976 #define PALMAS_SMPS6_CTRL_STATUS_SHIFT            991 #define PALMAS_SMPS6_CTRL_STATUS_SHIFT                          0x04
977 #define PALMAS_SMPS6_CTRL_MODE_SLEEP_MASK         992 #define PALMAS_SMPS6_CTRL_MODE_SLEEP_MASK                       0x0c
978 #define PALMAS_SMPS6_CTRL_MODE_SLEEP_SHIFT        993 #define PALMAS_SMPS6_CTRL_MODE_SLEEP_SHIFT                      0x02
979 #define PALMAS_SMPS6_CTRL_MODE_ACTIVE_MASK        994 #define PALMAS_SMPS6_CTRL_MODE_ACTIVE_MASK                      0x03
980 #define PALMAS_SMPS6_CTRL_MODE_ACTIVE_SHIFT       995 #define PALMAS_SMPS6_CTRL_MODE_ACTIVE_SHIFT                     0x00
981                                                   996 
982 /* Bit definitions for SMPS6_TSTEP */             997 /* Bit definitions for SMPS6_TSTEP */
983 #define PALMAS_SMPS6_TSTEP_TSTEP_MASK             998 #define PALMAS_SMPS6_TSTEP_TSTEP_MASK                           0x03
984 #define PALMAS_SMPS6_TSTEP_TSTEP_SHIFT            999 #define PALMAS_SMPS6_TSTEP_TSTEP_SHIFT                          0x00
985                                                   1000 
986 /* Bit definitions for SMPS6_FORCE */             1001 /* Bit definitions for SMPS6_FORCE */
987 #define PALMAS_SMPS6_FORCE_CMD                    1002 #define PALMAS_SMPS6_FORCE_CMD                                  0x80
988 #define PALMAS_SMPS6_FORCE_CMD_SHIFT              1003 #define PALMAS_SMPS6_FORCE_CMD_SHIFT                            0x07
989 #define PALMAS_SMPS6_FORCE_VSEL_MASK              1004 #define PALMAS_SMPS6_FORCE_VSEL_MASK                            0x7F
990 #define PALMAS_SMPS6_FORCE_VSEL_SHIFT             1005 #define PALMAS_SMPS6_FORCE_VSEL_SHIFT                           0x00
991                                                   1006 
992 /* Bit definitions for SMPS6_VOLTAGE */           1007 /* Bit definitions for SMPS6_VOLTAGE */
993 #define PALMAS_SMPS6_VOLTAGE_RANGE                1008 #define PALMAS_SMPS6_VOLTAGE_RANGE                              0x80
994 #define PALMAS_SMPS6_VOLTAGE_RANGE_SHIFT          1009 #define PALMAS_SMPS6_VOLTAGE_RANGE_SHIFT                        0x07
995 #define PALMAS_SMPS6_VOLTAGE_VSEL_MASK            1010 #define PALMAS_SMPS6_VOLTAGE_VSEL_MASK                          0x7F
996 #define PALMAS_SMPS6_VOLTAGE_VSEL_SHIFT           1011 #define PALMAS_SMPS6_VOLTAGE_VSEL_SHIFT                         0x00
997                                                   1012 
998 /* Bit definitions for SMPS7_CTRL */              1013 /* Bit definitions for SMPS7_CTRL */
999 #define PALMAS_SMPS7_CTRL_WR_S                    1014 #define PALMAS_SMPS7_CTRL_WR_S                                  0x80
1000 #define PALMAS_SMPS7_CTRL_WR_S_SHIFT             1015 #define PALMAS_SMPS7_CTRL_WR_S_SHIFT                            0x07
1001 #define PALMAS_SMPS7_CTRL_STATUS_MASK            1016 #define PALMAS_SMPS7_CTRL_STATUS_MASK                           0x30
1002 #define PALMAS_SMPS7_CTRL_STATUS_SHIFT           1017 #define PALMAS_SMPS7_CTRL_STATUS_SHIFT                          0x04
1003 #define PALMAS_SMPS7_CTRL_MODE_SLEEP_MASK        1018 #define PALMAS_SMPS7_CTRL_MODE_SLEEP_MASK                       0x0c
1004 #define PALMAS_SMPS7_CTRL_MODE_SLEEP_SHIFT       1019 #define PALMAS_SMPS7_CTRL_MODE_SLEEP_SHIFT                      0x02
1005 #define PALMAS_SMPS7_CTRL_MODE_ACTIVE_MASK       1020 #define PALMAS_SMPS7_CTRL_MODE_ACTIVE_MASK                      0x03
1006 #define PALMAS_SMPS7_CTRL_MODE_ACTIVE_SHIFT      1021 #define PALMAS_SMPS7_CTRL_MODE_ACTIVE_SHIFT                     0x00
1007                                                  1022 
1008 /* Bit definitions for SMPS7_VOLTAGE */          1023 /* Bit definitions for SMPS7_VOLTAGE */
1009 #define PALMAS_SMPS7_VOLTAGE_RANGE               1024 #define PALMAS_SMPS7_VOLTAGE_RANGE                              0x80
1010 #define PALMAS_SMPS7_VOLTAGE_RANGE_SHIFT         1025 #define PALMAS_SMPS7_VOLTAGE_RANGE_SHIFT                        0x07
1011 #define PALMAS_SMPS7_VOLTAGE_VSEL_MASK           1026 #define PALMAS_SMPS7_VOLTAGE_VSEL_MASK                          0x7F
1012 #define PALMAS_SMPS7_VOLTAGE_VSEL_SHIFT          1027 #define PALMAS_SMPS7_VOLTAGE_VSEL_SHIFT                         0x00
1013                                                  1028 
1014 /* Bit definitions for SMPS8_CTRL */             1029 /* Bit definitions for SMPS8_CTRL */
1015 #define PALMAS_SMPS8_CTRL_WR_S                   1030 #define PALMAS_SMPS8_CTRL_WR_S                                  0x80
1016 #define PALMAS_SMPS8_CTRL_WR_S_SHIFT             1031 #define PALMAS_SMPS8_CTRL_WR_S_SHIFT                            0x07
1017 #define PALMAS_SMPS8_CTRL_ROOF_FLOOR_EN          1032 #define PALMAS_SMPS8_CTRL_ROOF_FLOOR_EN                         0x40
1018 #define PALMAS_SMPS8_CTRL_ROOF_FLOOR_EN_SHIFT    1033 #define PALMAS_SMPS8_CTRL_ROOF_FLOOR_EN_SHIFT                   0x06
1019 #define PALMAS_SMPS8_CTRL_STATUS_MASK            1034 #define PALMAS_SMPS8_CTRL_STATUS_MASK                           0x30
1020 #define PALMAS_SMPS8_CTRL_STATUS_SHIFT           1035 #define PALMAS_SMPS8_CTRL_STATUS_SHIFT                          0x04
1021 #define PALMAS_SMPS8_CTRL_MODE_SLEEP_MASK        1036 #define PALMAS_SMPS8_CTRL_MODE_SLEEP_MASK                       0x0c
1022 #define PALMAS_SMPS8_CTRL_MODE_SLEEP_SHIFT       1037 #define PALMAS_SMPS8_CTRL_MODE_SLEEP_SHIFT                      0x02
1023 #define PALMAS_SMPS8_CTRL_MODE_ACTIVE_MASK       1038 #define PALMAS_SMPS8_CTRL_MODE_ACTIVE_MASK                      0x03
1024 #define PALMAS_SMPS8_CTRL_MODE_ACTIVE_SHIFT      1039 #define PALMAS_SMPS8_CTRL_MODE_ACTIVE_SHIFT                     0x00
1025                                                  1040 
1026 /* Bit definitions for SMPS8_TSTEP */            1041 /* Bit definitions for SMPS8_TSTEP */
1027 #define PALMAS_SMPS8_TSTEP_TSTEP_MASK            1042 #define PALMAS_SMPS8_TSTEP_TSTEP_MASK                           0x03
1028 #define PALMAS_SMPS8_TSTEP_TSTEP_SHIFT           1043 #define PALMAS_SMPS8_TSTEP_TSTEP_SHIFT                          0x00
1029                                                  1044 
1030 /* Bit definitions for SMPS8_FORCE */            1045 /* Bit definitions for SMPS8_FORCE */
1031 #define PALMAS_SMPS8_FORCE_CMD                   1046 #define PALMAS_SMPS8_FORCE_CMD                                  0x80
1032 #define PALMAS_SMPS8_FORCE_CMD_SHIFT             1047 #define PALMAS_SMPS8_FORCE_CMD_SHIFT                            0x07
1033 #define PALMAS_SMPS8_FORCE_VSEL_MASK             1048 #define PALMAS_SMPS8_FORCE_VSEL_MASK                            0x7F
1034 #define PALMAS_SMPS8_FORCE_VSEL_SHIFT            1049 #define PALMAS_SMPS8_FORCE_VSEL_SHIFT                           0x00
1035                                                  1050 
1036 /* Bit definitions for SMPS8_VOLTAGE */          1051 /* Bit definitions for SMPS8_VOLTAGE */
1037 #define PALMAS_SMPS8_VOLTAGE_RANGE               1052 #define PALMAS_SMPS8_VOLTAGE_RANGE                              0x80
1038 #define PALMAS_SMPS8_VOLTAGE_RANGE_SHIFT         1053 #define PALMAS_SMPS8_VOLTAGE_RANGE_SHIFT                        0x07
1039 #define PALMAS_SMPS8_VOLTAGE_VSEL_MASK           1054 #define PALMAS_SMPS8_VOLTAGE_VSEL_MASK                          0x7F
1040 #define PALMAS_SMPS8_VOLTAGE_VSEL_SHIFT          1055 #define PALMAS_SMPS8_VOLTAGE_VSEL_SHIFT                         0x00
1041                                                  1056 
1042 /* Bit definitions for SMPS9_CTRL */             1057 /* Bit definitions for SMPS9_CTRL */
1043 #define PALMAS_SMPS9_CTRL_WR_S                   1058 #define PALMAS_SMPS9_CTRL_WR_S                                  0x80
1044 #define PALMAS_SMPS9_CTRL_WR_S_SHIFT             1059 #define PALMAS_SMPS9_CTRL_WR_S_SHIFT                            0x07
1045 #define PALMAS_SMPS9_CTRL_STATUS_MASK            1060 #define PALMAS_SMPS9_CTRL_STATUS_MASK                           0x30
1046 #define PALMAS_SMPS9_CTRL_STATUS_SHIFT           1061 #define PALMAS_SMPS9_CTRL_STATUS_SHIFT                          0x04
1047 #define PALMAS_SMPS9_CTRL_MODE_SLEEP_MASK        1062 #define PALMAS_SMPS9_CTRL_MODE_SLEEP_MASK                       0x0c
1048 #define PALMAS_SMPS9_CTRL_MODE_SLEEP_SHIFT       1063 #define PALMAS_SMPS9_CTRL_MODE_SLEEP_SHIFT                      0x02
1049 #define PALMAS_SMPS9_CTRL_MODE_ACTIVE_MASK       1064 #define PALMAS_SMPS9_CTRL_MODE_ACTIVE_MASK                      0x03
1050 #define PALMAS_SMPS9_CTRL_MODE_ACTIVE_SHIFT      1065 #define PALMAS_SMPS9_CTRL_MODE_ACTIVE_SHIFT                     0x00
1051                                                  1066 
1052 /* Bit definitions for SMPS9_VOLTAGE */          1067 /* Bit definitions for SMPS9_VOLTAGE */
1053 #define PALMAS_SMPS9_VOLTAGE_RANGE               1068 #define PALMAS_SMPS9_VOLTAGE_RANGE                              0x80
1054 #define PALMAS_SMPS9_VOLTAGE_RANGE_SHIFT         1069 #define PALMAS_SMPS9_VOLTAGE_RANGE_SHIFT                        0x07
1055 #define PALMAS_SMPS9_VOLTAGE_VSEL_MASK           1070 #define PALMAS_SMPS9_VOLTAGE_VSEL_MASK                          0x7F
1056 #define PALMAS_SMPS9_VOLTAGE_VSEL_SHIFT          1071 #define PALMAS_SMPS9_VOLTAGE_VSEL_SHIFT                         0x00
1057                                                  1072 
1058 /* Bit definitions for SMPS10_CTRL */            1073 /* Bit definitions for SMPS10_CTRL */
1059 #define PALMAS_SMPS10_CTRL_MODE_SLEEP_MASK       1074 #define PALMAS_SMPS10_CTRL_MODE_SLEEP_MASK                      0xf0
1060 #define PALMAS_SMPS10_CTRL_MODE_SLEEP_SHIFT      1075 #define PALMAS_SMPS10_CTRL_MODE_SLEEP_SHIFT                     0x04
1061 #define PALMAS_SMPS10_CTRL_MODE_ACTIVE_MASK      1076 #define PALMAS_SMPS10_CTRL_MODE_ACTIVE_MASK                     0x0F
1062 #define PALMAS_SMPS10_CTRL_MODE_ACTIVE_SHIFT     1077 #define PALMAS_SMPS10_CTRL_MODE_ACTIVE_SHIFT                    0x00
1063                                                  1078 
1064 /* Bit definitions for SMPS10_STATUS */          1079 /* Bit definitions for SMPS10_STATUS */
1065 #define PALMAS_SMPS10_STATUS_STATUS_MASK         1080 #define PALMAS_SMPS10_STATUS_STATUS_MASK                        0x0F
1066 #define PALMAS_SMPS10_STATUS_STATUS_SHIFT        1081 #define PALMAS_SMPS10_STATUS_STATUS_SHIFT                       0x00
1067                                                  1082 
1068 /* Bit definitions for SMPS_CTRL */              1083 /* Bit definitions for SMPS_CTRL */
1069 #define PALMAS_SMPS_CTRL_SMPS45_SMPS457_EN       1084 #define PALMAS_SMPS_CTRL_SMPS45_SMPS457_EN                      0x20
1070 #define PALMAS_SMPS_CTRL_SMPS45_SMPS457_EN_SH    1085 #define PALMAS_SMPS_CTRL_SMPS45_SMPS457_EN_SHIFT                0x05
1071 #define PALMAS_SMPS_CTRL_SMPS12_SMPS123_EN       1086 #define PALMAS_SMPS_CTRL_SMPS12_SMPS123_EN                      0x10
1072 #define PALMAS_SMPS_CTRL_SMPS12_SMPS123_EN_SH    1087 #define PALMAS_SMPS_CTRL_SMPS12_SMPS123_EN_SHIFT                0x04
1073 #define PALMAS_SMPS_CTRL_SMPS45_PHASE_CTRL_MA    1088 #define PALMAS_SMPS_CTRL_SMPS45_PHASE_CTRL_MASK                 0x0c
1074 #define PALMAS_SMPS_CTRL_SMPS45_PHASE_CTRL_SH    1089 #define PALMAS_SMPS_CTRL_SMPS45_PHASE_CTRL_SHIFT                0x02
1075 #define PALMAS_SMPS_CTRL_SMPS123_PHASE_CTRL_M    1090 #define PALMAS_SMPS_CTRL_SMPS123_PHASE_CTRL_MASK                0x03
1076 #define PALMAS_SMPS_CTRL_SMPS123_PHASE_CTRL_S    1091 #define PALMAS_SMPS_CTRL_SMPS123_PHASE_CTRL_SHIFT               0x00
1077                                                  1092 
1078 /* Bit definitions for SMPS_PD_CTRL */           1093 /* Bit definitions for SMPS_PD_CTRL */
1079 #define PALMAS_SMPS_PD_CTRL_SMPS9                1094 #define PALMAS_SMPS_PD_CTRL_SMPS9                               0x40
1080 #define PALMAS_SMPS_PD_CTRL_SMPS9_SHIFT          1095 #define PALMAS_SMPS_PD_CTRL_SMPS9_SHIFT                         0x06
1081 #define PALMAS_SMPS_PD_CTRL_SMPS8                1096 #define PALMAS_SMPS_PD_CTRL_SMPS8                               0x20
1082 #define PALMAS_SMPS_PD_CTRL_SMPS8_SHIFT          1097 #define PALMAS_SMPS_PD_CTRL_SMPS8_SHIFT                         0x05
1083 #define PALMAS_SMPS_PD_CTRL_SMPS7                1098 #define PALMAS_SMPS_PD_CTRL_SMPS7                               0x10
1084 #define PALMAS_SMPS_PD_CTRL_SMPS7_SHIFT          1099 #define PALMAS_SMPS_PD_CTRL_SMPS7_SHIFT                         0x04
1085 #define PALMAS_SMPS_PD_CTRL_SMPS6                1100 #define PALMAS_SMPS_PD_CTRL_SMPS6                               0x08
1086 #define PALMAS_SMPS_PD_CTRL_SMPS6_SHIFT          1101 #define PALMAS_SMPS_PD_CTRL_SMPS6_SHIFT                         0x03
1087 #define PALMAS_SMPS_PD_CTRL_SMPS45               1102 #define PALMAS_SMPS_PD_CTRL_SMPS45                              0x04
1088 #define PALMAS_SMPS_PD_CTRL_SMPS45_SHIFT         1103 #define PALMAS_SMPS_PD_CTRL_SMPS45_SHIFT                        0x02
1089 #define PALMAS_SMPS_PD_CTRL_SMPS3                1104 #define PALMAS_SMPS_PD_CTRL_SMPS3                               0x02
1090 #define PALMAS_SMPS_PD_CTRL_SMPS3_SHIFT          1105 #define PALMAS_SMPS_PD_CTRL_SMPS3_SHIFT                         0x01
1091 #define PALMAS_SMPS_PD_CTRL_SMPS12               1106 #define PALMAS_SMPS_PD_CTRL_SMPS12                              0x01
1092 #define PALMAS_SMPS_PD_CTRL_SMPS12_SHIFT         1107 #define PALMAS_SMPS_PD_CTRL_SMPS12_SHIFT                        0x00
1093                                                  1108 
1094 /* Bit definitions for SMPS_THERMAL_EN */        1109 /* Bit definitions for SMPS_THERMAL_EN */
1095 #define PALMAS_SMPS_THERMAL_EN_SMPS9             1110 #define PALMAS_SMPS_THERMAL_EN_SMPS9                            0x40
1096 #define PALMAS_SMPS_THERMAL_EN_SMPS9_SHIFT       1111 #define PALMAS_SMPS_THERMAL_EN_SMPS9_SHIFT                      0x06
1097 #define PALMAS_SMPS_THERMAL_EN_SMPS8             1112 #define PALMAS_SMPS_THERMAL_EN_SMPS8                            0x20
1098 #define PALMAS_SMPS_THERMAL_EN_SMPS8_SHIFT       1113 #define PALMAS_SMPS_THERMAL_EN_SMPS8_SHIFT                      0x05
1099 #define PALMAS_SMPS_THERMAL_EN_SMPS6             1114 #define PALMAS_SMPS_THERMAL_EN_SMPS6                            0x08
1100 #define PALMAS_SMPS_THERMAL_EN_SMPS6_SHIFT       1115 #define PALMAS_SMPS_THERMAL_EN_SMPS6_SHIFT                      0x03
1101 #define PALMAS_SMPS_THERMAL_EN_SMPS457           1116 #define PALMAS_SMPS_THERMAL_EN_SMPS457                          0x04
1102 #define PALMAS_SMPS_THERMAL_EN_SMPS457_SHIFT     1117 #define PALMAS_SMPS_THERMAL_EN_SMPS457_SHIFT                    0x02
1103 #define PALMAS_SMPS_THERMAL_EN_SMPS123           1118 #define PALMAS_SMPS_THERMAL_EN_SMPS123                          0x01
1104 #define PALMAS_SMPS_THERMAL_EN_SMPS123_SHIFT     1119 #define PALMAS_SMPS_THERMAL_EN_SMPS123_SHIFT                    0x00
1105                                                  1120 
1106 /* Bit definitions for SMPS_THERMAL_STATUS */    1121 /* Bit definitions for SMPS_THERMAL_STATUS */
1107 #define PALMAS_SMPS_THERMAL_STATUS_SMPS9         1122 #define PALMAS_SMPS_THERMAL_STATUS_SMPS9                        0x40
1108 #define PALMAS_SMPS_THERMAL_STATUS_SMPS9_SHIF    1123 #define PALMAS_SMPS_THERMAL_STATUS_SMPS9_SHIFT                  0x06
1109 #define PALMAS_SMPS_THERMAL_STATUS_SMPS8         1124 #define PALMAS_SMPS_THERMAL_STATUS_SMPS8                        0x20
1110 #define PALMAS_SMPS_THERMAL_STATUS_SMPS8_SHIF    1125 #define PALMAS_SMPS_THERMAL_STATUS_SMPS8_SHIFT                  0x05
1111 #define PALMAS_SMPS_THERMAL_STATUS_SMPS6         1126 #define PALMAS_SMPS_THERMAL_STATUS_SMPS6                        0x08
1112 #define PALMAS_SMPS_THERMAL_STATUS_SMPS6_SHIF    1127 #define PALMAS_SMPS_THERMAL_STATUS_SMPS6_SHIFT                  0x03
1113 #define PALMAS_SMPS_THERMAL_STATUS_SMPS457       1128 #define PALMAS_SMPS_THERMAL_STATUS_SMPS457                      0x04
1114 #define PALMAS_SMPS_THERMAL_STATUS_SMPS457_SH    1129 #define PALMAS_SMPS_THERMAL_STATUS_SMPS457_SHIFT                0x02
1115 #define PALMAS_SMPS_THERMAL_STATUS_SMPS123       1130 #define PALMAS_SMPS_THERMAL_STATUS_SMPS123                      0x01
1116 #define PALMAS_SMPS_THERMAL_STATUS_SMPS123_SH    1131 #define PALMAS_SMPS_THERMAL_STATUS_SMPS123_SHIFT                0x00
1117                                                  1132 
1118 /* Bit definitions for SMPS_SHORT_STATUS */      1133 /* Bit definitions for SMPS_SHORT_STATUS */
1119 #define PALMAS_SMPS_SHORT_STATUS_SMPS10          1134 #define PALMAS_SMPS_SHORT_STATUS_SMPS10                         0x80
1120 #define PALMAS_SMPS_SHORT_STATUS_SMPS10_SHIFT    1135 #define PALMAS_SMPS_SHORT_STATUS_SMPS10_SHIFT                   0x07
1121 #define PALMAS_SMPS_SHORT_STATUS_SMPS9           1136 #define PALMAS_SMPS_SHORT_STATUS_SMPS9                          0x40
1122 #define PALMAS_SMPS_SHORT_STATUS_SMPS9_SHIFT     1137 #define PALMAS_SMPS_SHORT_STATUS_SMPS9_SHIFT                    0x06
1123 #define PALMAS_SMPS_SHORT_STATUS_SMPS8           1138 #define PALMAS_SMPS_SHORT_STATUS_SMPS8                          0x20
1124 #define PALMAS_SMPS_SHORT_STATUS_SMPS8_SHIFT     1139 #define PALMAS_SMPS_SHORT_STATUS_SMPS8_SHIFT                    0x05
1125 #define PALMAS_SMPS_SHORT_STATUS_SMPS7           1140 #define PALMAS_SMPS_SHORT_STATUS_SMPS7                          0x10
1126 #define PALMAS_SMPS_SHORT_STATUS_SMPS7_SHIFT     1141 #define PALMAS_SMPS_SHORT_STATUS_SMPS7_SHIFT                    0x04
1127 #define PALMAS_SMPS_SHORT_STATUS_SMPS6           1142 #define PALMAS_SMPS_SHORT_STATUS_SMPS6                          0x08
1128 #define PALMAS_SMPS_SHORT_STATUS_SMPS6_SHIFT     1143 #define PALMAS_SMPS_SHORT_STATUS_SMPS6_SHIFT                    0x03
1129 #define PALMAS_SMPS_SHORT_STATUS_SMPS45          1144 #define PALMAS_SMPS_SHORT_STATUS_SMPS45                         0x04
1130 #define PALMAS_SMPS_SHORT_STATUS_SMPS45_SHIFT    1145 #define PALMAS_SMPS_SHORT_STATUS_SMPS45_SHIFT                   0x02
1131 #define PALMAS_SMPS_SHORT_STATUS_SMPS3           1146 #define PALMAS_SMPS_SHORT_STATUS_SMPS3                          0x02
1132 #define PALMAS_SMPS_SHORT_STATUS_SMPS3_SHIFT     1147 #define PALMAS_SMPS_SHORT_STATUS_SMPS3_SHIFT                    0x01
1133 #define PALMAS_SMPS_SHORT_STATUS_SMPS12          1148 #define PALMAS_SMPS_SHORT_STATUS_SMPS12                         0x01
1134 #define PALMAS_SMPS_SHORT_STATUS_SMPS12_SHIFT    1149 #define PALMAS_SMPS_SHORT_STATUS_SMPS12_SHIFT                   0x00
1135                                                  1150 
1136 /* Bit definitions for SMPS_NEGATIVE_CURRENT_    1151 /* Bit definitions for SMPS_NEGATIVE_CURRENT_LIMIT_EN */
1137 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1152 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS9             0x40
1138 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1153 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS9_SHIFT       0x06
1139 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1154 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS8             0x20
1140 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1155 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS8_SHIFT       0x05
1141 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1156 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS7             0x10
1142 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1157 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS7_SHIFT       0x04
1143 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1158 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS6             0x08
1144 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1159 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS6_SHIFT       0x03
1145 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1160 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS45            0x04
1146 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1161 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS45_SHIFT      0x02
1147 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1162 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS3             0x02
1148 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1163 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS3_SHIFT       0x01
1149 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1164 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS12            0x01
1150 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN    1165 #define PALMAS_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS12_SHIFT      0x00
1151                                                  1166 
1152 /* Bit definitions for SMPS_POWERGOOD_MASK1 *    1167 /* Bit definitions for SMPS_POWERGOOD_MASK1 */
1153 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS10       1168 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS10                      0x80
1154 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS10_SH    1169 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS10_SHIFT                0x07
1155 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS9        1170 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS9                       0x40
1156 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS9_SHI    1171 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS9_SHIFT                 0x06
1157 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS8        1172 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS8                       0x20
1158 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS8_SHI    1173 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS8_SHIFT                 0x05
1159 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS7        1174 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS7                       0x10
1160 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS7_SHI    1175 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS7_SHIFT                 0x04
1161 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS6        1176 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS6                       0x08
1162 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS6_SHI    1177 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS6_SHIFT                 0x03
1163 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS45       1178 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS45                      0x04
1164 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS45_SH    1179 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS45_SHIFT                0x02
1165 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS3        1180 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS3                       0x02
1166 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS3_SHI    1181 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS3_SHIFT                 0x01
1167 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS12       1182 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS12                      0x01
1168 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS12_SH    1183 #define PALMAS_SMPS_POWERGOOD_MASK1_SMPS12_SHIFT                0x00
1169                                                  1184 
1170 /* Bit definitions for SMPS_POWERGOOD_MASK2 *    1185 /* Bit definitions for SMPS_POWERGOOD_MASK2 */
1171 #define PALMAS_SMPS_POWERGOOD_MASK2_POWERGOOD    1186 #define PALMAS_SMPS_POWERGOOD_MASK2_POWERGOOD_TYPE_SELECT       0x80
1172 #define PALMAS_SMPS_POWERGOOD_MASK2_POWERGOOD    1187 #define PALMAS_SMPS_POWERGOOD_MASK2_POWERGOOD_TYPE_SELECT_SHIFT 0x07
1173 #define PALMAS_SMPS_POWERGOOD_MASK2_GPIO_7       1188 #define PALMAS_SMPS_POWERGOOD_MASK2_GPIO_7                      0x04
1174 #define PALMAS_SMPS_POWERGOOD_MASK2_GPIO_7_SH    1189 #define PALMAS_SMPS_POWERGOOD_MASK2_GPIO_7_SHIFT                0x02
1175 #define PALMAS_SMPS_POWERGOOD_MASK2_VBUS         1190 #define PALMAS_SMPS_POWERGOOD_MASK2_VBUS                        0x02
1176 #define PALMAS_SMPS_POWERGOOD_MASK2_VBUS_SHIF    1191 #define PALMAS_SMPS_POWERGOOD_MASK2_VBUS_SHIFT                  0x01
1177 #define PALMAS_SMPS_POWERGOOD_MASK2_ACOK         1192 #define PALMAS_SMPS_POWERGOOD_MASK2_ACOK                        0x01
1178 #define PALMAS_SMPS_POWERGOOD_MASK2_ACOK_SHIF    1193 #define PALMAS_SMPS_POWERGOOD_MASK2_ACOK_SHIFT                  0x00
1179                                                  1194 
1180 /* Registers for function LDO */                 1195 /* Registers for function LDO */
1181 #define PALMAS_LDO1_CTRL                         1196 #define PALMAS_LDO1_CTRL                                        0x00
1182 #define PALMAS_LDO1_VOLTAGE                      1197 #define PALMAS_LDO1_VOLTAGE                                     0x01
1183 #define PALMAS_LDO2_CTRL                         1198 #define PALMAS_LDO2_CTRL                                        0x02
1184 #define PALMAS_LDO2_VOLTAGE                      1199 #define PALMAS_LDO2_VOLTAGE                                     0x03
1185 #define PALMAS_LDO3_CTRL                         1200 #define PALMAS_LDO3_CTRL                                        0x04
1186 #define PALMAS_LDO3_VOLTAGE                      1201 #define PALMAS_LDO3_VOLTAGE                                     0x05
1187 #define PALMAS_LDO4_CTRL                         1202 #define PALMAS_LDO4_CTRL                                        0x06
1188 #define PALMAS_LDO4_VOLTAGE                      1203 #define PALMAS_LDO4_VOLTAGE                                     0x07
1189 #define PALMAS_LDO5_CTRL                         1204 #define PALMAS_LDO5_CTRL                                        0x08
1190 #define PALMAS_LDO5_VOLTAGE                      1205 #define PALMAS_LDO5_VOLTAGE                                     0x09
1191 #define PALMAS_LDO6_CTRL                         1206 #define PALMAS_LDO6_CTRL                                        0x0A
1192 #define PALMAS_LDO6_VOLTAGE                      1207 #define PALMAS_LDO6_VOLTAGE                                     0x0B
1193 #define PALMAS_LDO7_CTRL                         1208 #define PALMAS_LDO7_CTRL                                        0x0C
1194 #define PALMAS_LDO7_VOLTAGE                      1209 #define PALMAS_LDO7_VOLTAGE                                     0x0D
1195 #define PALMAS_LDO8_CTRL                         1210 #define PALMAS_LDO8_CTRL                                        0x0E
1196 #define PALMAS_LDO8_VOLTAGE                      1211 #define PALMAS_LDO8_VOLTAGE                                     0x0F
1197 #define PALMAS_LDO9_CTRL                         1212 #define PALMAS_LDO9_CTRL                                        0x10
1198 #define PALMAS_LDO9_VOLTAGE                      1213 #define PALMAS_LDO9_VOLTAGE                                     0x11
1199 #define PALMAS_LDOLN_CTRL                        1214 #define PALMAS_LDOLN_CTRL                                       0x12
1200 #define PALMAS_LDOLN_VOLTAGE                     1215 #define PALMAS_LDOLN_VOLTAGE                                    0x13
1201 #define PALMAS_LDOUSB_CTRL                       1216 #define PALMAS_LDOUSB_CTRL                                      0x14
1202 #define PALMAS_LDOUSB_VOLTAGE                    1217 #define PALMAS_LDOUSB_VOLTAGE                                   0x15
1203 #define PALMAS_LDO_CTRL                          1218 #define PALMAS_LDO_CTRL                                         0x1A
1204 #define PALMAS_LDO_PD_CTRL1                      1219 #define PALMAS_LDO_PD_CTRL1                                     0x1B
1205 #define PALMAS_LDO_PD_CTRL2                      1220 #define PALMAS_LDO_PD_CTRL2                                     0x1C
1206 #define PALMAS_LDO_SHORT_STATUS1                 1221 #define PALMAS_LDO_SHORT_STATUS1                                0x1D
1207 #define PALMAS_LDO_SHORT_STATUS2                 1222 #define PALMAS_LDO_SHORT_STATUS2                                0x1E
1208                                                  1223 
1209 /* Bit definitions for LDO1_CTRL */              1224 /* Bit definitions for LDO1_CTRL */
1210 #define PALMAS_LDO1_CTRL_WR_S                    1225 #define PALMAS_LDO1_CTRL_WR_S                                   0x80
1211 #define PALMAS_LDO1_CTRL_WR_S_SHIFT              1226 #define PALMAS_LDO1_CTRL_WR_S_SHIFT                             0x07
1212 #define PALMAS_LDO1_CTRL_STATUS                  1227 #define PALMAS_LDO1_CTRL_STATUS                                 0x10
1213 #define PALMAS_LDO1_CTRL_STATUS_SHIFT            1228 #define PALMAS_LDO1_CTRL_STATUS_SHIFT                           0x04
1214 #define PALMAS_LDO1_CTRL_MODE_SLEEP              1229 #define PALMAS_LDO1_CTRL_MODE_SLEEP                             0x04
1215 #define PALMAS_LDO1_CTRL_MODE_SLEEP_SHIFT        1230 #define PALMAS_LDO1_CTRL_MODE_SLEEP_SHIFT                       0x02
1216 #define PALMAS_LDO1_CTRL_MODE_ACTIVE             1231 #define PALMAS_LDO1_CTRL_MODE_ACTIVE                            0x01
1217 #define PALMAS_LDO1_CTRL_MODE_ACTIVE_SHIFT       1232 #define PALMAS_LDO1_CTRL_MODE_ACTIVE_SHIFT                      0x00
1218                                                  1233 
1219 /* Bit definitions for LDO1_VOLTAGE */           1234 /* Bit definitions for LDO1_VOLTAGE */
1220 #define PALMAS_LDO1_VOLTAGE_VSEL_MASK            1235 #define PALMAS_LDO1_VOLTAGE_VSEL_MASK                           0x3F
1221 #define PALMAS_LDO1_VOLTAGE_VSEL_SHIFT           1236 #define PALMAS_LDO1_VOLTAGE_VSEL_SHIFT                          0x00
1222                                                  1237 
1223 /* Bit definitions for LDO2_CTRL */              1238 /* Bit definitions for LDO2_CTRL */
1224 #define PALMAS_LDO2_CTRL_WR_S                    1239 #define PALMAS_LDO2_CTRL_WR_S                                   0x80
1225 #define PALMAS_LDO2_CTRL_WR_S_SHIFT              1240 #define PALMAS_LDO2_CTRL_WR_S_SHIFT                             0x07
1226 #define PALMAS_LDO2_CTRL_STATUS                  1241 #define PALMAS_LDO2_CTRL_STATUS                                 0x10
1227 #define PALMAS_LDO2_CTRL_STATUS_SHIFT            1242 #define PALMAS_LDO2_CTRL_STATUS_SHIFT                           0x04
1228 #define PALMAS_LDO2_CTRL_MODE_SLEEP              1243 #define PALMAS_LDO2_CTRL_MODE_SLEEP                             0x04
1229 #define PALMAS_LDO2_CTRL_MODE_SLEEP_SHIFT        1244 #define PALMAS_LDO2_CTRL_MODE_SLEEP_SHIFT                       0x02
1230 #define PALMAS_LDO2_CTRL_MODE_ACTIVE             1245 #define PALMAS_LDO2_CTRL_MODE_ACTIVE                            0x01
1231 #define PALMAS_LDO2_CTRL_MODE_ACTIVE_SHIFT       1246 #define PALMAS_LDO2_CTRL_MODE_ACTIVE_SHIFT                      0x00
1232                                                  1247 
1233 /* Bit definitions for LDO2_VOLTAGE */           1248 /* Bit definitions for LDO2_VOLTAGE */
1234 #define PALMAS_LDO2_VOLTAGE_VSEL_MASK            1249 #define PALMAS_LDO2_VOLTAGE_VSEL_MASK                           0x3F
1235 #define PALMAS_LDO2_VOLTAGE_VSEL_SHIFT           1250 #define PALMAS_LDO2_VOLTAGE_VSEL_SHIFT                          0x00
1236                                                  1251 
1237 /* Bit definitions for LDO3_CTRL */              1252 /* Bit definitions for LDO3_CTRL */
1238 #define PALMAS_LDO3_CTRL_WR_S                    1253 #define PALMAS_LDO3_CTRL_WR_S                                   0x80
1239 #define PALMAS_LDO3_CTRL_WR_S_SHIFT              1254 #define PALMAS_LDO3_CTRL_WR_S_SHIFT                             0x07
1240 #define PALMAS_LDO3_CTRL_STATUS                  1255 #define PALMAS_LDO3_CTRL_STATUS                                 0x10
1241 #define PALMAS_LDO3_CTRL_STATUS_SHIFT            1256 #define PALMAS_LDO3_CTRL_STATUS_SHIFT                           0x04
1242 #define PALMAS_LDO3_CTRL_MODE_SLEEP              1257 #define PALMAS_LDO3_CTRL_MODE_SLEEP                             0x04
1243 #define PALMAS_LDO3_CTRL_MODE_SLEEP_SHIFT        1258 #define PALMAS_LDO3_CTRL_MODE_SLEEP_SHIFT                       0x02
1244 #define PALMAS_LDO3_CTRL_MODE_ACTIVE             1259 #define PALMAS_LDO3_CTRL_MODE_ACTIVE                            0x01
1245 #define PALMAS_LDO3_CTRL_MODE_ACTIVE_SHIFT       1260 #define PALMAS_LDO3_CTRL_MODE_ACTIVE_SHIFT                      0x00
1246                                                  1261 
1247 /* Bit definitions for LDO3_VOLTAGE */           1262 /* Bit definitions for LDO3_VOLTAGE */
1248 #define PALMAS_LDO3_VOLTAGE_VSEL_MASK            1263 #define PALMAS_LDO3_VOLTAGE_VSEL_MASK                           0x3F
1249 #define PALMAS_LDO3_VOLTAGE_VSEL_SHIFT           1264 #define PALMAS_LDO3_VOLTAGE_VSEL_SHIFT                          0x00
1250                                                  1265 
1251 /* Bit definitions for LDO4_CTRL */              1266 /* Bit definitions for LDO4_CTRL */
1252 #define PALMAS_LDO4_CTRL_WR_S                    1267 #define PALMAS_LDO4_CTRL_WR_S                                   0x80
1253 #define PALMAS_LDO4_CTRL_WR_S_SHIFT              1268 #define PALMAS_LDO4_CTRL_WR_S_SHIFT                             0x07
1254 #define PALMAS_LDO4_CTRL_STATUS                  1269 #define PALMAS_LDO4_CTRL_STATUS                                 0x10
1255 #define PALMAS_LDO4_CTRL_STATUS_SHIFT            1270 #define PALMAS_LDO4_CTRL_STATUS_SHIFT                           0x04
1256 #define PALMAS_LDO4_CTRL_MODE_SLEEP              1271 #define PALMAS_LDO4_CTRL_MODE_SLEEP                             0x04
1257 #define PALMAS_LDO4_CTRL_MODE_SLEEP_SHIFT        1272 #define PALMAS_LDO4_CTRL_MODE_SLEEP_SHIFT                       0x02
1258 #define PALMAS_LDO4_CTRL_MODE_ACTIVE             1273 #define PALMAS_LDO4_CTRL_MODE_ACTIVE                            0x01
1259 #define PALMAS_LDO4_CTRL_MODE_ACTIVE_SHIFT       1274 #define PALMAS_LDO4_CTRL_MODE_ACTIVE_SHIFT                      0x00
1260                                                  1275 
1261 /* Bit definitions for LDO4_VOLTAGE */           1276 /* Bit definitions for LDO4_VOLTAGE */
1262 #define PALMAS_LDO4_VOLTAGE_VSEL_MASK            1277 #define PALMAS_LDO4_VOLTAGE_VSEL_MASK                           0x3F
1263 #define PALMAS_LDO4_VOLTAGE_VSEL_SHIFT           1278 #define PALMAS_LDO4_VOLTAGE_VSEL_SHIFT                          0x00
1264                                                  1279 
1265 /* Bit definitions for LDO5_CTRL */              1280 /* Bit definitions for LDO5_CTRL */
1266 #define PALMAS_LDO5_CTRL_WR_S                    1281 #define PALMAS_LDO5_CTRL_WR_S                                   0x80
1267 #define PALMAS_LDO5_CTRL_WR_S_SHIFT              1282 #define PALMAS_LDO5_CTRL_WR_S_SHIFT                             0x07
1268 #define PALMAS_LDO5_CTRL_STATUS                  1283 #define PALMAS_LDO5_CTRL_STATUS                                 0x10
1269 #define PALMAS_LDO5_CTRL_STATUS_SHIFT            1284 #define PALMAS_LDO5_CTRL_STATUS_SHIFT                           0x04
1270 #define PALMAS_LDO5_CTRL_MODE_SLEEP              1285 #define PALMAS_LDO5_CTRL_MODE_SLEEP                             0x04
1271 #define PALMAS_LDO5_CTRL_MODE_SLEEP_SHIFT        1286 #define PALMAS_LDO5_CTRL_MODE_SLEEP_SHIFT                       0x02
1272 #define PALMAS_LDO5_CTRL_MODE_ACTIVE             1287 #define PALMAS_LDO5_CTRL_MODE_ACTIVE                            0x01
1273 #define PALMAS_LDO5_CTRL_MODE_ACTIVE_SHIFT       1288 #define PALMAS_LDO5_CTRL_MODE_ACTIVE_SHIFT                      0x00
1274                                                  1289 
1275 /* Bit definitions for LDO5_VOLTAGE */           1290 /* Bit definitions for LDO5_VOLTAGE */
1276 #define PALMAS_LDO5_VOLTAGE_VSEL_MASK            1291 #define PALMAS_LDO5_VOLTAGE_VSEL_MASK                           0x3F
1277 #define PALMAS_LDO5_VOLTAGE_VSEL_SHIFT           1292 #define PALMAS_LDO5_VOLTAGE_VSEL_SHIFT                          0x00
1278                                                  1293 
1279 /* Bit definitions for LDO6_CTRL */              1294 /* Bit definitions for LDO6_CTRL */
1280 #define PALMAS_LDO6_CTRL_WR_S                    1295 #define PALMAS_LDO6_CTRL_WR_S                                   0x80
1281 #define PALMAS_LDO6_CTRL_WR_S_SHIFT              1296 #define PALMAS_LDO6_CTRL_WR_S_SHIFT                             0x07
1282 #define PALMAS_LDO6_CTRL_LDO_VIB_EN              1297 #define PALMAS_LDO6_CTRL_LDO_VIB_EN                             0x40
1283 #define PALMAS_LDO6_CTRL_LDO_VIB_EN_SHIFT        1298 #define PALMAS_LDO6_CTRL_LDO_VIB_EN_SHIFT                       0x06
1284 #define PALMAS_LDO6_CTRL_STATUS                  1299 #define PALMAS_LDO6_CTRL_STATUS                                 0x10
1285 #define PALMAS_LDO6_CTRL_STATUS_SHIFT            1300 #define PALMAS_LDO6_CTRL_STATUS_SHIFT                           0x04
1286 #define PALMAS_LDO6_CTRL_MODE_SLEEP              1301 #define PALMAS_LDO6_CTRL_MODE_SLEEP                             0x04
1287 #define PALMAS_LDO6_CTRL_MODE_SLEEP_SHIFT        1302 #define PALMAS_LDO6_CTRL_MODE_SLEEP_SHIFT                       0x02
1288 #define PALMAS_LDO6_CTRL_MODE_ACTIVE             1303 #define PALMAS_LDO6_CTRL_MODE_ACTIVE                            0x01
1289 #define PALMAS_LDO6_CTRL_MODE_ACTIVE_SHIFT       1304 #define PALMAS_LDO6_CTRL_MODE_ACTIVE_SHIFT                      0x00
1290                                                  1305 
1291 /* Bit definitions for LDO6_VOLTAGE */           1306 /* Bit definitions for LDO6_VOLTAGE */
1292 #define PALMAS_LDO6_VOLTAGE_VSEL_MASK            1307 #define PALMAS_LDO6_VOLTAGE_VSEL_MASK                           0x3F
1293 #define PALMAS_LDO6_VOLTAGE_VSEL_SHIFT           1308 #define PALMAS_LDO6_VOLTAGE_VSEL_SHIFT                          0x00
1294                                                  1309 
1295 /* Bit definitions for LDO7_CTRL */              1310 /* Bit definitions for LDO7_CTRL */
1296 #define PALMAS_LDO7_CTRL_WR_S                    1311 #define PALMAS_LDO7_CTRL_WR_S                                   0x80
1297 #define PALMAS_LDO7_CTRL_WR_S_SHIFT              1312 #define PALMAS_LDO7_CTRL_WR_S_SHIFT                             0x07
1298 #define PALMAS_LDO7_CTRL_STATUS                  1313 #define PALMAS_LDO7_CTRL_STATUS                                 0x10
1299 #define PALMAS_LDO7_CTRL_STATUS_SHIFT            1314 #define PALMAS_LDO7_CTRL_STATUS_SHIFT                           0x04
1300 #define PALMAS_LDO7_CTRL_MODE_SLEEP              1315 #define PALMAS_LDO7_CTRL_MODE_SLEEP                             0x04
1301 #define PALMAS_LDO7_CTRL_MODE_SLEEP_SHIFT        1316 #define PALMAS_LDO7_CTRL_MODE_SLEEP_SHIFT                       0x02
1302 #define PALMAS_LDO7_CTRL_MODE_ACTIVE             1317 #define PALMAS_LDO7_CTRL_MODE_ACTIVE                            0x01
1303 #define PALMAS_LDO7_CTRL_MODE_ACTIVE_SHIFT       1318 #define PALMAS_LDO7_CTRL_MODE_ACTIVE_SHIFT                      0x00
1304                                                  1319 
1305 /* Bit definitions for LDO7_VOLTAGE */           1320 /* Bit definitions for LDO7_VOLTAGE */
1306 #define PALMAS_LDO7_VOLTAGE_VSEL_MASK            1321 #define PALMAS_LDO7_VOLTAGE_VSEL_MASK                           0x3F
1307 #define PALMAS_LDO7_VOLTAGE_VSEL_SHIFT           1322 #define PALMAS_LDO7_VOLTAGE_VSEL_SHIFT                          0x00
1308                                                  1323 
1309 /* Bit definitions for LDO8_CTRL */              1324 /* Bit definitions for LDO8_CTRL */
1310 #define PALMAS_LDO8_CTRL_WR_S                    1325 #define PALMAS_LDO8_CTRL_WR_S                                   0x80
1311 #define PALMAS_LDO8_CTRL_WR_S_SHIFT              1326 #define PALMAS_LDO8_CTRL_WR_S_SHIFT                             0x07
1312 #define PALMAS_LDO8_CTRL_LDO_TRACKING_EN         1327 #define PALMAS_LDO8_CTRL_LDO_TRACKING_EN                        0x40
1313 #define PALMAS_LDO8_CTRL_LDO_TRACKING_EN_SHIF    1328 #define PALMAS_LDO8_CTRL_LDO_TRACKING_EN_SHIFT                  0x06
1314 #define PALMAS_LDO8_CTRL_STATUS                  1329 #define PALMAS_LDO8_CTRL_STATUS                                 0x10
1315 #define PALMAS_LDO8_CTRL_STATUS_SHIFT            1330 #define PALMAS_LDO8_CTRL_STATUS_SHIFT                           0x04
1316 #define PALMAS_LDO8_CTRL_MODE_SLEEP              1331 #define PALMAS_LDO8_CTRL_MODE_SLEEP                             0x04
1317 #define PALMAS_LDO8_CTRL_MODE_SLEEP_SHIFT        1332 #define PALMAS_LDO8_CTRL_MODE_SLEEP_SHIFT                       0x02
1318 #define PALMAS_LDO8_CTRL_MODE_ACTIVE             1333 #define PALMAS_LDO8_CTRL_MODE_ACTIVE                            0x01
1319 #define PALMAS_LDO8_CTRL_MODE_ACTIVE_SHIFT       1334 #define PALMAS_LDO8_CTRL_MODE_ACTIVE_SHIFT                      0x00
1320                                                  1335 
1321 /* Bit definitions for LDO8_VOLTAGE */           1336 /* Bit definitions for LDO8_VOLTAGE */
1322 #define PALMAS_LDO8_VOLTAGE_VSEL_MASK            1337 #define PALMAS_LDO8_VOLTAGE_VSEL_MASK                           0x3F
1323 #define PALMAS_LDO8_VOLTAGE_VSEL_SHIFT           1338 #define PALMAS_LDO8_VOLTAGE_VSEL_SHIFT                          0x00
1324                                                  1339 
1325 /* Bit definitions for LDO9_CTRL */              1340 /* Bit definitions for LDO9_CTRL */
1326 #define PALMAS_LDO9_CTRL_WR_S                    1341 #define PALMAS_LDO9_CTRL_WR_S                                   0x80
1327 #define PALMAS_LDO9_CTRL_WR_S_SHIFT              1342 #define PALMAS_LDO9_CTRL_WR_S_SHIFT                             0x07
1328 #define PALMAS_LDO9_CTRL_LDO_BYPASS_EN           1343 #define PALMAS_LDO9_CTRL_LDO_BYPASS_EN                          0x40
1329 #define PALMAS_LDO9_CTRL_LDO_BYPASS_EN_SHIFT     1344 #define PALMAS_LDO9_CTRL_LDO_BYPASS_EN_SHIFT                    0x06
1330 #define PALMAS_LDO9_CTRL_STATUS                  1345 #define PALMAS_LDO9_CTRL_STATUS                                 0x10
1331 #define PALMAS_LDO9_CTRL_STATUS_SHIFT            1346 #define PALMAS_LDO9_CTRL_STATUS_SHIFT                           0x04
1332 #define PALMAS_LDO9_CTRL_MODE_SLEEP              1347 #define PALMAS_LDO9_CTRL_MODE_SLEEP                             0x04
1333 #define PALMAS_LDO9_CTRL_MODE_SLEEP_SHIFT        1348 #define PALMAS_LDO9_CTRL_MODE_SLEEP_SHIFT                       0x02
1334 #define PALMAS_LDO9_CTRL_MODE_ACTIVE             1349 #define PALMAS_LDO9_CTRL_MODE_ACTIVE                            0x01
1335 #define PALMAS_LDO9_CTRL_MODE_ACTIVE_SHIFT       1350 #define PALMAS_LDO9_CTRL_MODE_ACTIVE_SHIFT                      0x00
1336                                                  1351 
1337 /* Bit definitions for LDO9_VOLTAGE */           1352 /* Bit definitions for LDO9_VOLTAGE */
1338 #define PALMAS_LDO9_VOLTAGE_VSEL_MASK            1353 #define PALMAS_LDO9_VOLTAGE_VSEL_MASK                           0x3F
1339 #define PALMAS_LDO9_VOLTAGE_VSEL_SHIFT           1354 #define PALMAS_LDO9_VOLTAGE_VSEL_SHIFT                          0x00
1340                                                  1355 
1341 /* Bit definitions for LDOLN_CTRL */             1356 /* Bit definitions for LDOLN_CTRL */
1342 #define PALMAS_LDOLN_CTRL_WR_S                   1357 #define PALMAS_LDOLN_CTRL_WR_S                                  0x80
1343 #define PALMAS_LDOLN_CTRL_WR_S_SHIFT             1358 #define PALMAS_LDOLN_CTRL_WR_S_SHIFT                            0x07
1344 #define PALMAS_LDOLN_CTRL_STATUS                 1359 #define PALMAS_LDOLN_CTRL_STATUS                                0x10
1345 #define PALMAS_LDOLN_CTRL_STATUS_SHIFT           1360 #define PALMAS_LDOLN_CTRL_STATUS_SHIFT                          0x04
1346 #define PALMAS_LDOLN_CTRL_MODE_SLEEP             1361 #define PALMAS_LDOLN_CTRL_MODE_SLEEP                            0x04
1347 #define PALMAS_LDOLN_CTRL_MODE_SLEEP_SHIFT       1362 #define PALMAS_LDOLN_CTRL_MODE_SLEEP_SHIFT                      0x02
1348 #define PALMAS_LDOLN_CTRL_MODE_ACTIVE            1363 #define PALMAS_LDOLN_CTRL_MODE_ACTIVE                           0x01
1349 #define PALMAS_LDOLN_CTRL_MODE_ACTIVE_SHIFT      1364 #define PALMAS_LDOLN_CTRL_MODE_ACTIVE_SHIFT                     0x00
1350                                                  1365 
1351 /* Bit definitions for LDOLN_VOLTAGE */          1366 /* Bit definitions for LDOLN_VOLTAGE */
1352 #define PALMAS_LDOLN_VOLTAGE_VSEL_MASK           1367 #define PALMAS_LDOLN_VOLTAGE_VSEL_MASK                          0x3F
1353 #define PALMAS_LDOLN_VOLTAGE_VSEL_SHIFT          1368 #define PALMAS_LDOLN_VOLTAGE_VSEL_SHIFT                         0x00
1354                                                  1369 
1355 /* Bit definitions for LDOUSB_CTRL */            1370 /* Bit definitions for LDOUSB_CTRL */
1356 #define PALMAS_LDOUSB_CTRL_WR_S                  1371 #define PALMAS_LDOUSB_CTRL_WR_S                                 0x80
1357 #define PALMAS_LDOUSB_CTRL_WR_S_SHIFT            1372 #define PALMAS_LDOUSB_CTRL_WR_S_SHIFT                           0x07
1358 #define PALMAS_LDOUSB_CTRL_STATUS                1373 #define PALMAS_LDOUSB_CTRL_STATUS                               0x10
1359 #define PALMAS_LDOUSB_CTRL_STATUS_SHIFT          1374 #define PALMAS_LDOUSB_CTRL_STATUS_SHIFT                         0x04
1360 #define PALMAS_LDOUSB_CTRL_MODE_SLEEP            1375 #define PALMAS_LDOUSB_CTRL_MODE_SLEEP                           0x04
1361 #define PALMAS_LDOUSB_CTRL_MODE_SLEEP_SHIFT      1376 #define PALMAS_LDOUSB_CTRL_MODE_SLEEP_SHIFT                     0x02
1362 #define PALMAS_LDOUSB_CTRL_MODE_ACTIVE           1377 #define PALMAS_LDOUSB_CTRL_MODE_ACTIVE                          0x01
1363 #define PALMAS_LDOUSB_CTRL_MODE_ACTIVE_SHIFT     1378 #define PALMAS_LDOUSB_CTRL_MODE_ACTIVE_SHIFT                    0x00
1364                                                  1379 
1365 /* Bit definitions for LDOUSB_VOLTAGE */         1380 /* Bit definitions for LDOUSB_VOLTAGE */
1366 #define PALMAS_LDOUSB_VOLTAGE_VSEL_MASK          1381 #define PALMAS_LDOUSB_VOLTAGE_VSEL_MASK                         0x3F
1367 #define PALMAS_LDOUSB_VOLTAGE_VSEL_SHIFT         1382 #define PALMAS_LDOUSB_VOLTAGE_VSEL_SHIFT                        0x00
1368                                                  1383 
1369 /* Bit definitions for LDO_CTRL */               1384 /* Bit definitions for LDO_CTRL */
1370 #define PALMAS_LDO_CTRL_LDOUSB_ON_VBUS_VSYS      1385 #define PALMAS_LDO_CTRL_LDOUSB_ON_VBUS_VSYS                     0x01
1371 #define PALMAS_LDO_CTRL_LDOUSB_ON_VBUS_VSYS_S    1386 #define PALMAS_LDO_CTRL_LDOUSB_ON_VBUS_VSYS_SHIFT               0x00
1372                                                  1387 
1373 /* Bit definitions for LDO_PD_CTRL1 */           1388 /* Bit definitions for LDO_PD_CTRL1 */
1374 #define PALMAS_LDO_PD_CTRL1_LDO8                 1389 #define PALMAS_LDO_PD_CTRL1_LDO8                                0x80
1375 #define PALMAS_LDO_PD_CTRL1_LDO8_SHIFT           1390 #define PALMAS_LDO_PD_CTRL1_LDO8_SHIFT                          0x07
1376 #define PALMAS_LDO_PD_CTRL1_LDO7                 1391 #define PALMAS_LDO_PD_CTRL1_LDO7                                0x40
1377 #define PALMAS_LDO_PD_CTRL1_LDO7_SHIFT           1392 #define PALMAS_LDO_PD_CTRL1_LDO7_SHIFT                          0x06
1378 #define PALMAS_LDO_PD_CTRL1_LDO6                 1393 #define PALMAS_LDO_PD_CTRL1_LDO6                                0x20
1379 #define PALMAS_LDO_PD_CTRL1_LDO6_SHIFT           1394 #define PALMAS_LDO_PD_CTRL1_LDO6_SHIFT                          0x05
1380 #define PALMAS_LDO_PD_CTRL1_LDO5                 1395 #define PALMAS_LDO_PD_CTRL1_LDO5                                0x10
1381 #define PALMAS_LDO_PD_CTRL1_LDO5_SHIFT           1396 #define PALMAS_LDO_PD_CTRL1_LDO5_SHIFT                          0x04
1382 #define PALMAS_LDO_PD_CTRL1_LDO4                 1397 #define PALMAS_LDO_PD_CTRL1_LDO4                                0x08
1383 #define PALMAS_LDO_PD_CTRL1_LDO4_SHIFT           1398 #define PALMAS_LDO_PD_CTRL1_LDO4_SHIFT                          0x03
1384 #define PALMAS_LDO_PD_CTRL1_LDO3                 1399 #define PALMAS_LDO_PD_CTRL1_LDO3                                0x04
1385 #define PALMAS_LDO_PD_CTRL1_LDO3_SHIFT           1400 #define PALMAS_LDO_PD_CTRL1_LDO3_SHIFT                          0x02
1386 #define PALMAS_LDO_PD_CTRL1_LDO2                 1401 #define PALMAS_LDO_PD_CTRL1_LDO2                                0x02
1387 #define PALMAS_LDO_PD_CTRL1_LDO2_SHIFT           1402 #define PALMAS_LDO_PD_CTRL1_LDO2_SHIFT                          0x01
1388 #define PALMAS_LDO_PD_CTRL1_LDO1                 1403 #define PALMAS_LDO_PD_CTRL1_LDO1                                0x01
1389 #define PALMAS_LDO_PD_CTRL1_LDO1_SHIFT           1404 #define PALMAS_LDO_PD_CTRL1_LDO1_SHIFT                          0x00
1390                                                  1405 
1391 /* Bit definitions for LDO_PD_CTRL2 */           1406 /* Bit definitions for LDO_PD_CTRL2 */
1392 #define PALMAS_LDO_PD_CTRL2_LDOUSB               1407 #define PALMAS_LDO_PD_CTRL2_LDOUSB                              0x04
1393 #define PALMAS_LDO_PD_CTRL2_LDOUSB_SHIFT         1408 #define PALMAS_LDO_PD_CTRL2_LDOUSB_SHIFT                        0x02
1394 #define PALMAS_LDO_PD_CTRL2_LDOLN                1409 #define PALMAS_LDO_PD_CTRL2_LDOLN                               0x02
1395 #define PALMAS_LDO_PD_CTRL2_LDOLN_SHIFT          1410 #define PALMAS_LDO_PD_CTRL2_LDOLN_SHIFT                         0x01
1396 #define PALMAS_LDO_PD_CTRL2_LDO9                 1411 #define PALMAS_LDO_PD_CTRL2_LDO9                                0x01
1397 #define PALMAS_LDO_PD_CTRL2_LDO9_SHIFT           1412 #define PALMAS_LDO_PD_CTRL2_LDO9_SHIFT                          0x00
1398                                                  1413 
1399 /* Bit definitions for LDO_SHORT_STATUS1 */      1414 /* Bit definitions for LDO_SHORT_STATUS1 */
1400 #define PALMAS_LDO_SHORT_STATUS1_LDO8            1415 #define PALMAS_LDO_SHORT_STATUS1_LDO8                           0x80
1401 #define PALMAS_LDO_SHORT_STATUS1_LDO8_SHIFT      1416 #define PALMAS_LDO_SHORT_STATUS1_LDO8_SHIFT                     0x07
1402 #define PALMAS_LDO_SHORT_STATUS1_LDO7            1417 #define PALMAS_LDO_SHORT_STATUS1_LDO7                           0x40
1403 #define PALMAS_LDO_SHORT_STATUS1_LDO7_SHIFT      1418 #define PALMAS_LDO_SHORT_STATUS1_LDO7_SHIFT                     0x06
1404 #define PALMAS_LDO_SHORT_STATUS1_LDO6            1419 #define PALMAS_LDO_SHORT_STATUS1_LDO6                           0x20
1405 #define PALMAS_LDO_SHORT_STATUS1_LDO6_SHIFT      1420 #define PALMAS_LDO_SHORT_STATUS1_LDO6_SHIFT                     0x05
1406 #define PALMAS_LDO_SHORT_STATUS1_LDO5            1421 #define PALMAS_LDO_SHORT_STATUS1_LDO5                           0x10
1407 #define PALMAS_LDO_SHORT_STATUS1_LDO5_SHIFT      1422 #define PALMAS_LDO_SHORT_STATUS1_LDO5_SHIFT                     0x04
1408 #define PALMAS_LDO_SHORT_STATUS1_LDO4            1423 #define PALMAS_LDO_SHORT_STATUS1_LDO4                           0x08
1409 #define PALMAS_LDO_SHORT_STATUS1_LDO4_SHIFT      1424 #define PALMAS_LDO_SHORT_STATUS1_LDO4_SHIFT                     0x03
1410 #define PALMAS_LDO_SHORT_STATUS1_LDO3            1425 #define PALMAS_LDO_SHORT_STATUS1_LDO3                           0x04
1411 #define PALMAS_LDO_SHORT_STATUS1_LDO3_SHIFT      1426 #define PALMAS_LDO_SHORT_STATUS1_LDO3_SHIFT                     0x02
1412 #define PALMAS_LDO_SHORT_STATUS1_LDO2            1427 #define PALMAS_LDO_SHORT_STATUS1_LDO2                           0x02
1413 #define PALMAS_LDO_SHORT_STATUS1_LDO2_SHIFT      1428 #define PALMAS_LDO_SHORT_STATUS1_LDO2_SHIFT                     0x01
1414 #define PALMAS_LDO_SHORT_STATUS1_LDO1            1429 #define PALMAS_LDO_SHORT_STATUS1_LDO1                           0x01
1415 #define PALMAS_LDO_SHORT_STATUS1_LDO1_SHIFT      1430 #define PALMAS_LDO_SHORT_STATUS1_LDO1_SHIFT                     0x00
1416                                                  1431 
1417 /* Bit definitions for LDO_SHORT_STATUS2 */      1432 /* Bit definitions for LDO_SHORT_STATUS2 */
1418 #define PALMAS_LDO_SHORT_STATUS2_LDOVANA         1433 #define PALMAS_LDO_SHORT_STATUS2_LDOVANA                        0x08
1419 #define PALMAS_LDO_SHORT_STATUS2_LDOVANA_SHIF    1434 #define PALMAS_LDO_SHORT_STATUS2_LDOVANA_SHIFT                  0x03
1420 #define PALMAS_LDO_SHORT_STATUS2_LDOUSB          1435 #define PALMAS_LDO_SHORT_STATUS2_LDOUSB                         0x04
1421 #define PALMAS_LDO_SHORT_STATUS2_LDOUSB_SHIFT    1436 #define PALMAS_LDO_SHORT_STATUS2_LDOUSB_SHIFT                   0x02
1422 #define PALMAS_LDO_SHORT_STATUS2_LDOLN           1437 #define PALMAS_LDO_SHORT_STATUS2_LDOLN                          0x02
1423 #define PALMAS_LDO_SHORT_STATUS2_LDOLN_SHIFT     1438 #define PALMAS_LDO_SHORT_STATUS2_LDOLN_SHIFT                    0x01
1424 #define PALMAS_LDO_SHORT_STATUS2_LDO9            1439 #define PALMAS_LDO_SHORT_STATUS2_LDO9                           0x01
1425 #define PALMAS_LDO_SHORT_STATUS2_LDO9_SHIFT      1440 #define PALMAS_LDO_SHORT_STATUS2_LDO9_SHIFT                     0x00
1426                                                  1441 
1427 /* Registers for function PMU_CONTROL */         1442 /* Registers for function PMU_CONTROL */
1428 #define PALMAS_DEV_CTRL                          1443 #define PALMAS_DEV_CTRL                                         0x00
1429 #define PALMAS_POWER_CTRL                        1444 #define PALMAS_POWER_CTRL                                       0x01
1430 #define PALMAS_VSYS_LO                           1445 #define PALMAS_VSYS_LO                                          0x02
1431 #define PALMAS_VSYS_MON                          1446 #define PALMAS_VSYS_MON                                         0x03
1432 #define PALMAS_VBAT_MON                          1447 #define PALMAS_VBAT_MON                                         0x04
1433 #define PALMAS_WATCHDOG                          1448 #define PALMAS_WATCHDOG                                         0x05
1434 #define PALMAS_BOOT_STATUS                       1449 #define PALMAS_BOOT_STATUS                                      0x06
1435 #define PALMAS_BATTERY_BOUNCE                    1450 #define PALMAS_BATTERY_BOUNCE                                   0x07
1436 #define PALMAS_BACKUP_BATTERY_CTRL               1451 #define PALMAS_BACKUP_BATTERY_CTRL                              0x08
1437 #define PALMAS_LONG_PRESS_KEY                    1452 #define PALMAS_LONG_PRESS_KEY                                   0x09
1438 #define PALMAS_OSC_THERM_CTRL                    1453 #define PALMAS_OSC_THERM_CTRL                                   0x0A
1439 #define PALMAS_BATDEBOUNCING                     1454 #define PALMAS_BATDEBOUNCING                                    0x0B
1440 #define PALMAS_SWOFF_HWRST                       1455 #define PALMAS_SWOFF_HWRST                                      0x0F
1441 #define PALMAS_SWOFF_COLDRST                     1456 #define PALMAS_SWOFF_COLDRST                                    0x10
1442 #define PALMAS_SWOFF_STATUS                      1457 #define PALMAS_SWOFF_STATUS                                     0x11
1443 #define PALMAS_PMU_CONFIG                        1458 #define PALMAS_PMU_CONFIG                                       0x12
1444 #define PALMAS_SPARE                             1459 #define PALMAS_SPARE                                            0x14
1445 #define PALMAS_PMU_SECONDARY_INT                 1460 #define PALMAS_PMU_SECONDARY_INT                                0x15
1446 #define PALMAS_SW_REVISION                       1461 #define PALMAS_SW_REVISION                                      0x17
1447 #define PALMAS_EXT_CHRG_CTRL                     1462 #define PALMAS_EXT_CHRG_CTRL                                    0x18
1448 #define PALMAS_PMU_SECONDARY_INT2                1463 #define PALMAS_PMU_SECONDARY_INT2                               0x19
1449                                                  1464 
1450 /* Bit definitions for DEV_CTRL */               1465 /* Bit definitions for DEV_CTRL */
1451 #define PALMAS_DEV_CTRL_DEV_STATUS_MASK          1466 #define PALMAS_DEV_CTRL_DEV_STATUS_MASK                         0x0c
1452 #define PALMAS_DEV_CTRL_DEV_STATUS_SHIFT         1467 #define PALMAS_DEV_CTRL_DEV_STATUS_SHIFT                        0x02
1453 #define PALMAS_DEV_CTRL_SW_RST                   1468 #define PALMAS_DEV_CTRL_SW_RST                                  0x02
1454 #define PALMAS_DEV_CTRL_SW_RST_SHIFT             1469 #define PALMAS_DEV_CTRL_SW_RST_SHIFT                            0x01
1455 #define PALMAS_DEV_CTRL_DEV_ON                   1470 #define PALMAS_DEV_CTRL_DEV_ON                                  0x01
1456 #define PALMAS_DEV_CTRL_DEV_ON_SHIFT             1471 #define PALMAS_DEV_CTRL_DEV_ON_SHIFT                            0x00
1457                                                  1472 
1458 /* Bit definitions for POWER_CTRL */             1473 /* Bit definitions for POWER_CTRL */
1459 #define PALMAS_POWER_CTRL_ENABLE2_MASK           1474 #define PALMAS_POWER_CTRL_ENABLE2_MASK                          0x04
1460 #define PALMAS_POWER_CTRL_ENABLE2_MASK_SHIFT     1475 #define PALMAS_POWER_CTRL_ENABLE2_MASK_SHIFT                    0x02
1461 #define PALMAS_POWER_CTRL_ENABLE1_MASK           1476 #define PALMAS_POWER_CTRL_ENABLE1_MASK                          0x02
1462 #define PALMAS_POWER_CTRL_ENABLE1_MASK_SHIFT     1477 #define PALMAS_POWER_CTRL_ENABLE1_MASK_SHIFT                    0x01
1463 #define PALMAS_POWER_CTRL_NSLEEP_MASK            1478 #define PALMAS_POWER_CTRL_NSLEEP_MASK                           0x01
1464 #define PALMAS_POWER_CTRL_NSLEEP_MASK_SHIFT      1479 #define PALMAS_POWER_CTRL_NSLEEP_MASK_SHIFT                     0x00
1465                                                  1480 
1466 /* Bit definitions for VSYS_LO */                1481 /* Bit definitions for VSYS_LO */
1467 #define PALMAS_VSYS_LO_THRESHOLD_MASK            1482 #define PALMAS_VSYS_LO_THRESHOLD_MASK                           0x1F
1468 #define PALMAS_VSYS_LO_THRESHOLD_SHIFT           1483 #define PALMAS_VSYS_LO_THRESHOLD_SHIFT                          0x00
1469                                                  1484 
1470 /* Bit definitions for VSYS_MON */               1485 /* Bit definitions for VSYS_MON */
1471 #define PALMAS_VSYS_MON_ENABLE                   1486 #define PALMAS_VSYS_MON_ENABLE                                  0x80
1472 #define PALMAS_VSYS_MON_ENABLE_SHIFT             1487 #define PALMAS_VSYS_MON_ENABLE_SHIFT                            0x07
1473 #define PALMAS_VSYS_MON_THRESHOLD_MASK           1488 #define PALMAS_VSYS_MON_THRESHOLD_MASK                          0x3F
1474 #define PALMAS_VSYS_MON_THRESHOLD_SHIFT          1489 #define PALMAS_VSYS_MON_THRESHOLD_SHIFT                         0x00
1475                                                  1490 
1476 /* Bit definitions for VBAT_MON */               1491 /* Bit definitions for VBAT_MON */
1477 #define PALMAS_VBAT_MON_ENABLE                   1492 #define PALMAS_VBAT_MON_ENABLE                                  0x80
1478 #define PALMAS_VBAT_MON_ENABLE_SHIFT             1493 #define PALMAS_VBAT_MON_ENABLE_SHIFT                            0x07
1479 #define PALMAS_VBAT_MON_THRESHOLD_MASK           1494 #define PALMAS_VBAT_MON_THRESHOLD_MASK                          0x3F
1480 #define PALMAS_VBAT_MON_THRESHOLD_SHIFT          1495 #define PALMAS_VBAT_MON_THRESHOLD_SHIFT                         0x00
1481                                                  1496 
1482 /* Bit definitions for WATCHDOG */               1497 /* Bit definitions for WATCHDOG */
1483 #define PALMAS_WATCHDOG_LOCK                     1498 #define PALMAS_WATCHDOG_LOCK                                    0x20
1484 #define PALMAS_WATCHDOG_LOCK_SHIFT               1499 #define PALMAS_WATCHDOG_LOCK_SHIFT                              0x05
1485 #define PALMAS_WATCHDOG_ENABLE                   1500 #define PALMAS_WATCHDOG_ENABLE                                  0x10
1486 #define PALMAS_WATCHDOG_ENABLE_SHIFT             1501 #define PALMAS_WATCHDOG_ENABLE_SHIFT                            0x04
1487 #define PALMAS_WATCHDOG_MODE                     1502 #define PALMAS_WATCHDOG_MODE                                    0x08
1488 #define PALMAS_WATCHDOG_MODE_SHIFT               1503 #define PALMAS_WATCHDOG_MODE_SHIFT                              0x03
1489 #define PALMAS_WATCHDOG_TIMER_MASK               1504 #define PALMAS_WATCHDOG_TIMER_MASK                              0x07
1490 #define PALMAS_WATCHDOG_TIMER_SHIFT              1505 #define PALMAS_WATCHDOG_TIMER_SHIFT                             0x00
1491                                                  1506 
1492 /* Bit definitions for BOOT_STATUS */            1507 /* Bit definitions for BOOT_STATUS */
1493 #define PALMAS_BOOT_STATUS_BOOT1                 1508 #define PALMAS_BOOT_STATUS_BOOT1                                0x02
1494 #define PALMAS_BOOT_STATUS_BOOT1_SHIFT           1509 #define PALMAS_BOOT_STATUS_BOOT1_SHIFT                          0x01
1495 #define PALMAS_BOOT_STATUS_BOOT0                 1510 #define PALMAS_BOOT_STATUS_BOOT0                                0x01
1496 #define PALMAS_BOOT_STATUS_BOOT0_SHIFT           1511 #define PALMAS_BOOT_STATUS_BOOT0_SHIFT                          0x00
1497                                                  1512 
1498 /* Bit definitions for BATTERY_BOUNCE */         1513 /* Bit definitions for BATTERY_BOUNCE */
1499 #define PALMAS_BATTERY_BOUNCE_BB_DELAY_MASK      1514 #define PALMAS_BATTERY_BOUNCE_BB_DELAY_MASK                     0x3F
1500 #define PALMAS_BATTERY_BOUNCE_BB_DELAY_SHIFT     1515 #define PALMAS_BATTERY_BOUNCE_BB_DELAY_SHIFT                    0x00
1501                                                  1516 
1502 /* Bit definitions for BACKUP_BATTERY_CTRL */    1517 /* Bit definitions for BACKUP_BATTERY_CTRL */
1503 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_18_15    1518 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_18_15                   0x80
1504 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_18_15    1519 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_18_15_SHIFT             0x07
1505 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_EN_SL    1520 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_EN_SLP                  0x40
1506 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_EN_SL    1521 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_EN_SLP_SHIFT            0x06
1507 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_EN_OF    1522 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_EN_OFF                  0x20
1508 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_EN_OF    1523 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_EN_OFF_SHIFT            0x05
1509 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_PWEN     1524 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_PWEN                    0x10
1510 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_PWEN_    1525 #define PALMAS_BACKUP_BATTERY_CTRL_VRTC_PWEN_SHIFT              0x04
1511 #define PALMAS_BACKUP_BATTERY_CTRL_BBS_BBC_LO    1526 #define PALMAS_BACKUP_BATTERY_CTRL_BBS_BBC_LOW_ICHRG            0x08
1512 #define PALMAS_BACKUP_BATTERY_CTRL_BBS_BBC_LO    1527 #define PALMAS_BACKUP_BATTERY_CTRL_BBS_BBC_LOW_ICHRG_SHIFT      0x03
1513 #define PALMAS_BACKUP_BATTERY_CTRL_BB_SEL_MAS    1528 #define PALMAS_BACKUP_BATTERY_CTRL_BB_SEL_MASK                  0x06
1514 #define PALMAS_BACKUP_BATTERY_CTRL_BB_SEL_SHI    1529 #define PALMAS_BACKUP_BATTERY_CTRL_BB_SEL_SHIFT                 0x01
1515 #define PALMAS_BACKUP_BATTERY_CTRL_BB_CHG_EN     1530 #define PALMAS_BACKUP_BATTERY_CTRL_BB_CHG_EN                    0x01
1516 #define PALMAS_BACKUP_BATTERY_CTRL_BB_CHG_EN_    1531 #define PALMAS_BACKUP_BATTERY_CTRL_BB_CHG_EN_SHIFT              0x00
1517                                                  1532 
1518 /* Bit definitions for LONG_PRESS_KEY */         1533 /* Bit definitions for LONG_PRESS_KEY */
1519 #define PALMAS_LONG_PRESS_KEY_LPK_LOCK           1534 #define PALMAS_LONG_PRESS_KEY_LPK_LOCK                          0x80
1520 #define PALMAS_LONG_PRESS_KEY_LPK_LOCK_SHIFT     1535 #define PALMAS_LONG_PRESS_KEY_LPK_LOCK_SHIFT                    0x07
1521 #define PALMAS_LONG_PRESS_KEY_LPK_INT_CLR        1536 #define PALMAS_LONG_PRESS_KEY_LPK_INT_CLR                       0x10
1522 #define PALMAS_LONG_PRESS_KEY_LPK_INT_CLR_SHI    1537 #define PALMAS_LONG_PRESS_KEY_LPK_INT_CLR_SHIFT                 0x04
1523 #define PALMAS_LONG_PRESS_KEY_LPK_TIME_MASK      1538 #define PALMAS_LONG_PRESS_KEY_LPK_TIME_MASK                     0x0c
1524 #define PALMAS_LONG_PRESS_KEY_LPK_TIME_SHIFT     1539 #define PALMAS_LONG_PRESS_KEY_LPK_TIME_SHIFT                    0x02
1525 #define PALMAS_LONG_PRESS_KEY_PWRON_DEBOUNCE_    1540 #define PALMAS_LONG_PRESS_KEY_PWRON_DEBOUNCE_MASK               0x03
1526 #define PALMAS_LONG_PRESS_KEY_PWRON_DEBOUNCE_    1541 #define PALMAS_LONG_PRESS_KEY_PWRON_DEBOUNCE_SHIFT              0x00
1527                                                  1542 
1528 /* Bit definitions for OSC_THERM_CTRL */         1543 /* Bit definitions for OSC_THERM_CTRL */
1529 #define PALMAS_OSC_THERM_CTRL_VANA_ON_IN_SLEE    1544 #define PALMAS_OSC_THERM_CTRL_VANA_ON_IN_SLEEP                  0x80
1530 #define PALMAS_OSC_THERM_CTRL_VANA_ON_IN_SLEE    1545 #define PALMAS_OSC_THERM_CTRL_VANA_ON_IN_SLEEP_SHIFT            0x07
1531 #define PALMAS_OSC_THERM_CTRL_INT_MASK_IN_SLE    1546 #define PALMAS_OSC_THERM_CTRL_INT_MASK_IN_SLEEP                 0x40
1532 #define PALMAS_OSC_THERM_CTRL_INT_MASK_IN_SLE    1547 #define PALMAS_OSC_THERM_CTRL_INT_MASK_IN_SLEEP_SHIFT           0x06
1533 #define PALMAS_OSC_THERM_CTRL_RC15MHZ_ON_IN_S    1548 #define PALMAS_OSC_THERM_CTRL_RC15MHZ_ON_IN_SLEEP               0x20
1534 #define PALMAS_OSC_THERM_CTRL_RC15MHZ_ON_IN_S    1549 #define PALMAS_OSC_THERM_CTRL_RC15MHZ_ON_IN_SLEEP_SHIFT         0x05
1535 #define PALMAS_OSC_THERM_CTRL_THERM_OFF_IN_SL    1550 #define PALMAS_OSC_THERM_CTRL_THERM_OFF_IN_SLEEP                0x10
1536 #define PALMAS_OSC_THERM_CTRL_THERM_OFF_IN_SL    1551 #define PALMAS_OSC_THERM_CTRL_THERM_OFF_IN_SLEEP_SHIFT          0x04
1537 #define PALMAS_OSC_THERM_CTRL_THERM_HD_SEL_MA    1552 #define PALMAS_OSC_THERM_CTRL_THERM_HD_SEL_MASK                 0x0c
1538 #define PALMAS_OSC_THERM_CTRL_THERM_HD_SEL_SH    1553 #define PALMAS_OSC_THERM_CTRL_THERM_HD_SEL_SHIFT                0x02
1539 #define PALMAS_OSC_THERM_CTRL_OSC_BYPASS         1554 #define PALMAS_OSC_THERM_CTRL_OSC_BYPASS                        0x02
1540 #define PALMAS_OSC_THERM_CTRL_OSC_BYPASS_SHIF    1555 #define PALMAS_OSC_THERM_CTRL_OSC_BYPASS_SHIFT                  0x01
1541 #define PALMAS_OSC_THERM_CTRL_OSC_HPMODE         1556 #define PALMAS_OSC_THERM_CTRL_OSC_HPMODE                        0x01
1542 #define PALMAS_OSC_THERM_CTRL_OSC_HPMODE_SHIF    1557 #define PALMAS_OSC_THERM_CTRL_OSC_HPMODE_SHIFT                  0x00
1543                                                  1558 
1544 /* Bit definitions for BATDEBOUNCING */          1559 /* Bit definitions for BATDEBOUNCING */
1545 #define PALMAS_BATDEBOUNCING_BAT_DEB_BYPASS      1560 #define PALMAS_BATDEBOUNCING_BAT_DEB_BYPASS                     0x80
1546 #define PALMAS_BATDEBOUNCING_BAT_DEB_BYPASS_S    1561 #define PALMAS_BATDEBOUNCING_BAT_DEB_BYPASS_SHIFT               0x07
1547 #define PALMAS_BATDEBOUNCING_BINS_DEB_MASK       1562 #define PALMAS_BATDEBOUNCING_BINS_DEB_MASK                      0x78
1548 #define PALMAS_BATDEBOUNCING_BINS_DEB_SHIFT      1563 #define PALMAS_BATDEBOUNCING_BINS_DEB_SHIFT                     0x03
1549 #define PALMAS_BATDEBOUNCING_BEXT_DEB_MASK       1564 #define PALMAS_BATDEBOUNCING_BEXT_DEB_MASK                      0x07
1550 #define PALMAS_BATDEBOUNCING_BEXT_DEB_SHIFT      1565 #define PALMAS_BATDEBOUNCING_BEXT_DEB_SHIFT                     0x00
1551                                                  1566 
1552 /* Bit definitions for SWOFF_HWRST */            1567 /* Bit definitions for SWOFF_HWRST */
1553 #define PALMAS_SWOFF_HWRST_PWRON_LPK             1568 #define PALMAS_SWOFF_HWRST_PWRON_LPK                            0x80
1554 #define PALMAS_SWOFF_HWRST_PWRON_LPK_SHIFT       1569 #define PALMAS_SWOFF_HWRST_PWRON_LPK_SHIFT                      0x07
1555 #define PALMAS_SWOFF_HWRST_PWRDOWN               1570 #define PALMAS_SWOFF_HWRST_PWRDOWN                              0x40
1556 #define PALMAS_SWOFF_HWRST_PWRDOWN_SHIFT         1571 #define PALMAS_SWOFF_HWRST_PWRDOWN_SHIFT                        0x06
1557 #define PALMAS_SWOFF_HWRST_WTD                   1572 #define PALMAS_SWOFF_HWRST_WTD                                  0x20
1558 #define PALMAS_SWOFF_HWRST_WTD_SHIFT             1573 #define PALMAS_SWOFF_HWRST_WTD_SHIFT                            0x05
1559 #define PALMAS_SWOFF_HWRST_TSHUT                 1574 #define PALMAS_SWOFF_HWRST_TSHUT                                0x10
1560 #define PALMAS_SWOFF_HWRST_TSHUT_SHIFT           1575 #define PALMAS_SWOFF_HWRST_TSHUT_SHIFT                          0x04
1561 #define PALMAS_SWOFF_HWRST_RESET_IN              1576 #define PALMAS_SWOFF_HWRST_RESET_IN                             0x08
1562 #define PALMAS_SWOFF_HWRST_RESET_IN_SHIFT        1577 #define PALMAS_SWOFF_HWRST_RESET_IN_SHIFT                       0x03
1563 #define PALMAS_SWOFF_HWRST_SW_RST                1578 #define PALMAS_SWOFF_HWRST_SW_RST                               0x04
1564 #define PALMAS_SWOFF_HWRST_SW_RST_SHIFT          1579 #define PALMAS_SWOFF_HWRST_SW_RST_SHIFT                         0x02
1565 #define PALMAS_SWOFF_HWRST_VSYS_LO               1580 #define PALMAS_SWOFF_HWRST_VSYS_LO                              0x02
1566 #define PALMAS_SWOFF_HWRST_VSYS_LO_SHIFT         1581 #define PALMAS_SWOFF_HWRST_VSYS_LO_SHIFT                        0x01
1567 #define PALMAS_SWOFF_HWRST_GPADC_SHUTDOWN        1582 #define PALMAS_SWOFF_HWRST_GPADC_SHUTDOWN                       0x01
1568 #define PALMAS_SWOFF_HWRST_GPADC_SHUTDOWN_SHI    1583 #define PALMAS_SWOFF_HWRST_GPADC_SHUTDOWN_SHIFT                 0x00
1569                                                  1584 
1570 /* Bit definitions for SWOFF_COLDRST */          1585 /* Bit definitions for SWOFF_COLDRST */
1571 #define PALMAS_SWOFF_COLDRST_PWRON_LPK           1586 #define PALMAS_SWOFF_COLDRST_PWRON_LPK                          0x80
1572 #define PALMAS_SWOFF_COLDRST_PWRON_LPK_SHIFT     1587 #define PALMAS_SWOFF_COLDRST_PWRON_LPK_SHIFT                    0x07
1573 #define PALMAS_SWOFF_COLDRST_PWRDOWN             1588 #define PALMAS_SWOFF_COLDRST_PWRDOWN                            0x40
1574 #define PALMAS_SWOFF_COLDRST_PWRDOWN_SHIFT       1589 #define PALMAS_SWOFF_COLDRST_PWRDOWN_SHIFT                      0x06
1575 #define PALMAS_SWOFF_COLDRST_WTD                 1590 #define PALMAS_SWOFF_COLDRST_WTD                                0x20
1576 #define PALMAS_SWOFF_COLDRST_WTD_SHIFT           1591 #define PALMAS_SWOFF_COLDRST_WTD_SHIFT                          0x05
1577 #define PALMAS_SWOFF_COLDRST_TSHUT               1592 #define PALMAS_SWOFF_COLDRST_TSHUT                              0x10
1578 #define PALMAS_SWOFF_COLDRST_TSHUT_SHIFT         1593 #define PALMAS_SWOFF_COLDRST_TSHUT_SHIFT                        0x04
1579 #define PALMAS_SWOFF_COLDRST_RESET_IN            1594 #define PALMAS_SWOFF_COLDRST_RESET_IN                           0x08
1580 #define PALMAS_SWOFF_COLDRST_RESET_IN_SHIFT      1595 #define PALMAS_SWOFF_COLDRST_RESET_IN_SHIFT                     0x03
1581 #define PALMAS_SWOFF_COLDRST_SW_RST              1596 #define PALMAS_SWOFF_COLDRST_SW_RST                             0x04
1582 #define PALMAS_SWOFF_COLDRST_SW_RST_SHIFT        1597 #define PALMAS_SWOFF_COLDRST_SW_RST_SHIFT                       0x02
1583 #define PALMAS_SWOFF_COLDRST_VSYS_LO             1598 #define PALMAS_SWOFF_COLDRST_VSYS_LO                            0x02
1584 #define PALMAS_SWOFF_COLDRST_VSYS_LO_SHIFT       1599 #define PALMAS_SWOFF_COLDRST_VSYS_LO_SHIFT                      0x01
1585 #define PALMAS_SWOFF_COLDRST_GPADC_SHUTDOWN      1600 #define PALMAS_SWOFF_COLDRST_GPADC_SHUTDOWN                     0x01
1586 #define PALMAS_SWOFF_COLDRST_GPADC_SHUTDOWN_S    1601 #define PALMAS_SWOFF_COLDRST_GPADC_SHUTDOWN_SHIFT               0x00
1587                                                  1602 
1588 /* Bit definitions for SWOFF_STATUS */           1603 /* Bit definitions for SWOFF_STATUS */
1589 #define PALMAS_SWOFF_STATUS_PWRON_LPK            1604 #define PALMAS_SWOFF_STATUS_PWRON_LPK                           0x80
1590 #define PALMAS_SWOFF_STATUS_PWRON_LPK_SHIFT      1605 #define PALMAS_SWOFF_STATUS_PWRON_LPK_SHIFT                     0x07
1591 #define PALMAS_SWOFF_STATUS_PWRDOWN              1606 #define PALMAS_SWOFF_STATUS_PWRDOWN                             0x40
1592 #define PALMAS_SWOFF_STATUS_PWRDOWN_SHIFT        1607 #define PALMAS_SWOFF_STATUS_PWRDOWN_SHIFT                       0x06
1593 #define PALMAS_SWOFF_STATUS_WTD                  1608 #define PALMAS_SWOFF_STATUS_WTD                                 0x20
1594 #define PALMAS_SWOFF_STATUS_WTD_SHIFT            1609 #define PALMAS_SWOFF_STATUS_WTD_SHIFT                           0x05
1595 #define PALMAS_SWOFF_STATUS_TSHUT                1610 #define PALMAS_SWOFF_STATUS_TSHUT                               0x10
1596 #define PALMAS_SWOFF_STATUS_TSHUT_SHIFT          1611 #define PALMAS_SWOFF_STATUS_TSHUT_SHIFT                         0x04
1597 #define PALMAS_SWOFF_STATUS_RESET_IN             1612 #define PALMAS_SWOFF_STATUS_RESET_IN                            0x08
1598 #define PALMAS_SWOFF_STATUS_RESET_IN_SHIFT       1613 #define PALMAS_SWOFF_STATUS_RESET_IN_SHIFT                      0x03
1599 #define PALMAS_SWOFF_STATUS_SW_RST               1614 #define PALMAS_SWOFF_STATUS_SW_RST                              0x04
1600 #define PALMAS_SWOFF_STATUS_SW_RST_SHIFT         1615 #define PALMAS_SWOFF_STATUS_SW_RST_SHIFT                        0x02
1601 #define PALMAS_SWOFF_STATUS_VSYS_LO              1616 #define PALMAS_SWOFF_STATUS_VSYS_LO                             0x02
1602 #define PALMAS_SWOFF_STATUS_VSYS_LO_SHIFT        1617 #define PALMAS_SWOFF_STATUS_VSYS_LO_SHIFT                       0x01
1603 #define PALMAS_SWOFF_STATUS_GPADC_SHUTDOWN       1618 #define PALMAS_SWOFF_STATUS_GPADC_SHUTDOWN                      0x01
1604 #define PALMAS_SWOFF_STATUS_GPADC_SHUTDOWN_SH    1619 #define PALMAS_SWOFF_STATUS_GPADC_SHUTDOWN_SHIFT                0x00
1605                                                  1620 
1606 /* Bit definitions for PMU_CONFIG */             1621 /* Bit definitions for PMU_CONFIG */
1607 #define PALMAS_PMU_CONFIG_MULTI_CELL_EN          1622 #define PALMAS_PMU_CONFIG_MULTI_CELL_EN                         0x40
1608 #define PALMAS_PMU_CONFIG_MULTI_CELL_EN_SHIFT    1623 #define PALMAS_PMU_CONFIG_MULTI_CELL_EN_SHIFT                   0x06
1609 #define PALMAS_PMU_CONFIG_SPARE_MASK             1624 #define PALMAS_PMU_CONFIG_SPARE_MASK                            0x30
1610 #define PALMAS_PMU_CONFIG_SPARE_SHIFT            1625 #define PALMAS_PMU_CONFIG_SPARE_SHIFT                           0x04
1611 #define PALMAS_PMU_CONFIG_SWOFF_DLY_MASK         1626 #define PALMAS_PMU_CONFIG_SWOFF_DLY_MASK                        0x0c
1612 #define PALMAS_PMU_CONFIG_SWOFF_DLY_SHIFT        1627 #define PALMAS_PMU_CONFIG_SWOFF_DLY_SHIFT                       0x02
1613 #define PALMAS_PMU_CONFIG_GATE_RESET_OUT         1628 #define PALMAS_PMU_CONFIG_GATE_RESET_OUT                        0x02
1614 #define PALMAS_PMU_CONFIG_GATE_RESET_OUT_SHIF    1629 #define PALMAS_PMU_CONFIG_GATE_RESET_OUT_SHIFT                  0x01
1615 #define PALMAS_PMU_CONFIG_AUTODEVON              1630 #define PALMAS_PMU_CONFIG_AUTODEVON                             0x01
1616 #define PALMAS_PMU_CONFIG_AUTODEVON_SHIFT        1631 #define PALMAS_PMU_CONFIG_AUTODEVON_SHIFT                       0x00
1617                                                  1632 
1618 /* Bit definitions for SPARE */                  1633 /* Bit definitions for SPARE */
1619 #define PALMAS_SPARE_SPARE_MASK                  1634 #define PALMAS_SPARE_SPARE_MASK                                 0xf8
1620 #define PALMAS_SPARE_SPARE_SHIFT                 1635 #define PALMAS_SPARE_SPARE_SHIFT                                0x03
1621 #define PALMAS_SPARE_REGEN3_OD                   1636 #define PALMAS_SPARE_REGEN3_OD                                  0x04
1622 #define PALMAS_SPARE_REGEN3_OD_SHIFT             1637 #define PALMAS_SPARE_REGEN3_OD_SHIFT                            0x02
1623 #define PALMAS_SPARE_REGEN2_OD                   1638 #define PALMAS_SPARE_REGEN2_OD                                  0x02
1624 #define PALMAS_SPARE_REGEN2_OD_SHIFT             1639 #define PALMAS_SPARE_REGEN2_OD_SHIFT                            0x01
1625 #define PALMAS_SPARE_REGEN1_OD                   1640 #define PALMAS_SPARE_REGEN1_OD                                  0x01
1626 #define PALMAS_SPARE_REGEN1_OD_SHIFT             1641 #define PALMAS_SPARE_REGEN1_OD_SHIFT                            0x00
1627                                                  1642 
1628 /* Bit definitions for PMU_SECONDARY_INT */      1643 /* Bit definitions for PMU_SECONDARY_INT */
1629 #define PALMAS_PMU_SECONDARY_INT_VBUS_OVV_INT    1644 #define PALMAS_PMU_SECONDARY_INT_VBUS_OVV_INT_SRC               0x80
1630 #define PALMAS_PMU_SECONDARY_INT_VBUS_OVV_INT    1645 #define PALMAS_PMU_SECONDARY_INT_VBUS_OVV_INT_SRC_SHIFT         0x07
1631 #define PALMAS_PMU_SECONDARY_INT_CHARG_DET_N_    1646 #define PALMAS_PMU_SECONDARY_INT_CHARG_DET_N_INT_SRC            0x40
1632 #define PALMAS_PMU_SECONDARY_INT_CHARG_DET_N_    1647 #define PALMAS_PMU_SECONDARY_INT_CHARG_DET_N_INT_SRC_SHIFT      0x06
1633 #define PALMAS_PMU_SECONDARY_INT_BB_INT_SRC      1648 #define PALMAS_PMU_SECONDARY_INT_BB_INT_SRC                     0x20
1634 #define PALMAS_PMU_SECONDARY_INT_BB_INT_SRC_S    1649 #define PALMAS_PMU_SECONDARY_INT_BB_INT_SRC_SHIFT               0x05
1635 #define PALMAS_PMU_SECONDARY_INT_FBI_INT_SRC     1650 #define PALMAS_PMU_SECONDARY_INT_FBI_INT_SRC                    0x10
1636 #define PALMAS_PMU_SECONDARY_INT_FBI_INT_SRC_    1651 #define PALMAS_PMU_SECONDARY_INT_FBI_INT_SRC_SHIFT              0x04
1637 #define PALMAS_PMU_SECONDARY_INT_VBUS_OVV_MAS    1652 #define PALMAS_PMU_SECONDARY_INT_VBUS_OVV_MASK                  0x08
1638 #define PALMAS_PMU_SECONDARY_INT_VBUS_OVV_MAS    1653 #define PALMAS_PMU_SECONDARY_INT_VBUS_OVV_MASK_SHIFT            0x03
1639 #define PALMAS_PMU_SECONDARY_INT_CHARG_DET_N_    1654 #define PALMAS_PMU_SECONDARY_INT_CHARG_DET_N_MASK               0x04
1640 #define PALMAS_PMU_SECONDARY_INT_CHARG_DET_N_    1655 #define PALMAS_PMU_SECONDARY_INT_CHARG_DET_N_MASK_SHIFT         0x02
1641 #define PALMAS_PMU_SECONDARY_INT_BB_MASK         1656 #define PALMAS_PMU_SECONDARY_INT_BB_MASK                        0x02
1642 #define PALMAS_PMU_SECONDARY_INT_BB_MASK_SHIF    1657 #define PALMAS_PMU_SECONDARY_INT_BB_MASK_SHIFT                  0x01
1643 #define PALMAS_PMU_SECONDARY_INT_FBI_MASK        1658 #define PALMAS_PMU_SECONDARY_INT_FBI_MASK                       0x01
1644 #define PALMAS_PMU_SECONDARY_INT_FBI_MASK_SHI    1659 #define PALMAS_PMU_SECONDARY_INT_FBI_MASK_SHIFT                 0x00
1645                                                  1660 
1646 /* Bit definitions for SW_REVISION */            1661 /* Bit definitions for SW_REVISION */
1647 #define PALMAS_SW_REVISION_SW_REVISION_MASK      1662 #define PALMAS_SW_REVISION_SW_REVISION_MASK                     0xFF
1648 #define PALMAS_SW_REVISION_SW_REVISION_SHIFT     1663 #define PALMAS_SW_REVISION_SW_REVISION_SHIFT                    0x00
1649                                                  1664 
1650 /* Bit definitions for EXT_CHRG_CTRL */          1665 /* Bit definitions for EXT_CHRG_CTRL */
1651 #define PALMAS_EXT_CHRG_CTRL_VBUS_OVV_STATUS     1666 #define PALMAS_EXT_CHRG_CTRL_VBUS_OVV_STATUS                    0x80
1652 #define PALMAS_EXT_CHRG_CTRL_VBUS_OVV_STATUS_    1667 #define PALMAS_EXT_CHRG_CTRL_VBUS_OVV_STATUS_SHIFT              0x07
1653 #define PALMAS_EXT_CHRG_CTRL_CHARG_DET_N_STAT    1668 #define PALMAS_EXT_CHRG_CTRL_CHARG_DET_N_STATUS                 0x40
1654 #define PALMAS_EXT_CHRG_CTRL_CHARG_DET_N_STAT    1669 #define PALMAS_EXT_CHRG_CTRL_CHARG_DET_N_STATUS_SHIFT           0x06
1655 #define PALMAS_EXT_CHRG_CTRL_VSYS_DEBOUNCE_DE    1670 #define PALMAS_EXT_CHRG_CTRL_VSYS_DEBOUNCE_DELAY                0x08
1656 #define PALMAS_EXT_CHRG_CTRL_VSYS_DEBOUNCE_DE    1671 #define PALMAS_EXT_CHRG_CTRL_VSYS_DEBOUNCE_DELAY_SHIFT          0x03
1657 #define PALMAS_EXT_CHRG_CTRL_CHRG_DET_N          1672 #define PALMAS_EXT_CHRG_CTRL_CHRG_DET_N                         0x04
1658 #define PALMAS_EXT_CHRG_CTRL_CHRG_DET_N_SHIFT    1673 #define PALMAS_EXT_CHRG_CTRL_CHRG_DET_N_SHIFT                   0x02
1659 #define PALMAS_EXT_CHRG_CTRL_AUTO_ACA_EN         1674 #define PALMAS_EXT_CHRG_CTRL_AUTO_ACA_EN                        0x02
1660 #define PALMAS_EXT_CHRG_CTRL_AUTO_ACA_EN_SHIF    1675 #define PALMAS_EXT_CHRG_CTRL_AUTO_ACA_EN_SHIFT                  0x01
1661 #define PALMAS_EXT_CHRG_CTRL_AUTO_LDOUSB_EN      1676 #define PALMAS_EXT_CHRG_CTRL_AUTO_LDOUSB_EN                     0x01
1662 #define PALMAS_EXT_CHRG_CTRL_AUTO_LDOUSB_EN_S    1677 #define PALMAS_EXT_CHRG_CTRL_AUTO_LDOUSB_EN_SHIFT               0x00
1663                                                  1678 
1664 /* Bit definitions for PMU_SECONDARY_INT2 */     1679 /* Bit definitions for PMU_SECONDARY_INT2 */
1665 #define PALMAS_PMU_SECONDARY_INT2_DVFS2_INT_S    1680 #define PALMAS_PMU_SECONDARY_INT2_DVFS2_INT_SRC                 0x20
1666 #define PALMAS_PMU_SECONDARY_INT2_DVFS2_INT_S    1681 #define PALMAS_PMU_SECONDARY_INT2_DVFS2_INT_SRC_SHIFT           0x05
1667 #define PALMAS_PMU_SECONDARY_INT2_DVFS1_INT_S    1682 #define PALMAS_PMU_SECONDARY_INT2_DVFS1_INT_SRC                 0x10
1668 #define PALMAS_PMU_SECONDARY_INT2_DVFS1_INT_S    1683 #define PALMAS_PMU_SECONDARY_INT2_DVFS1_INT_SRC_SHIFT           0x04
1669 #define PALMAS_PMU_SECONDARY_INT2_DVFS2_MASK     1684 #define PALMAS_PMU_SECONDARY_INT2_DVFS2_MASK                    0x02
1670 #define PALMAS_PMU_SECONDARY_INT2_DVFS2_MASK_    1685 #define PALMAS_PMU_SECONDARY_INT2_DVFS2_MASK_SHIFT              0x01
1671 #define PALMAS_PMU_SECONDARY_INT2_DVFS1_MASK     1686 #define PALMAS_PMU_SECONDARY_INT2_DVFS1_MASK                    0x01
1672 #define PALMAS_PMU_SECONDARY_INT2_DVFS1_MASK_    1687 #define PALMAS_PMU_SECONDARY_INT2_DVFS1_MASK_SHIFT              0x00
1673                                                  1688 
1674 /* Registers for function RESOURCE */            1689 /* Registers for function RESOURCE */
1675 #define PALMAS_CLK32KG_CTRL                      1690 #define PALMAS_CLK32KG_CTRL                                     0x00
1676 #define PALMAS_CLK32KGAUDIO_CTRL                 1691 #define PALMAS_CLK32KGAUDIO_CTRL                                0x01
1677 #define PALMAS_REGEN1_CTRL                       1692 #define PALMAS_REGEN1_CTRL                                      0x02
1678 #define PALMAS_REGEN2_CTRL                       1693 #define PALMAS_REGEN2_CTRL                                      0x03
1679 #define PALMAS_SYSEN1_CTRL                       1694 #define PALMAS_SYSEN1_CTRL                                      0x04
1680 #define PALMAS_SYSEN2_CTRL                       1695 #define PALMAS_SYSEN2_CTRL                                      0x05
1681 #define PALMAS_NSLEEP_RES_ASSIGN                 1696 #define PALMAS_NSLEEP_RES_ASSIGN                                0x06
1682 #define PALMAS_NSLEEP_SMPS_ASSIGN                1697 #define PALMAS_NSLEEP_SMPS_ASSIGN                               0x07
1683 #define PALMAS_NSLEEP_LDO_ASSIGN1                1698 #define PALMAS_NSLEEP_LDO_ASSIGN1                               0x08
1684 #define PALMAS_NSLEEP_LDO_ASSIGN2                1699 #define PALMAS_NSLEEP_LDO_ASSIGN2                               0x09
1685 #define PALMAS_ENABLE1_RES_ASSIGN                1700 #define PALMAS_ENABLE1_RES_ASSIGN                               0x0A
1686 #define PALMAS_ENABLE1_SMPS_ASSIGN               1701 #define PALMAS_ENABLE1_SMPS_ASSIGN                              0x0B
1687 #define PALMAS_ENABLE1_LDO_ASSIGN1               1702 #define PALMAS_ENABLE1_LDO_ASSIGN1                              0x0C
1688 #define PALMAS_ENABLE1_LDO_ASSIGN2               1703 #define PALMAS_ENABLE1_LDO_ASSIGN2                              0x0D
1689 #define PALMAS_ENABLE2_RES_ASSIGN                1704 #define PALMAS_ENABLE2_RES_ASSIGN                               0x0E
1690 #define PALMAS_ENABLE2_SMPS_ASSIGN               1705 #define PALMAS_ENABLE2_SMPS_ASSIGN                              0x0F
1691 #define PALMAS_ENABLE2_LDO_ASSIGN1               1706 #define PALMAS_ENABLE2_LDO_ASSIGN1                              0x10
1692 #define PALMAS_ENABLE2_LDO_ASSIGN2               1707 #define PALMAS_ENABLE2_LDO_ASSIGN2                              0x11
1693 #define PALMAS_REGEN3_CTRL                       1708 #define PALMAS_REGEN3_CTRL                                      0x12
1694                                                  1709 
1695 /* Bit definitions for CLK32KG_CTRL */           1710 /* Bit definitions for CLK32KG_CTRL */
1696 #define PALMAS_CLK32KG_CTRL_STATUS               1711 #define PALMAS_CLK32KG_CTRL_STATUS                              0x10
1697 #define PALMAS_CLK32KG_CTRL_STATUS_SHIFT         1712 #define PALMAS_CLK32KG_CTRL_STATUS_SHIFT                        0x04
1698 #define PALMAS_CLK32KG_CTRL_MODE_SLEEP           1713 #define PALMAS_CLK32KG_CTRL_MODE_SLEEP                          0x04
1699 #define PALMAS_CLK32KG_CTRL_MODE_SLEEP_SHIFT     1714 #define PALMAS_CLK32KG_CTRL_MODE_SLEEP_SHIFT                    0x02
1700 #define PALMAS_CLK32KG_CTRL_MODE_ACTIVE          1715 #define PALMAS_CLK32KG_CTRL_MODE_ACTIVE                         0x01
1701 #define PALMAS_CLK32KG_CTRL_MODE_ACTIVE_SHIFT    1716 #define PALMAS_CLK32KG_CTRL_MODE_ACTIVE_SHIFT                   0x00
1702                                                  1717 
1703 /* Bit definitions for CLK32KGAUDIO_CTRL */      1718 /* Bit definitions for CLK32KGAUDIO_CTRL */
1704 #define PALMAS_CLK32KGAUDIO_CTRL_STATUS          1719 #define PALMAS_CLK32KGAUDIO_CTRL_STATUS                         0x10
1705 #define PALMAS_CLK32KGAUDIO_CTRL_STATUS_SHIFT    1720 #define PALMAS_CLK32KGAUDIO_CTRL_STATUS_SHIFT                   0x04
1706 #define PALMAS_CLK32KGAUDIO_CTRL_RESERVED3       1721 #define PALMAS_CLK32KGAUDIO_CTRL_RESERVED3                      0x08
1707 #define PALMAS_CLK32KGAUDIO_CTRL_RESERVED3_SH    1722 #define PALMAS_CLK32KGAUDIO_CTRL_RESERVED3_SHIFT                0x03
1708 #define PALMAS_CLK32KGAUDIO_CTRL_MODE_SLEEP      1723 #define PALMAS_CLK32KGAUDIO_CTRL_MODE_SLEEP                     0x04
1709 #define PALMAS_CLK32KGAUDIO_CTRL_MODE_SLEEP_S    1724 #define PALMAS_CLK32KGAUDIO_CTRL_MODE_SLEEP_SHIFT               0x02
1710 #define PALMAS_CLK32KGAUDIO_CTRL_MODE_ACTIVE     1725 #define PALMAS_CLK32KGAUDIO_CTRL_MODE_ACTIVE                    0x01
1711 #define PALMAS_CLK32KGAUDIO_CTRL_MODE_ACTIVE_    1726 #define PALMAS_CLK32KGAUDIO_CTRL_MODE_ACTIVE_SHIFT              0x00
1712                                                  1727 
1713 /* Bit definitions for REGEN1_CTRL */            1728 /* Bit definitions for REGEN1_CTRL */
1714 #define PALMAS_REGEN1_CTRL_STATUS                1729 #define PALMAS_REGEN1_CTRL_STATUS                               0x10
1715 #define PALMAS_REGEN1_CTRL_STATUS_SHIFT          1730 #define PALMAS_REGEN1_CTRL_STATUS_SHIFT                         0x04
1716 #define PALMAS_REGEN1_CTRL_MODE_SLEEP            1731 #define PALMAS_REGEN1_CTRL_MODE_SLEEP                           0x04
1717 #define PALMAS_REGEN1_CTRL_MODE_SLEEP_SHIFT      1732 #define PALMAS_REGEN1_CTRL_MODE_SLEEP_SHIFT                     0x02
1718 #define PALMAS_REGEN1_CTRL_MODE_ACTIVE           1733 #define PALMAS_REGEN1_CTRL_MODE_ACTIVE                          0x01
1719 #define PALMAS_REGEN1_CTRL_MODE_ACTIVE_SHIFT     1734 #define PALMAS_REGEN1_CTRL_MODE_ACTIVE_SHIFT                    0x00
1720                                                  1735 
1721 /* Bit definitions for REGEN2_CTRL */            1736 /* Bit definitions for REGEN2_CTRL */
1722 #define PALMAS_REGEN2_CTRL_STATUS                1737 #define PALMAS_REGEN2_CTRL_STATUS                               0x10
1723 #define PALMAS_REGEN2_CTRL_STATUS_SHIFT          1738 #define PALMAS_REGEN2_CTRL_STATUS_SHIFT                         0x04
1724 #define PALMAS_REGEN2_CTRL_MODE_SLEEP            1739 #define PALMAS_REGEN2_CTRL_MODE_SLEEP                           0x04
1725 #define PALMAS_REGEN2_CTRL_MODE_SLEEP_SHIFT      1740 #define PALMAS_REGEN2_CTRL_MODE_SLEEP_SHIFT                     0x02
1726 #define PALMAS_REGEN2_CTRL_MODE_ACTIVE           1741 #define PALMAS_REGEN2_CTRL_MODE_ACTIVE                          0x01
1727 #define PALMAS_REGEN2_CTRL_MODE_ACTIVE_SHIFT     1742 #define PALMAS_REGEN2_CTRL_MODE_ACTIVE_SHIFT                    0x00
1728                                                  1743 
1729 /* Bit definitions for SYSEN1_CTRL */            1744 /* Bit definitions for SYSEN1_CTRL */
1730 #define PALMAS_SYSEN1_CTRL_STATUS                1745 #define PALMAS_SYSEN1_CTRL_STATUS                               0x10
1731 #define PALMAS_SYSEN1_CTRL_STATUS_SHIFT          1746 #define PALMAS_SYSEN1_CTRL_STATUS_SHIFT                         0x04
1732 #define PALMAS_SYSEN1_CTRL_MODE_SLEEP            1747 #define PALMAS_SYSEN1_CTRL_MODE_SLEEP                           0x04
1733 #define PALMAS_SYSEN1_CTRL_MODE_SLEEP_SHIFT      1748 #define PALMAS_SYSEN1_CTRL_MODE_SLEEP_SHIFT                     0x02
1734 #define PALMAS_SYSEN1_CTRL_MODE_ACTIVE           1749 #define PALMAS_SYSEN1_CTRL_MODE_ACTIVE                          0x01
1735 #define PALMAS_SYSEN1_CTRL_MODE_ACTIVE_SHIFT     1750 #define PALMAS_SYSEN1_CTRL_MODE_ACTIVE_SHIFT                    0x00
1736                                                  1751 
1737 /* Bit definitions for SYSEN2_CTRL */            1752 /* Bit definitions for SYSEN2_CTRL */
1738 #define PALMAS_SYSEN2_CTRL_STATUS                1753 #define PALMAS_SYSEN2_CTRL_STATUS                               0x10
1739 #define PALMAS_SYSEN2_CTRL_STATUS_SHIFT          1754 #define PALMAS_SYSEN2_CTRL_STATUS_SHIFT                         0x04
1740 #define PALMAS_SYSEN2_CTRL_MODE_SLEEP            1755 #define PALMAS_SYSEN2_CTRL_MODE_SLEEP                           0x04
1741 #define PALMAS_SYSEN2_CTRL_MODE_SLEEP_SHIFT      1756 #define PALMAS_SYSEN2_CTRL_MODE_SLEEP_SHIFT                     0x02
1742 #define PALMAS_SYSEN2_CTRL_MODE_ACTIVE           1757 #define PALMAS_SYSEN2_CTRL_MODE_ACTIVE                          0x01
1743 #define PALMAS_SYSEN2_CTRL_MODE_ACTIVE_SHIFT     1758 #define PALMAS_SYSEN2_CTRL_MODE_ACTIVE_SHIFT                    0x00
1744                                                  1759 
1745 /* Bit definitions for NSLEEP_RES_ASSIGN */      1760 /* Bit definitions for NSLEEP_RES_ASSIGN */
1746 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN3          1761 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN3                         0x40
1747 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN3_SHIFT    1762 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN3_SHIFT                   0x06
1748 #define PALMAS_NSLEEP_RES_ASSIGN_CLK32KGAUDIO    1763 #define PALMAS_NSLEEP_RES_ASSIGN_CLK32KGAUDIO                   0x20
1749 #define PALMAS_NSLEEP_RES_ASSIGN_CLK32KGAUDIO    1764 #define PALMAS_NSLEEP_RES_ASSIGN_CLK32KGAUDIO_SHIFT             0x05
1750 #define PALMAS_NSLEEP_RES_ASSIGN_CLK32KG         1765 #define PALMAS_NSLEEP_RES_ASSIGN_CLK32KG                        0x10
1751 #define PALMAS_NSLEEP_RES_ASSIGN_CLK32KG_SHIF    1766 #define PALMAS_NSLEEP_RES_ASSIGN_CLK32KG_SHIFT                  0x04
1752 #define PALMAS_NSLEEP_RES_ASSIGN_SYSEN2          1767 #define PALMAS_NSLEEP_RES_ASSIGN_SYSEN2                         0x08
1753 #define PALMAS_NSLEEP_RES_ASSIGN_SYSEN2_SHIFT    1768 #define PALMAS_NSLEEP_RES_ASSIGN_SYSEN2_SHIFT                   0x03
1754 #define PALMAS_NSLEEP_RES_ASSIGN_SYSEN1          1769 #define PALMAS_NSLEEP_RES_ASSIGN_SYSEN1                         0x04
1755 #define PALMAS_NSLEEP_RES_ASSIGN_SYSEN1_SHIFT    1770 #define PALMAS_NSLEEP_RES_ASSIGN_SYSEN1_SHIFT                   0x02
1756 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN2          1771 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN2                         0x02
1757 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN2_SHIFT    1772 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN2_SHIFT                   0x01
1758 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN1          1773 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN1                         0x01
1759 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN1_SHIFT    1774 #define PALMAS_NSLEEP_RES_ASSIGN_REGEN1_SHIFT                   0x00
1760                                                  1775 
1761 /* Bit definitions for NSLEEP_SMPS_ASSIGN */     1776 /* Bit definitions for NSLEEP_SMPS_ASSIGN */
1762 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS10         1777 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS10                        0x80
1763 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS10_SHIF    1778 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS10_SHIFT                  0x07
1764 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS9          1779 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS9                         0x40
1765 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS9_SHIFT    1780 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS9_SHIFT                   0x06
1766 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS8          1781 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS8                         0x20
1767 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS8_SHIFT    1782 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS8_SHIFT                   0x05
1768 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS7          1783 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS7                         0x10
1769 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS7_SHIFT    1784 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS7_SHIFT                   0x04
1770 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS6          1785 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS6                         0x08
1771 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS6_SHIFT    1786 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS6_SHIFT                   0x03
1772 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS45         1787 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS45                        0x04
1773 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS45_SHIF    1788 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS45_SHIFT                  0x02
1774 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS3          1789 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS3                         0x02
1775 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS3_SHIFT    1790 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS3_SHIFT                   0x01
1776 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS12         1791 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS12                        0x01
1777 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS12_SHIF    1792 #define PALMAS_NSLEEP_SMPS_ASSIGN_SMPS12_SHIFT                  0x00
1778                                                  1793 
1779 /* Bit definitions for NSLEEP_LDO_ASSIGN1 */     1794 /* Bit definitions for NSLEEP_LDO_ASSIGN1 */
1780 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO8           1795 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO8                          0x80
1781 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO8_SHIFT     1796 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO8_SHIFT                    0x07
1782 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO7           1797 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO7                          0x40
1783 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO7_SHIFT     1798 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO7_SHIFT                    0x06
1784 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO6           1799 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO6                          0x20
1785 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO6_SHIFT     1800 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO6_SHIFT                    0x05
1786 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO5           1801 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO5                          0x10
1787 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO5_SHIFT     1802 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO5_SHIFT                    0x04
1788 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO4           1803 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO4                          0x08
1789 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO4_SHIFT     1804 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO4_SHIFT                    0x03
1790 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO3           1805 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO3                          0x04
1791 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO3_SHIFT     1806 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO3_SHIFT                    0x02
1792 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO2           1807 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO2                          0x02
1793 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO2_SHIFT     1808 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO2_SHIFT                    0x01
1794 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO1           1809 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO1                          0x01
1795 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO1_SHIFT     1810 #define PALMAS_NSLEEP_LDO_ASSIGN1_LDO1_SHIFT                    0x00
1796                                                  1811 
1797 /* Bit definitions for NSLEEP_LDO_ASSIGN2 */     1812 /* Bit definitions for NSLEEP_LDO_ASSIGN2 */
1798 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDOUSB         1813 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDOUSB                        0x04
1799 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDOUSB_SHIF    1814 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDOUSB_SHIFT                  0x02
1800 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDOLN          1815 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDOLN                         0x02
1801 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDOLN_SHIFT    1816 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDOLN_SHIFT                   0x01
1802 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDO9           1817 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDO9                          0x01
1803 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDO9_SHIFT     1818 #define PALMAS_NSLEEP_LDO_ASSIGN2_LDO9_SHIFT                    0x00
1804                                                  1819 
1805 /* Bit definitions for ENABLE1_RES_ASSIGN */     1820 /* Bit definitions for ENABLE1_RES_ASSIGN */
1806 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN3         1821 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN3                        0x40
1807 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN3_SHIF    1822 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN3_SHIFT                  0x06
1808 #define PALMAS_ENABLE1_RES_ASSIGN_CLK32KGAUDI    1823 #define PALMAS_ENABLE1_RES_ASSIGN_CLK32KGAUDIO                  0x20
1809 #define PALMAS_ENABLE1_RES_ASSIGN_CLK32KGAUDI    1824 #define PALMAS_ENABLE1_RES_ASSIGN_CLK32KGAUDIO_SHIFT            0x05
1810 #define PALMAS_ENABLE1_RES_ASSIGN_CLK32KG        1825 #define PALMAS_ENABLE1_RES_ASSIGN_CLK32KG                       0x10
1811 #define PALMAS_ENABLE1_RES_ASSIGN_CLK32KG_SHI    1826 #define PALMAS_ENABLE1_RES_ASSIGN_CLK32KG_SHIFT                 0x04
1812 #define PALMAS_ENABLE1_RES_ASSIGN_SYSEN2         1827 #define PALMAS_ENABLE1_RES_ASSIGN_SYSEN2                        0x08
1813 #define PALMAS_ENABLE1_RES_ASSIGN_SYSEN2_SHIF    1828 #define PALMAS_ENABLE1_RES_ASSIGN_SYSEN2_SHIFT                  0x03
1814 #define PALMAS_ENABLE1_RES_ASSIGN_SYSEN1         1829 #define PALMAS_ENABLE1_RES_ASSIGN_SYSEN1                        0x04
1815 #define PALMAS_ENABLE1_RES_ASSIGN_SYSEN1_SHIF    1830 #define PALMAS_ENABLE1_RES_ASSIGN_SYSEN1_SHIFT                  0x02
1816 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN2         1831 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN2                        0x02
1817 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN2_SHIF    1832 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN2_SHIFT                  0x01
1818 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN1         1833 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN1                        0x01
1819 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN1_SHIF    1834 #define PALMAS_ENABLE1_RES_ASSIGN_REGEN1_SHIFT                  0x00
1820                                                  1835 
1821 /* Bit definitions for ENABLE1_SMPS_ASSIGN */    1836 /* Bit definitions for ENABLE1_SMPS_ASSIGN */
1822 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS10        1837 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS10                       0x80
1823 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS10_SHI    1838 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS10_SHIFT                 0x07
1824 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS9         1839 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS9                        0x40
1825 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS9_SHIF    1840 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS9_SHIFT                  0x06
1826 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS8         1841 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS8                        0x20
1827 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS8_SHIF    1842 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS8_SHIFT                  0x05
1828 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS7         1843 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS7                        0x10
1829 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS7_SHIF    1844 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS7_SHIFT                  0x04
1830 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS6         1845 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS6                        0x08
1831 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS6_SHIF    1846 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS6_SHIFT                  0x03
1832 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS45        1847 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS45                       0x04
1833 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS45_SHI    1848 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS45_SHIFT                 0x02
1834 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS3         1849 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS3                        0x02
1835 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS3_SHIF    1850 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS3_SHIFT                  0x01
1836 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS12        1851 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS12                       0x01
1837 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS12_SHI    1852 #define PALMAS_ENABLE1_SMPS_ASSIGN_SMPS12_SHIFT                 0x00
1838                                                  1853 
1839 /* Bit definitions for ENABLE1_LDO_ASSIGN1 */    1854 /* Bit definitions for ENABLE1_LDO_ASSIGN1 */
1840 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO8          1855 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO8                         0x80
1841 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO8_SHIFT    1856 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO8_SHIFT                   0x07
1842 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO7          1857 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO7                         0x40
1843 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO7_SHIFT    1858 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO7_SHIFT                   0x06
1844 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO6          1859 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO6                         0x20
1845 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO6_SHIFT    1860 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO6_SHIFT                   0x05
1846 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO5          1861 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO5                         0x10
1847 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO5_SHIFT    1862 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO5_SHIFT                   0x04
1848 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO4          1863 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO4                         0x08
1849 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO4_SHIFT    1864 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO4_SHIFT                   0x03
1850 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO3          1865 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO3                         0x04
1851 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO3_SHIFT    1866 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO3_SHIFT                   0x02
1852 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO2          1867 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO2                         0x02
1853 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO2_SHIFT    1868 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO2_SHIFT                   0x01
1854 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO1          1869 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO1                         0x01
1855 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO1_SHIFT    1870 #define PALMAS_ENABLE1_LDO_ASSIGN1_LDO1_SHIFT                   0x00
1856                                                  1871 
1857 /* Bit definitions for ENABLE1_LDO_ASSIGN2 */    1872 /* Bit definitions for ENABLE1_LDO_ASSIGN2 */
1858 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDOUSB        1873 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDOUSB                       0x04
1859 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDOUSB_SHI    1874 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDOUSB_SHIFT                 0x02
1860 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDOLN         1875 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDOLN                        0x02
1861 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDOLN_SHIF    1876 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDOLN_SHIFT                  0x01
1862 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDO9          1877 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDO9                         0x01
1863 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDO9_SHIFT    1878 #define PALMAS_ENABLE1_LDO_ASSIGN2_LDO9_SHIFT                   0x00
1864                                                  1879 
1865 /* Bit definitions for ENABLE2_RES_ASSIGN */     1880 /* Bit definitions for ENABLE2_RES_ASSIGN */
1866 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN3         1881 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN3                        0x40
1867 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN3_SHIF    1882 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN3_SHIFT                  0x06
1868 #define PALMAS_ENABLE2_RES_ASSIGN_CLK32KGAUDI    1883 #define PALMAS_ENABLE2_RES_ASSIGN_CLK32KGAUDIO                  0x20
1869 #define PALMAS_ENABLE2_RES_ASSIGN_CLK32KGAUDI    1884 #define PALMAS_ENABLE2_RES_ASSIGN_CLK32KGAUDIO_SHIFT            0x05
1870 #define PALMAS_ENABLE2_RES_ASSIGN_CLK32KG        1885 #define PALMAS_ENABLE2_RES_ASSIGN_CLK32KG                       0x10
1871 #define PALMAS_ENABLE2_RES_ASSIGN_CLK32KG_SHI    1886 #define PALMAS_ENABLE2_RES_ASSIGN_CLK32KG_SHIFT                 0x04
1872 #define PALMAS_ENABLE2_RES_ASSIGN_SYSEN2         1887 #define PALMAS_ENABLE2_RES_ASSIGN_SYSEN2                        0x08
1873 #define PALMAS_ENABLE2_RES_ASSIGN_SYSEN2_SHIF    1888 #define PALMAS_ENABLE2_RES_ASSIGN_SYSEN2_SHIFT                  0x03
1874 #define PALMAS_ENABLE2_RES_ASSIGN_SYSEN1         1889 #define PALMAS_ENABLE2_RES_ASSIGN_SYSEN1                        0x04
1875 #define PALMAS_ENABLE2_RES_ASSIGN_SYSEN1_SHIF    1890 #define PALMAS_ENABLE2_RES_ASSIGN_SYSEN1_SHIFT                  0x02
1876 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN2         1891 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN2                        0x02
1877 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN2_SHIF    1892 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN2_SHIFT                  0x01
1878 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN1         1893 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN1                        0x01
1879 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN1_SHIF    1894 #define PALMAS_ENABLE2_RES_ASSIGN_REGEN1_SHIFT                  0x00
1880                                                  1895 
1881 /* Bit definitions for ENABLE2_SMPS_ASSIGN */    1896 /* Bit definitions for ENABLE2_SMPS_ASSIGN */
1882 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS10        1897 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS10                       0x80
1883 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS10_SHI    1898 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS10_SHIFT                 0x07
1884 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS9         1899 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS9                        0x40
1885 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS9_SHIF    1900 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS9_SHIFT                  0x06
1886 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS8         1901 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS8                        0x20
1887 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS8_SHIF    1902 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS8_SHIFT                  0x05
1888 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS7         1903 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS7                        0x10
1889 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS7_SHIF    1904 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS7_SHIFT                  0x04
1890 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS6         1905 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS6                        0x08
1891 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS6_SHIF    1906 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS6_SHIFT                  0x03
1892 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS45        1907 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS45                       0x04
1893 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS45_SHI    1908 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS45_SHIFT                 0x02
1894 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS3         1909 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS3                        0x02
1895 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS3_SHIF    1910 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS3_SHIFT                  0x01
1896 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS12        1911 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS12                       0x01
1897 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS12_SHI    1912 #define PALMAS_ENABLE2_SMPS_ASSIGN_SMPS12_SHIFT                 0x00
1898                                                  1913 
1899 /* Bit definitions for ENABLE2_LDO_ASSIGN1 */    1914 /* Bit definitions for ENABLE2_LDO_ASSIGN1 */
1900 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO8          1915 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO8                         0x80
1901 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO8_SHIFT    1916 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO8_SHIFT                   0x07
1902 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO7          1917 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO7                         0x40
1903 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO7_SHIFT    1918 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO7_SHIFT                   0x06
1904 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO6          1919 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO6                         0x20
1905 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO6_SHIFT    1920 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO6_SHIFT                   0x05
1906 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO5          1921 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO5                         0x10
1907 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO5_SHIFT    1922 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO5_SHIFT                   0x04
1908 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO4          1923 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO4                         0x08
1909 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO4_SHIFT    1924 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO4_SHIFT                   0x03
1910 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO3          1925 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO3                         0x04
1911 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO3_SHIFT    1926 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO3_SHIFT                   0x02
1912 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO2          1927 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO2                         0x02
1913 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO2_SHIFT    1928 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO2_SHIFT                   0x01
1914 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO1          1929 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO1                         0x01
1915 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO1_SHIFT    1930 #define PALMAS_ENABLE2_LDO_ASSIGN1_LDO1_SHIFT                   0x00
1916                                                  1931 
1917 /* Bit definitions for ENABLE2_LDO_ASSIGN2 */    1932 /* Bit definitions for ENABLE2_LDO_ASSIGN2 */
1918 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDOUSB        1933 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDOUSB                       0x04
1919 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDOUSB_SHI    1934 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDOUSB_SHIFT                 0x02
1920 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDOLN         1935 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDOLN                        0x02
1921 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDOLN_SHIF    1936 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDOLN_SHIFT                  0x01
1922 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDO9          1937 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDO9                         0x01
1923 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDO9_SHIFT    1938 #define PALMAS_ENABLE2_LDO_ASSIGN2_LDO9_SHIFT                   0x00
1924                                                  1939 
1925 /* Bit definitions for REGEN3_CTRL */            1940 /* Bit definitions for REGEN3_CTRL */
1926 #define PALMAS_REGEN3_CTRL_STATUS                1941 #define PALMAS_REGEN3_CTRL_STATUS                               0x10
1927 #define PALMAS_REGEN3_CTRL_STATUS_SHIFT          1942 #define PALMAS_REGEN3_CTRL_STATUS_SHIFT                         0x04
1928 #define PALMAS_REGEN3_CTRL_MODE_SLEEP            1943 #define PALMAS_REGEN3_CTRL_MODE_SLEEP                           0x04
1929 #define PALMAS_REGEN3_CTRL_MODE_SLEEP_SHIFT      1944 #define PALMAS_REGEN3_CTRL_MODE_SLEEP_SHIFT                     0x02
1930 #define PALMAS_REGEN3_CTRL_MODE_ACTIVE           1945 #define PALMAS_REGEN3_CTRL_MODE_ACTIVE                          0x01
1931 #define PALMAS_REGEN3_CTRL_MODE_ACTIVE_SHIFT     1946 #define PALMAS_REGEN3_CTRL_MODE_ACTIVE_SHIFT                    0x00
1932                                                  1947 
1933 /* Registers for function PAD_CONTROL */         1948 /* Registers for function PAD_CONTROL */
1934 #define PALMAS_OD_OUTPUT_CTRL2                   1949 #define PALMAS_OD_OUTPUT_CTRL2                                  0x02
1935 #define PALMAS_POLARITY_CTRL2                    1950 #define PALMAS_POLARITY_CTRL2                                   0x03
1936 #define PALMAS_PU_PD_INPUT_CTRL1                 1951 #define PALMAS_PU_PD_INPUT_CTRL1                                0x04
1937 #define PALMAS_PU_PD_INPUT_CTRL2                 1952 #define PALMAS_PU_PD_INPUT_CTRL2                                0x05
1938 #define PALMAS_PU_PD_INPUT_CTRL3                 1953 #define PALMAS_PU_PD_INPUT_CTRL3                                0x06
1939 #define PALMAS_PU_PD_INPUT_CTRL5                 1954 #define PALMAS_PU_PD_INPUT_CTRL5                                0x07
1940 #define PALMAS_OD_OUTPUT_CTRL                    1955 #define PALMAS_OD_OUTPUT_CTRL                                   0x08
1941 #define PALMAS_POLARITY_CTRL                     1956 #define PALMAS_POLARITY_CTRL                                    0x09
1942 #define PALMAS_PRIMARY_SECONDARY_PAD1            1957 #define PALMAS_PRIMARY_SECONDARY_PAD1                           0x0A
1943 #define PALMAS_PRIMARY_SECONDARY_PAD2            1958 #define PALMAS_PRIMARY_SECONDARY_PAD2                           0x0B
1944 #define PALMAS_I2C_SPI                           1959 #define PALMAS_I2C_SPI                                          0x0C
1945 #define PALMAS_PU_PD_INPUT_CTRL4                 1960 #define PALMAS_PU_PD_INPUT_CTRL4                                0x0D
1946 #define PALMAS_PRIMARY_SECONDARY_PAD3            1961 #define PALMAS_PRIMARY_SECONDARY_PAD3                           0x0E
1947 #define PALMAS_PRIMARY_SECONDARY_PAD4            1962 #define PALMAS_PRIMARY_SECONDARY_PAD4                           0x0F
1948                                                  1963 
1949 /* Bit definitions for PU_PD_INPUT_CTRL1 */      1964 /* Bit definitions for PU_PD_INPUT_CTRL1 */
1950 #define PALMAS_PU_PD_INPUT_CTRL1_RESET_IN_PD     1965 #define PALMAS_PU_PD_INPUT_CTRL1_RESET_IN_PD                    0x40
1951 #define PALMAS_PU_PD_INPUT_CTRL1_RESET_IN_PD_    1966 #define PALMAS_PU_PD_INPUT_CTRL1_RESET_IN_PD_SHIFT              0x06
1952 #define PALMAS_PU_PD_INPUT_CTRL1_GPADC_START_    1967 #define PALMAS_PU_PD_INPUT_CTRL1_GPADC_START_PU                 0x20
1953 #define PALMAS_PU_PD_INPUT_CTRL1_GPADC_START_    1968 #define PALMAS_PU_PD_INPUT_CTRL1_GPADC_START_PU_SHIFT           0x05
1954 #define PALMAS_PU_PD_INPUT_CTRL1_GPADC_START_    1969 #define PALMAS_PU_PD_INPUT_CTRL1_GPADC_START_PD                 0x10
1955 #define PALMAS_PU_PD_INPUT_CTRL1_GPADC_START_    1970 #define PALMAS_PU_PD_INPUT_CTRL1_GPADC_START_PD_SHIFT           0x04
1956 #define PALMAS_PU_PD_INPUT_CTRL1_PWRDOWN_PD      1971 #define PALMAS_PU_PD_INPUT_CTRL1_PWRDOWN_PD                     0x04
1957 #define PALMAS_PU_PD_INPUT_CTRL1_PWRDOWN_PD_S    1972 #define PALMAS_PU_PD_INPUT_CTRL1_PWRDOWN_PD_SHIFT               0x02
1958 #define PALMAS_PU_PD_INPUT_CTRL1_NRESWARM_PU     1973 #define PALMAS_PU_PD_INPUT_CTRL1_NRESWARM_PU                    0x02
1959 #define PALMAS_PU_PD_INPUT_CTRL1_NRESWARM_PU_    1974 #define PALMAS_PU_PD_INPUT_CTRL1_NRESWARM_PU_SHIFT              0x01
1960                                                  1975 
1961 /* Bit definitions for PU_PD_INPUT_CTRL2 */      1976 /* Bit definitions for PU_PD_INPUT_CTRL2 */
1962 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE2_PU      1977 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE2_PU                     0x20
1963 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE2_PU_S    1978 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE2_PU_SHIFT               0x05
1964 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE2_PD      1979 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE2_PD                     0x10
1965 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE2_PD_S    1980 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE2_PD_SHIFT               0x04
1966 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE1_PU      1981 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE1_PU                     0x08
1967 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE1_PU_S    1982 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE1_PU_SHIFT               0x03
1968 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE1_PD      1983 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE1_PD                     0x04
1969 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE1_PD_S    1984 #define PALMAS_PU_PD_INPUT_CTRL2_ENABLE1_PD_SHIFT               0x02
1970 #define PALMAS_PU_PD_INPUT_CTRL2_NSLEEP_PU       1985 #define PALMAS_PU_PD_INPUT_CTRL2_NSLEEP_PU                      0x02
1971 #define PALMAS_PU_PD_INPUT_CTRL2_NSLEEP_PU_SH    1986 #define PALMAS_PU_PD_INPUT_CTRL2_NSLEEP_PU_SHIFT                0x01
1972 #define PALMAS_PU_PD_INPUT_CTRL2_NSLEEP_PD       1987 #define PALMAS_PU_PD_INPUT_CTRL2_NSLEEP_PD                      0x01
1973 #define PALMAS_PU_PD_INPUT_CTRL2_NSLEEP_PD_SH    1988 #define PALMAS_PU_PD_INPUT_CTRL2_NSLEEP_PD_SHIFT                0x00
1974                                                  1989 
1975 /* Bit definitions for PU_PD_INPUT_CTRL3 */      1990 /* Bit definitions for PU_PD_INPUT_CTRL3 */
1976 #define PALMAS_PU_PD_INPUT_CTRL3_ACOK_PD         1991 #define PALMAS_PU_PD_INPUT_CTRL3_ACOK_PD                        0x40
1977 #define PALMAS_PU_PD_INPUT_CTRL3_ACOK_PD_SHIF    1992 #define PALMAS_PU_PD_INPUT_CTRL3_ACOK_PD_SHIFT                  0x06
1978 #define PALMAS_PU_PD_INPUT_CTRL3_CHRG_DET_N_P    1993 #define PALMAS_PU_PD_INPUT_CTRL3_CHRG_DET_N_PD                  0x10
1979 #define PALMAS_PU_PD_INPUT_CTRL3_CHRG_DET_N_P    1994 #define PALMAS_PU_PD_INPUT_CTRL3_CHRG_DET_N_PD_SHIFT            0x04
1980 #define PALMAS_PU_PD_INPUT_CTRL3_POWERHOLD_PD    1995 #define PALMAS_PU_PD_INPUT_CTRL3_POWERHOLD_PD                   0x04
1981 #define PALMAS_PU_PD_INPUT_CTRL3_POWERHOLD_PD    1996 #define PALMAS_PU_PD_INPUT_CTRL3_POWERHOLD_PD_SHIFT             0x02
1982 #define PALMAS_PU_PD_INPUT_CTRL3_MSECURE_PD      1997 #define PALMAS_PU_PD_INPUT_CTRL3_MSECURE_PD                     0x01
1983 #define PALMAS_PU_PD_INPUT_CTRL3_MSECURE_PD_S    1998 #define PALMAS_PU_PD_INPUT_CTRL3_MSECURE_PD_SHIFT               0x00
1984                                                  1999 
1985 /* Bit definitions for OD_OUTPUT_CTRL */         2000 /* Bit definitions for OD_OUTPUT_CTRL */
1986 #define PALMAS_OD_OUTPUT_CTRL_PWM_2_OD           2001 #define PALMAS_OD_OUTPUT_CTRL_PWM_2_OD                          0x80
1987 #define PALMAS_OD_OUTPUT_CTRL_PWM_2_OD_SHIFT     2002 #define PALMAS_OD_OUTPUT_CTRL_PWM_2_OD_SHIFT                    0x07
1988 #define PALMAS_OD_OUTPUT_CTRL_VBUSDET_OD         2003 #define PALMAS_OD_OUTPUT_CTRL_VBUSDET_OD                        0x40
1989 #define PALMAS_OD_OUTPUT_CTRL_VBUSDET_OD_SHIF    2004 #define PALMAS_OD_OUTPUT_CTRL_VBUSDET_OD_SHIFT                  0x06
1990 #define PALMAS_OD_OUTPUT_CTRL_PWM_1_OD           2005 #define PALMAS_OD_OUTPUT_CTRL_PWM_1_OD                          0x20
1991 #define PALMAS_OD_OUTPUT_CTRL_PWM_1_OD_SHIFT     2006 #define PALMAS_OD_OUTPUT_CTRL_PWM_1_OD_SHIFT                    0x05
1992 #define PALMAS_OD_OUTPUT_CTRL_INT_OD             2007 #define PALMAS_OD_OUTPUT_CTRL_INT_OD                            0x08
1993 #define PALMAS_OD_OUTPUT_CTRL_INT_OD_SHIFT       2008 #define PALMAS_OD_OUTPUT_CTRL_INT_OD_SHIFT                      0x03
1994                                                  2009 
1995 /* Bit definitions for POLARITY_CTRL */          2010 /* Bit definitions for POLARITY_CTRL */
1996 #define PALMAS_POLARITY_CTRL_INT_POLARITY        2011 #define PALMAS_POLARITY_CTRL_INT_POLARITY                       0x80
1997 #define PALMAS_POLARITY_CTRL_INT_POLARITY_SHI    2012 #define PALMAS_POLARITY_CTRL_INT_POLARITY_SHIFT                 0x07
1998 #define PALMAS_POLARITY_CTRL_ENABLE2_POLARITY    2013 #define PALMAS_POLARITY_CTRL_ENABLE2_POLARITY                   0x40
1999 #define PALMAS_POLARITY_CTRL_ENABLE2_POLARITY    2014 #define PALMAS_POLARITY_CTRL_ENABLE2_POLARITY_SHIFT             0x06
2000 #define PALMAS_POLARITY_CTRL_ENABLE1_POLARITY    2015 #define PALMAS_POLARITY_CTRL_ENABLE1_POLARITY                   0x20
2001 #define PALMAS_POLARITY_CTRL_ENABLE1_POLARITY    2016 #define PALMAS_POLARITY_CTRL_ENABLE1_POLARITY_SHIFT             0x05
2002 #define PALMAS_POLARITY_CTRL_NSLEEP_POLARITY     2017 #define PALMAS_POLARITY_CTRL_NSLEEP_POLARITY                    0x10
2003 #define PALMAS_POLARITY_CTRL_NSLEEP_POLARITY_    2018 #define PALMAS_POLARITY_CTRL_NSLEEP_POLARITY_SHIFT              0x04
2004 #define PALMAS_POLARITY_CTRL_RESET_IN_POLARIT    2019 #define PALMAS_POLARITY_CTRL_RESET_IN_POLARITY                  0x08
2005 #define PALMAS_POLARITY_CTRL_RESET_IN_POLARIT    2020 #define PALMAS_POLARITY_CTRL_RESET_IN_POLARITY_SHIFT            0x03
2006 #define PALMAS_POLARITY_CTRL_GPIO_3_CHRG_DET_    2021 #define PALMAS_POLARITY_CTRL_GPIO_3_CHRG_DET_N_POLARITY         0x04
2007 #define PALMAS_POLARITY_CTRL_GPIO_3_CHRG_DET_    2022 #define PALMAS_POLARITY_CTRL_GPIO_3_CHRG_DET_N_POLARITY_SHIFT   0x02
2008 #define PALMAS_POLARITY_CTRL_POWERGOOD_USB_PS    2023 #define PALMAS_POLARITY_CTRL_POWERGOOD_USB_PSEL_POLARITY        0x02
2009 #define PALMAS_POLARITY_CTRL_POWERGOOD_USB_PS    2024 #define PALMAS_POLARITY_CTRL_POWERGOOD_USB_PSEL_POLARITY_SHIFT  0x01
2010 #define PALMAS_POLARITY_CTRL_PWRDOWN_POLARITY    2025 #define PALMAS_POLARITY_CTRL_PWRDOWN_POLARITY                   0x01
2011 #define PALMAS_POLARITY_CTRL_PWRDOWN_POLARITY    2026 #define PALMAS_POLARITY_CTRL_PWRDOWN_POLARITY_SHIFT             0x00
2012                                                  2027 
2013 /* Bit definitions for PRIMARY_SECONDARY_PAD1    2028 /* Bit definitions for PRIMARY_SECONDARY_PAD1 */
2014 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3     2029 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3                    0x80
2015 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3_    2030 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_3_SHIFT              0x07
2016 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_    2031 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_MASK               0x60
2017 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_    2032 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_2_SHIFT              0x05
2018 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_    2033 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_MASK               0x18
2019 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_    2034 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_1_SHIFT              0x03
2020 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0     2035 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0                    0x04
2021 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0_    2036 #define PALMAS_PRIMARY_SECONDARY_PAD1_GPIO_0_SHIFT              0x02
2022 #define PALMAS_PRIMARY_SECONDARY_PAD1_VAC        2037 #define PALMAS_PRIMARY_SECONDARY_PAD1_VAC                       0x02
2023 #define PALMAS_PRIMARY_SECONDARY_PAD1_VAC_SHI    2038 #define PALMAS_PRIMARY_SECONDARY_PAD1_VAC_SHIFT                 0x01
2024 #define PALMAS_PRIMARY_SECONDARY_PAD1_POWERGO    2039 #define PALMAS_PRIMARY_SECONDARY_PAD1_POWERGOOD                 0x01
2025 #define PALMAS_PRIMARY_SECONDARY_PAD1_POWERGO    2040 #define PALMAS_PRIMARY_SECONDARY_PAD1_POWERGOOD_SHIFT           0x00
2026                                                  2041 
2027 /* Bit definitions for PRIMARY_SECONDARY_PAD2    2042 /* Bit definitions for PRIMARY_SECONDARY_PAD2 */
2028 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_    2043 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_MASK               0x30
2029 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_    2044 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_SHIFT              0x04
2030 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6     2045 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6                    0x08
2031 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6_    2046 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_6_SHIFT              0x03
2032 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_    2047 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK               0x06
2033 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_    2048 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_5_SHIFT              0x01
2034 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4     2049 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4                    0x01
2035 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4_    2050 #define PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_4_SHIFT              0x00
2036                                                  2051 
2037 /* Bit definitions for I2C_SPI */                2052 /* Bit definitions for I2C_SPI */
2038 #define PALMAS_I2C_SPI_I2C2OTP_EN                2053 #define PALMAS_I2C_SPI_I2C2OTP_EN                               0x80
2039 #define PALMAS_I2C_SPI_I2C2OTP_EN_SHIFT          2054 #define PALMAS_I2C_SPI_I2C2OTP_EN_SHIFT                         0x07
2040 #define PALMAS_I2C_SPI_I2C2OTP_PAGESEL           2055 #define PALMAS_I2C_SPI_I2C2OTP_PAGESEL                          0x40
2041 #define PALMAS_I2C_SPI_I2C2OTP_PAGESEL_SHIFT     2056 #define PALMAS_I2C_SPI_I2C2OTP_PAGESEL_SHIFT                    0x06
2042 #define PALMAS_I2C_SPI_ID_I2C2                   2057 #define PALMAS_I2C_SPI_ID_I2C2                                  0x20
2043 #define PALMAS_I2C_SPI_ID_I2C2_SHIFT             2058 #define PALMAS_I2C_SPI_ID_I2C2_SHIFT                            0x05
2044 #define PALMAS_I2C_SPI_I2C_SPI                   2059 #define PALMAS_I2C_SPI_I2C_SPI                                  0x10
2045 #define PALMAS_I2C_SPI_I2C_SPI_SHIFT             2060 #define PALMAS_I2C_SPI_I2C_SPI_SHIFT                            0x04
2046 #define PALMAS_I2C_SPI_ID_I2C1_MASK              2061 #define PALMAS_I2C_SPI_ID_I2C1_MASK                             0x0F
2047 #define PALMAS_I2C_SPI_ID_I2C1_SHIFT             2062 #define PALMAS_I2C_SPI_ID_I2C1_SHIFT                            0x00
2048                                                  2063 
2049 /* Bit definitions for PU_PD_INPUT_CTRL4 */      2064 /* Bit definitions for PU_PD_INPUT_CTRL4 */
2050 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS2_DAT_PD    2065 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS2_DAT_PD                   0x40
2051 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS2_DAT_PD    2066 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS2_DAT_PD_SHIFT             0x06
2052 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS2_CLK_PD    2067 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS2_CLK_PD                   0x10
2053 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS2_CLK_PD    2068 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS2_CLK_PD_SHIFT             0x04
2054 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS1_DAT_PD    2069 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS1_DAT_PD                   0x04
2055 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS1_DAT_PD    2070 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS1_DAT_PD_SHIFT             0x02
2056 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS1_CLK_PD    2071 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS1_CLK_PD                   0x01
2057 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS1_CLK_PD    2072 #define PALMAS_PU_PD_INPUT_CTRL4_DVFS1_CLK_PD_SHIFT             0x00
2058                                                  2073 
2059 /* Bit definitions for PRIMARY_SECONDARY_PAD3    2074 /* Bit definitions for PRIMARY_SECONDARY_PAD3 */
2060 #define PALMAS_PRIMARY_SECONDARY_PAD3_DVFS2      2075 #define PALMAS_PRIMARY_SECONDARY_PAD3_DVFS2                     0x02
2061 #define PALMAS_PRIMARY_SECONDARY_PAD3_DVFS2_S    2076 #define PALMAS_PRIMARY_SECONDARY_PAD3_DVFS2_SHIFT               0x01
2062 #define PALMAS_PRIMARY_SECONDARY_PAD3_DVFS1      2077 #define PALMAS_PRIMARY_SECONDARY_PAD3_DVFS1                     0x01
2063 #define PALMAS_PRIMARY_SECONDARY_PAD3_DVFS1_S    2078 #define PALMAS_PRIMARY_SECONDARY_PAD3_DVFS1_SHIFT               0x00
2064                                                  2079 
2065 /* Registers for function LED_PWM */             2080 /* Registers for function LED_PWM */
2066 #define PALMAS_LED_PERIOD_CTRL                   2081 #define PALMAS_LED_PERIOD_CTRL                                  0x00
2067 #define PALMAS_LED_CTRL                          2082 #define PALMAS_LED_CTRL                                         0x01
2068 #define PALMAS_PWM_CTRL1                         2083 #define PALMAS_PWM_CTRL1                                        0x02
2069 #define PALMAS_PWM_CTRL2                         2084 #define PALMAS_PWM_CTRL2                                        0x03
2070                                                  2085 
2071 /* Bit definitions for LED_PERIOD_CTRL */        2086 /* Bit definitions for LED_PERIOD_CTRL */
2072 #define PALMAS_LED_PERIOD_CTRL_LED_2_PERIOD_M    2087 #define PALMAS_LED_PERIOD_CTRL_LED_2_PERIOD_MASK                0x38
2073 #define PALMAS_LED_PERIOD_CTRL_LED_2_PERIOD_S    2088 #define PALMAS_LED_PERIOD_CTRL_LED_2_PERIOD_SHIFT               0x03
2074 #define PALMAS_LED_PERIOD_CTRL_LED_1_PERIOD_M    2089 #define PALMAS_LED_PERIOD_CTRL_LED_1_PERIOD_MASK                0x07
2075 #define PALMAS_LED_PERIOD_CTRL_LED_1_PERIOD_S    2090 #define PALMAS_LED_PERIOD_CTRL_LED_1_PERIOD_SHIFT               0x00
2076                                                  2091 
2077 /* Bit definitions for LED_CTRL */               2092 /* Bit definitions for LED_CTRL */
2078 #define PALMAS_LED_CTRL_LED_2_SEQ                2093 #define PALMAS_LED_CTRL_LED_2_SEQ                               0x20
2079 #define PALMAS_LED_CTRL_LED_2_SEQ_SHIFT          2094 #define PALMAS_LED_CTRL_LED_2_SEQ_SHIFT                         0x05
2080 #define PALMAS_LED_CTRL_LED_1_SEQ                2095 #define PALMAS_LED_CTRL_LED_1_SEQ                               0x10
2081 #define PALMAS_LED_CTRL_LED_1_SEQ_SHIFT          2096 #define PALMAS_LED_CTRL_LED_1_SEQ_SHIFT                         0x04
2082 #define PALMAS_LED_CTRL_LED_2_ON_TIME_MASK       2097 #define PALMAS_LED_CTRL_LED_2_ON_TIME_MASK                      0x0c
2083 #define PALMAS_LED_CTRL_LED_2_ON_TIME_SHIFT      2098 #define PALMAS_LED_CTRL_LED_2_ON_TIME_SHIFT                     0x02
2084 #define PALMAS_LED_CTRL_LED_1_ON_TIME_MASK       2099 #define PALMAS_LED_CTRL_LED_1_ON_TIME_MASK                      0x03
2085 #define PALMAS_LED_CTRL_LED_1_ON_TIME_SHIFT      2100 #define PALMAS_LED_CTRL_LED_1_ON_TIME_SHIFT                     0x00
2086                                                  2101 
2087 /* Bit definitions for PWM_CTRL1 */              2102 /* Bit definitions for PWM_CTRL1 */
2088 #define PALMAS_PWM_CTRL1_PWM_FREQ_EN             2103 #define PALMAS_PWM_CTRL1_PWM_FREQ_EN                            0x02
2089 #define PALMAS_PWM_CTRL1_PWM_FREQ_EN_SHIFT       2104 #define PALMAS_PWM_CTRL1_PWM_FREQ_EN_SHIFT                      0x01
2090 #define PALMAS_PWM_CTRL1_PWM_FREQ_SEL            2105 #define PALMAS_PWM_CTRL1_PWM_FREQ_SEL                           0x01
2091 #define PALMAS_PWM_CTRL1_PWM_FREQ_SEL_SHIFT      2106 #define PALMAS_PWM_CTRL1_PWM_FREQ_SEL_SHIFT                     0x00
2092                                                  2107 
2093 /* Bit definitions for PWM_CTRL2 */              2108 /* Bit definitions for PWM_CTRL2 */
2094 #define PALMAS_PWM_CTRL2_PWM_DUTY_SEL_MASK       2109 #define PALMAS_PWM_CTRL2_PWM_DUTY_SEL_MASK                      0xFF
2095 #define PALMAS_PWM_CTRL2_PWM_DUTY_SEL_SHIFT      2110 #define PALMAS_PWM_CTRL2_PWM_DUTY_SEL_SHIFT                     0x00
2096                                                  2111 
2097 /* Registers for function INTERRUPT */           2112 /* Registers for function INTERRUPT */
2098 #define PALMAS_INT1_STATUS                       2113 #define PALMAS_INT1_STATUS                                      0x00
2099 #define PALMAS_INT1_MASK                         2114 #define PALMAS_INT1_MASK                                        0x01
2100 #define PALMAS_INT1_LINE_STATE                   2115 #define PALMAS_INT1_LINE_STATE                                  0x02
2101 #define PALMAS_INT1_EDGE_DETECT1_RESERVED        2116 #define PALMAS_INT1_EDGE_DETECT1_RESERVED                       0x03
2102 #define PALMAS_INT1_EDGE_DETECT2_RESERVED        2117 #define PALMAS_INT1_EDGE_DETECT2_RESERVED                       0x04
2103 #define PALMAS_INT2_STATUS                       2118 #define PALMAS_INT2_STATUS                                      0x05
2104 #define PALMAS_INT2_MASK                         2119 #define PALMAS_INT2_MASK                                        0x06
2105 #define PALMAS_INT2_LINE_STATE                   2120 #define PALMAS_INT2_LINE_STATE                                  0x07
2106 #define PALMAS_INT2_EDGE_DETECT1_RESERVED        2121 #define PALMAS_INT2_EDGE_DETECT1_RESERVED                       0x08
2107 #define PALMAS_INT2_EDGE_DETECT2_RESERVED        2122 #define PALMAS_INT2_EDGE_DETECT2_RESERVED                       0x09
2108 #define PALMAS_INT3_STATUS                       2123 #define PALMAS_INT3_STATUS                                      0x0A
2109 #define PALMAS_INT3_MASK                         2124 #define PALMAS_INT3_MASK                                        0x0B
2110 #define PALMAS_INT3_LINE_STATE                   2125 #define PALMAS_INT3_LINE_STATE                                  0x0C
2111 #define PALMAS_INT3_EDGE_DETECT1_RESERVED        2126 #define PALMAS_INT3_EDGE_DETECT1_RESERVED                       0x0D
2112 #define PALMAS_INT3_EDGE_DETECT2_RESERVED        2127 #define PALMAS_INT3_EDGE_DETECT2_RESERVED                       0x0E
2113 #define PALMAS_INT4_STATUS                       2128 #define PALMAS_INT4_STATUS                                      0x0F
2114 #define PALMAS_INT4_MASK                         2129 #define PALMAS_INT4_MASK                                        0x10
2115 #define PALMAS_INT4_LINE_STATE                   2130 #define PALMAS_INT4_LINE_STATE                                  0x11
2116 #define PALMAS_INT4_EDGE_DETECT1                 2131 #define PALMAS_INT4_EDGE_DETECT1                                0x12
2117 #define PALMAS_INT4_EDGE_DETECT2                 2132 #define PALMAS_INT4_EDGE_DETECT2                                0x13
2118 #define PALMAS_INT_CTRL                          2133 #define PALMAS_INT_CTRL                                         0x14
2119                                                  2134 
2120 /* Bit definitions for INT1_STATUS */            2135 /* Bit definitions for INT1_STATUS */
2121 #define PALMAS_INT1_STATUS_VBAT_MON              2136 #define PALMAS_INT1_STATUS_VBAT_MON                             0x80
2122 #define PALMAS_INT1_STATUS_VBAT_MON_SHIFT        2137 #define PALMAS_INT1_STATUS_VBAT_MON_SHIFT                       0x07
2123 #define PALMAS_INT1_STATUS_VSYS_MON              2138 #define PALMAS_INT1_STATUS_VSYS_MON                             0x40
2124 #define PALMAS_INT1_STATUS_VSYS_MON_SHIFT        2139 #define PALMAS_INT1_STATUS_VSYS_MON_SHIFT                       0x06
2125 #define PALMAS_INT1_STATUS_HOTDIE                2140 #define PALMAS_INT1_STATUS_HOTDIE                               0x20
2126 #define PALMAS_INT1_STATUS_HOTDIE_SHIFT          2141 #define PALMAS_INT1_STATUS_HOTDIE_SHIFT                         0x05
2127 #define PALMAS_INT1_STATUS_PWRDOWN               2142 #define PALMAS_INT1_STATUS_PWRDOWN                              0x10
2128 #define PALMAS_INT1_STATUS_PWRDOWN_SHIFT         2143 #define PALMAS_INT1_STATUS_PWRDOWN_SHIFT                        0x04
2129 #define PALMAS_INT1_STATUS_RPWRON                2144 #define PALMAS_INT1_STATUS_RPWRON                               0x08
2130 #define PALMAS_INT1_STATUS_RPWRON_SHIFT          2145 #define PALMAS_INT1_STATUS_RPWRON_SHIFT                         0x03
2131 #define PALMAS_INT1_STATUS_LONG_PRESS_KEY        2146 #define PALMAS_INT1_STATUS_LONG_PRESS_KEY                       0x04
2132 #define PALMAS_INT1_STATUS_LONG_PRESS_KEY_SHI    2147 #define PALMAS_INT1_STATUS_LONG_PRESS_KEY_SHIFT                 0x02
2133 #define PALMAS_INT1_STATUS_PWRON                 2148 #define PALMAS_INT1_STATUS_PWRON                                0x02
2134 #define PALMAS_INT1_STATUS_PWRON_SHIFT           2149 #define PALMAS_INT1_STATUS_PWRON_SHIFT                          0x01
2135 #define PALMAS_INT1_STATUS_CHARG_DET_N_VBUS_O    2150 #define PALMAS_INT1_STATUS_CHARG_DET_N_VBUS_OVV                 0x01
2136 #define PALMAS_INT1_STATUS_CHARG_DET_N_VBUS_O    2151 #define PALMAS_INT1_STATUS_CHARG_DET_N_VBUS_OVV_SHIFT           0x00
2137                                                  2152 
2138 /* Bit definitions for INT1_MASK */              2153 /* Bit definitions for INT1_MASK */
2139 #define PALMAS_INT1_MASK_VBAT_MON                2154 #define PALMAS_INT1_MASK_VBAT_MON                               0x80
2140 #define PALMAS_INT1_MASK_VBAT_MON_SHIFT          2155 #define PALMAS_INT1_MASK_VBAT_MON_SHIFT                         0x07
2141 #define PALMAS_INT1_MASK_VSYS_MON                2156 #define PALMAS_INT1_MASK_VSYS_MON                               0x40
2142 #define PALMAS_INT1_MASK_VSYS_MON_SHIFT          2157 #define PALMAS_INT1_MASK_VSYS_MON_SHIFT                         0x06
2143 #define PALMAS_INT1_MASK_HOTDIE                  2158 #define PALMAS_INT1_MASK_HOTDIE                                 0x20
2144 #define PALMAS_INT1_MASK_HOTDIE_SHIFT            2159 #define PALMAS_INT1_MASK_HOTDIE_SHIFT                           0x05
2145 #define PALMAS_INT1_MASK_PWRDOWN                 2160 #define PALMAS_INT1_MASK_PWRDOWN                                0x10
2146 #define PALMAS_INT1_MASK_PWRDOWN_SHIFT           2161 #define PALMAS_INT1_MASK_PWRDOWN_SHIFT                          0x04
2147 #define PALMAS_INT1_MASK_RPWRON                  2162 #define PALMAS_INT1_MASK_RPWRON                                 0x08
2148 #define PALMAS_INT1_MASK_RPWRON_SHIFT            2163 #define PALMAS_INT1_MASK_RPWRON_SHIFT                           0x03
2149 #define PALMAS_INT1_MASK_LONG_PRESS_KEY          2164 #define PALMAS_INT1_MASK_LONG_PRESS_KEY                         0x04
2150 #define PALMAS_INT1_MASK_LONG_PRESS_KEY_SHIFT    2165 #define PALMAS_INT1_MASK_LONG_PRESS_KEY_SHIFT                   0x02
2151 #define PALMAS_INT1_MASK_PWRON                   2166 #define PALMAS_INT1_MASK_PWRON                                  0x02
2152 #define PALMAS_INT1_MASK_PWRON_SHIFT             2167 #define PALMAS_INT1_MASK_PWRON_SHIFT                            0x01
2153 #define PALMAS_INT1_MASK_CHARG_DET_N_VBUS_OVV    2168 #define PALMAS_INT1_MASK_CHARG_DET_N_VBUS_OVV                   0x01
2154 #define PALMAS_INT1_MASK_CHARG_DET_N_VBUS_OVV    2169 #define PALMAS_INT1_MASK_CHARG_DET_N_VBUS_OVV_SHIFT             0x00
2155                                                  2170 
2156 /* Bit definitions for INT1_LINE_STATE */        2171 /* Bit definitions for INT1_LINE_STATE */
2157 #define PALMAS_INT1_LINE_STATE_VBAT_MON          2172 #define PALMAS_INT1_LINE_STATE_VBAT_MON                         0x80
2158 #define PALMAS_INT1_LINE_STATE_VBAT_MON_SHIFT    2173 #define PALMAS_INT1_LINE_STATE_VBAT_MON_SHIFT                   0x07
2159 #define PALMAS_INT1_LINE_STATE_VSYS_MON          2174 #define PALMAS_INT1_LINE_STATE_VSYS_MON                         0x40
2160 #define PALMAS_INT1_LINE_STATE_VSYS_MON_SHIFT    2175 #define PALMAS_INT1_LINE_STATE_VSYS_MON_SHIFT                   0x06
2161 #define PALMAS_INT1_LINE_STATE_HOTDIE            2176 #define PALMAS_INT1_LINE_STATE_HOTDIE                           0x20
2162 #define PALMAS_INT1_LINE_STATE_HOTDIE_SHIFT      2177 #define PALMAS_INT1_LINE_STATE_HOTDIE_SHIFT                     0x05
2163 #define PALMAS_INT1_LINE_STATE_PWRDOWN           2178 #define PALMAS_INT1_LINE_STATE_PWRDOWN                          0x10
2164 #define PALMAS_INT1_LINE_STATE_PWRDOWN_SHIFT     2179 #define PALMAS_INT1_LINE_STATE_PWRDOWN_SHIFT                    0x04
2165 #define PALMAS_INT1_LINE_STATE_RPWRON            2180 #define PALMAS_INT1_LINE_STATE_RPWRON                           0x08
2166 #define PALMAS_INT1_LINE_STATE_RPWRON_SHIFT      2181 #define PALMAS_INT1_LINE_STATE_RPWRON_SHIFT                     0x03
2167 #define PALMAS_INT1_LINE_STATE_LONG_PRESS_KEY    2182 #define PALMAS_INT1_LINE_STATE_LONG_PRESS_KEY                   0x04
2168 #define PALMAS_INT1_LINE_STATE_LONG_PRESS_KEY    2183 #define PALMAS_INT1_LINE_STATE_LONG_PRESS_KEY_SHIFT             0x02
2169 #define PALMAS_INT1_LINE_STATE_PWRON             2184 #define PALMAS_INT1_LINE_STATE_PWRON                            0x02
2170 #define PALMAS_INT1_LINE_STATE_PWRON_SHIFT       2185 #define PALMAS_INT1_LINE_STATE_PWRON_SHIFT                      0x01
2171 #define PALMAS_INT1_LINE_STATE_CHARG_DET_N_VB    2186 #define PALMAS_INT1_LINE_STATE_CHARG_DET_N_VBUS_OVV             0x01
2172 #define PALMAS_INT1_LINE_STATE_CHARG_DET_N_VB    2187 #define PALMAS_INT1_LINE_STATE_CHARG_DET_N_VBUS_OVV_SHIFT       0x00
2173                                                  2188 
2174 /* Bit definitions for INT2_STATUS */            2189 /* Bit definitions for INT2_STATUS */
2175 #define PALMAS_INT2_STATUS_VAC_ACOK              2190 #define PALMAS_INT2_STATUS_VAC_ACOK                             0x80
2176 #define PALMAS_INT2_STATUS_VAC_ACOK_SHIFT        2191 #define PALMAS_INT2_STATUS_VAC_ACOK_SHIFT                       0x07
2177 #define PALMAS_INT2_STATUS_SHORT                 2192 #define PALMAS_INT2_STATUS_SHORT                                0x40
2178 #define PALMAS_INT2_STATUS_SHORT_SHIFT           2193 #define PALMAS_INT2_STATUS_SHORT_SHIFT                          0x06
2179 #define PALMAS_INT2_STATUS_FBI_BB                2194 #define PALMAS_INT2_STATUS_FBI_BB                               0x20
2180 #define PALMAS_INT2_STATUS_FBI_BB_SHIFT          2195 #define PALMAS_INT2_STATUS_FBI_BB_SHIFT                         0x05
2181 #define PALMAS_INT2_STATUS_RESET_IN              2196 #define PALMAS_INT2_STATUS_RESET_IN                             0x10
2182 #define PALMAS_INT2_STATUS_RESET_IN_SHIFT        2197 #define PALMAS_INT2_STATUS_RESET_IN_SHIFT                       0x04
2183 #define PALMAS_INT2_STATUS_BATREMOVAL            2198 #define PALMAS_INT2_STATUS_BATREMOVAL                           0x08
2184 #define PALMAS_INT2_STATUS_BATREMOVAL_SHIFT      2199 #define PALMAS_INT2_STATUS_BATREMOVAL_SHIFT                     0x03
2185 #define PALMAS_INT2_STATUS_WDT                   2200 #define PALMAS_INT2_STATUS_WDT                                  0x04
2186 #define PALMAS_INT2_STATUS_WDT_SHIFT             2201 #define PALMAS_INT2_STATUS_WDT_SHIFT                            0x02
2187 #define PALMAS_INT2_STATUS_RTC_TIMER             2202 #define PALMAS_INT2_STATUS_RTC_TIMER                            0x02
2188 #define PALMAS_INT2_STATUS_RTC_TIMER_SHIFT       2203 #define PALMAS_INT2_STATUS_RTC_TIMER_SHIFT                      0x01
2189 #define PALMAS_INT2_STATUS_RTC_ALARM             2204 #define PALMAS_INT2_STATUS_RTC_ALARM                            0x01
2190 #define PALMAS_INT2_STATUS_RTC_ALARM_SHIFT       2205 #define PALMAS_INT2_STATUS_RTC_ALARM_SHIFT                      0x00
2191                                                  2206 
2192 /* Bit definitions for INT2_MASK */              2207 /* Bit definitions for INT2_MASK */
2193 #define PALMAS_INT2_MASK_VAC_ACOK                2208 #define PALMAS_INT2_MASK_VAC_ACOK                               0x80
2194 #define PALMAS_INT2_MASK_VAC_ACOK_SHIFT          2209 #define PALMAS_INT2_MASK_VAC_ACOK_SHIFT                         0x07
2195 #define PALMAS_INT2_MASK_SHORT                   2210 #define PALMAS_INT2_MASK_SHORT                                  0x40
2196 #define PALMAS_INT2_MASK_SHORT_SHIFT             2211 #define PALMAS_INT2_MASK_SHORT_SHIFT                            0x06
2197 #define PALMAS_INT2_MASK_FBI_BB                  2212 #define PALMAS_INT2_MASK_FBI_BB                                 0x20
2198 #define PALMAS_INT2_MASK_FBI_BB_SHIFT            2213 #define PALMAS_INT2_MASK_FBI_BB_SHIFT                           0x05
2199 #define PALMAS_INT2_MASK_RESET_IN                2214 #define PALMAS_INT2_MASK_RESET_IN                               0x10
2200 #define PALMAS_INT2_MASK_RESET_IN_SHIFT          2215 #define PALMAS_INT2_MASK_RESET_IN_SHIFT                         0x04
2201 #define PALMAS_INT2_MASK_BATREMOVAL              2216 #define PALMAS_INT2_MASK_BATREMOVAL                             0x08
2202 #define PALMAS_INT2_MASK_BATREMOVAL_SHIFT        2217 #define PALMAS_INT2_MASK_BATREMOVAL_SHIFT                       0x03
2203 #define PALMAS_INT2_MASK_WDT                     2218 #define PALMAS_INT2_MASK_WDT                                    0x04
2204 #define PALMAS_INT2_MASK_WDT_SHIFT               2219 #define PALMAS_INT2_MASK_WDT_SHIFT                              0x02
2205 #define PALMAS_INT2_MASK_RTC_TIMER               2220 #define PALMAS_INT2_MASK_RTC_TIMER                              0x02
2206 #define PALMAS_INT2_MASK_RTC_TIMER_SHIFT         2221 #define PALMAS_INT2_MASK_RTC_TIMER_SHIFT                        0x01
2207 #define PALMAS_INT2_MASK_RTC_ALARM               2222 #define PALMAS_INT2_MASK_RTC_ALARM                              0x01
2208 #define PALMAS_INT2_MASK_RTC_ALARM_SHIFT         2223 #define PALMAS_INT2_MASK_RTC_ALARM_SHIFT                        0x00
2209                                                  2224 
2210 /* Bit definitions for INT2_LINE_STATE */        2225 /* Bit definitions for INT2_LINE_STATE */
2211 #define PALMAS_INT2_LINE_STATE_VAC_ACOK          2226 #define PALMAS_INT2_LINE_STATE_VAC_ACOK                         0x80
2212 #define PALMAS_INT2_LINE_STATE_VAC_ACOK_SHIFT    2227 #define PALMAS_INT2_LINE_STATE_VAC_ACOK_SHIFT                   0x07
2213 #define PALMAS_INT2_LINE_STATE_SHORT             2228 #define PALMAS_INT2_LINE_STATE_SHORT                            0x40
2214 #define PALMAS_INT2_LINE_STATE_SHORT_SHIFT       2229 #define PALMAS_INT2_LINE_STATE_SHORT_SHIFT                      0x06
2215 #define PALMAS_INT2_LINE_STATE_FBI_BB            2230 #define PALMAS_INT2_LINE_STATE_FBI_BB                           0x20
2216 #define PALMAS_INT2_LINE_STATE_FBI_BB_SHIFT      2231 #define PALMAS_INT2_LINE_STATE_FBI_BB_SHIFT                     0x05
2217 #define PALMAS_INT2_LINE_STATE_RESET_IN          2232 #define PALMAS_INT2_LINE_STATE_RESET_IN                         0x10
2218 #define PALMAS_INT2_LINE_STATE_RESET_IN_SHIFT    2233 #define PALMAS_INT2_LINE_STATE_RESET_IN_SHIFT                   0x04
2219 #define PALMAS_INT2_LINE_STATE_BATREMOVAL        2234 #define PALMAS_INT2_LINE_STATE_BATREMOVAL                       0x08
2220 #define PALMAS_INT2_LINE_STATE_BATREMOVAL_SHI    2235 #define PALMAS_INT2_LINE_STATE_BATREMOVAL_SHIFT                 0x03
2221 #define PALMAS_INT2_LINE_STATE_WDT               2236 #define PALMAS_INT2_LINE_STATE_WDT                              0x04
2222 #define PALMAS_INT2_LINE_STATE_WDT_SHIFT         2237 #define PALMAS_INT2_LINE_STATE_WDT_SHIFT                        0x02
2223 #define PALMAS_INT2_LINE_STATE_RTC_TIMER         2238 #define PALMAS_INT2_LINE_STATE_RTC_TIMER                        0x02
2224 #define PALMAS_INT2_LINE_STATE_RTC_TIMER_SHIF    2239 #define PALMAS_INT2_LINE_STATE_RTC_TIMER_SHIFT                  0x01
2225 #define PALMAS_INT2_LINE_STATE_RTC_ALARM         2240 #define PALMAS_INT2_LINE_STATE_RTC_ALARM                        0x01
2226 #define PALMAS_INT2_LINE_STATE_RTC_ALARM_SHIF    2241 #define PALMAS_INT2_LINE_STATE_RTC_ALARM_SHIFT                  0x00
2227                                                  2242 
2228 /* Bit definitions for INT3_STATUS */            2243 /* Bit definitions for INT3_STATUS */
2229 #define PALMAS_INT3_STATUS_VBUS                  2244 #define PALMAS_INT3_STATUS_VBUS                                 0x80
2230 #define PALMAS_INT3_STATUS_VBUS_SHIFT            2245 #define PALMAS_INT3_STATUS_VBUS_SHIFT                           0x07
2231 #define PALMAS_INT3_STATUS_VBUS_OTG              2246 #define PALMAS_INT3_STATUS_VBUS_OTG                             0x40
2232 #define PALMAS_INT3_STATUS_VBUS_OTG_SHIFT        2247 #define PALMAS_INT3_STATUS_VBUS_OTG_SHIFT                       0x06
2233 #define PALMAS_INT3_STATUS_ID                    2248 #define PALMAS_INT3_STATUS_ID                                   0x20
2234 #define PALMAS_INT3_STATUS_ID_SHIFT              2249 #define PALMAS_INT3_STATUS_ID_SHIFT                             0x05
2235 #define PALMAS_INT3_STATUS_ID_OTG                2250 #define PALMAS_INT3_STATUS_ID_OTG                               0x10
2236 #define PALMAS_INT3_STATUS_ID_OTG_SHIFT          2251 #define PALMAS_INT3_STATUS_ID_OTG_SHIFT                         0x04
2237 #define PALMAS_INT3_STATUS_GPADC_EOC_RT          2252 #define PALMAS_INT3_STATUS_GPADC_EOC_RT                         0x08
2238 #define PALMAS_INT3_STATUS_GPADC_EOC_RT_SHIFT    2253 #define PALMAS_INT3_STATUS_GPADC_EOC_RT_SHIFT                   0x03
2239 #define PALMAS_INT3_STATUS_GPADC_EOC_SW          2254 #define PALMAS_INT3_STATUS_GPADC_EOC_SW                         0x04
2240 #define PALMAS_INT3_STATUS_GPADC_EOC_SW_SHIFT    2255 #define PALMAS_INT3_STATUS_GPADC_EOC_SW_SHIFT                   0x02
2241 #define PALMAS_INT3_STATUS_GPADC_AUTO_1          2256 #define PALMAS_INT3_STATUS_GPADC_AUTO_1                         0x02
2242 #define PALMAS_INT3_STATUS_GPADC_AUTO_1_SHIFT    2257 #define PALMAS_INT3_STATUS_GPADC_AUTO_1_SHIFT                   0x01
2243 #define PALMAS_INT3_STATUS_GPADC_AUTO_0          2258 #define PALMAS_INT3_STATUS_GPADC_AUTO_0                         0x01
2244 #define PALMAS_INT3_STATUS_GPADC_AUTO_0_SHIFT    2259 #define PALMAS_INT3_STATUS_GPADC_AUTO_0_SHIFT                   0x00
2245                                                  2260 
2246 /* Bit definitions for INT3_MASK */              2261 /* Bit definitions for INT3_MASK */
2247 #define PALMAS_INT3_MASK_VBUS                    2262 #define PALMAS_INT3_MASK_VBUS                                   0x80
2248 #define PALMAS_INT3_MASK_VBUS_SHIFT              2263 #define PALMAS_INT3_MASK_VBUS_SHIFT                             0x07
2249 #define PALMAS_INT3_MASK_VBUS_OTG                2264 #define PALMAS_INT3_MASK_VBUS_OTG                               0x40
2250 #define PALMAS_INT3_MASK_VBUS_OTG_SHIFT          2265 #define PALMAS_INT3_MASK_VBUS_OTG_SHIFT                         0x06
2251 #define PALMAS_INT3_MASK_ID                      2266 #define PALMAS_INT3_MASK_ID                                     0x20
2252 #define PALMAS_INT3_MASK_ID_SHIFT                2267 #define PALMAS_INT3_MASK_ID_SHIFT                               0x05
2253 #define PALMAS_INT3_MASK_ID_OTG                  2268 #define PALMAS_INT3_MASK_ID_OTG                                 0x10
2254 #define PALMAS_INT3_MASK_ID_OTG_SHIFT            2269 #define PALMAS_INT3_MASK_ID_OTG_SHIFT                           0x04
2255 #define PALMAS_INT3_MASK_GPADC_EOC_RT            2270 #define PALMAS_INT3_MASK_GPADC_EOC_RT                           0x08
2256 #define PALMAS_INT3_MASK_GPADC_EOC_RT_SHIFT      2271 #define PALMAS_INT3_MASK_GPADC_EOC_RT_SHIFT                     0x03
2257 #define PALMAS_INT3_MASK_GPADC_EOC_SW            2272 #define PALMAS_INT3_MASK_GPADC_EOC_SW                           0x04
2258 #define PALMAS_INT3_MASK_GPADC_EOC_SW_SHIFT      2273 #define PALMAS_INT3_MASK_GPADC_EOC_SW_SHIFT                     0x02
2259 #define PALMAS_INT3_MASK_GPADC_AUTO_1            2274 #define PALMAS_INT3_MASK_GPADC_AUTO_1                           0x02
2260 #define PALMAS_INT3_MASK_GPADC_AUTO_1_SHIFT      2275 #define PALMAS_INT3_MASK_GPADC_AUTO_1_SHIFT                     0x01
2261 #define PALMAS_INT3_MASK_GPADC_AUTO_0            2276 #define PALMAS_INT3_MASK_GPADC_AUTO_0                           0x01
2262 #define PALMAS_INT3_MASK_GPADC_AUTO_0_SHIFT      2277 #define PALMAS_INT3_MASK_GPADC_AUTO_0_SHIFT                     0x00
2263                                                  2278 
2264 /* Bit definitions for INT3_LINE_STATE */        2279 /* Bit definitions for INT3_LINE_STATE */
2265 #define PALMAS_INT3_LINE_STATE_VBUS              2280 #define PALMAS_INT3_LINE_STATE_VBUS                             0x80
2266 #define PALMAS_INT3_LINE_STATE_VBUS_SHIFT        2281 #define PALMAS_INT3_LINE_STATE_VBUS_SHIFT                       0x07
2267 #define PALMAS_INT3_LINE_STATE_VBUS_OTG          2282 #define PALMAS_INT3_LINE_STATE_VBUS_OTG                         0x40
2268 #define PALMAS_INT3_LINE_STATE_VBUS_OTG_SHIFT    2283 #define PALMAS_INT3_LINE_STATE_VBUS_OTG_SHIFT                   0x06
2269 #define PALMAS_INT3_LINE_STATE_ID                2284 #define PALMAS_INT3_LINE_STATE_ID                               0x20
2270 #define PALMAS_INT3_LINE_STATE_ID_SHIFT          2285 #define PALMAS_INT3_LINE_STATE_ID_SHIFT                         0x05
2271 #define PALMAS_INT3_LINE_STATE_ID_OTG            2286 #define PALMAS_INT3_LINE_STATE_ID_OTG                           0x10
2272 #define PALMAS_INT3_LINE_STATE_ID_OTG_SHIFT      2287 #define PALMAS_INT3_LINE_STATE_ID_OTG_SHIFT                     0x04
2273 #define PALMAS_INT3_LINE_STATE_GPADC_EOC_RT      2288 #define PALMAS_INT3_LINE_STATE_GPADC_EOC_RT                     0x08
2274 #define PALMAS_INT3_LINE_STATE_GPADC_EOC_RT_S    2289 #define PALMAS_INT3_LINE_STATE_GPADC_EOC_RT_SHIFT               0x03
2275 #define PALMAS_INT3_LINE_STATE_GPADC_EOC_SW      2290 #define PALMAS_INT3_LINE_STATE_GPADC_EOC_SW                     0x04
2276 #define PALMAS_INT3_LINE_STATE_GPADC_EOC_SW_S    2291 #define PALMAS_INT3_LINE_STATE_GPADC_EOC_SW_SHIFT               0x02
2277 #define PALMAS_INT3_LINE_STATE_GPADC_AUTO_1      2292 #define PALMAS_INT3_LINE_STATE_GPADC_AUTO_1                     0x02
2278 #define PALMAS_INT3_LINE_STATE_GPADC_AUTO_1_S    2293 #define PALMAS_INT3_LINE_STATE_GPADC_AUTO_1_SHIFT               0x01
2279 #define PALMAS_INT3_LINE_STATE_GPADC_AUTO_0      2294 #define PALMAS_INT3_LINE_STATE_GPADC_AUTO_0                     0x01
2280 #define PALMAS_INT3_LINE_STATE_GPADC_AUTO_0_S    2295 #define PALMAS_INT3_LINE_STATE_GPADC_AUTO_0_SHIFT               0x00
2281                                                  2296 
2282 /* Bit definitions for INT4_STATUS */            2297 /* Bit definitions for INT4_STATUS */
2283 #define PALMAS_INT4_STATUS_GPIO_7                2298 #define PALMAS_INT4_STATUS_GPIO_7                               0x80
2284 #define PALMAS_INT4_STATUS_GPIO_7_SHIFT          2299 #define PALMAS_INT4_STATUS_GPIO_7_SHIFT                         0x07
2285 #define PALMAS_INT4_STATUS_GPIO_6                2300 #define PALMAS_INT4_STATUS_GPIO_6                               0x40
2286 #define PALMAS_INT4_STATUS_GPIO_6_SHIFT          2301 #define PALMAS_INT4_STATUS_GPIO_6_SHIFT                         0x06
2287 #define PALMAS_INT4_STATUS_GPIO_5                2302 #define PALMAS_INT4_STATUS_GPIO_5                               0x20
2288 #define PALMAS_INT4_STATUS_GPIO_5_SHIFT          2303 #define PALMAS_INT4_STATUS_GPIO_5_SHIFT                         0x05
2289 #define PALMAS_INT4_STATUS_GPIO_4                2304 #define PALMAS_INT4_STATUS_GPIO_4                               0x10
2290 #define PALMAS_INT4_STATUS_GPIO_4_SHIFT          2305 #define PALMAS_INT4_STATUS_GPIO_4_SHIFT                         0x04
2291 #define PALMAS_INT4_STATUS_GPIO_3                2306 #define PALMAS_INT4_STATUS_GPIO_3                               0x08
2292 #define PALMAS_INT4_STATUS_GPIO_3_SHIFT          2307 #define PALMAS_INT4_STATUS_GPIO_3_SHIFT                         0x03
2293 #define PALMAS_INT4_STATUS_GPIO_2                2308 #define PALMAS_INT4_STATUS_GPIO_2                               0x04
2294 #define PALMAS_INT4_STATUS_GPIO_2_SHIFT          2309 #define PALMAS_INT4_STATUS_GPIO_2_SHIFT                         0x02
2295 #define PALMAS_INT4_STATUS_GPIO_1                2310 #define PALMAS_INT4_STATUS_GPIO_1                               0x02
2296 #define PALMAS_INT4_STATUS_GPIO_1_SHIFT          2311 #define PALMAS_INT4_STATUS_GPIO_1_SHIFT                         0x01
2297 #define PALMAS_INT4_STATUS_GPIO_0                2312 #define PALMAS_INT4_STATUS_GPIO_0                               0x01
2298 #define PALMAS_INT4_STATUS_GPIO_0_SHIFT          2313 #define PALMAS_INT4_STATUS_GPIO_0_SHIFT                         0x00
2299                                                  2314 
2300 /* Bit definitions for INT4_MASK */              2315 /* Bit definitions for INT4_MASK */
2301 #define PALMAS_INT4_MASK_GPIO_7                  2316 #define PALMAS_INT4_MASK_GPIO_7                                 0x80
2302 #define PALMAS_INT4_MASK_GPIO_7_SHIFT            2317 #define PALMAS_INT4_MASK_GPIO_7_SHIFT                           0x07
2303 #define PALMAS_INT4_MASK_GPIO_6                  2318 #define PALMAS_INT4_MASK_GPIO_6                                 0x40
2304 #define PALMAS_INT4_MASK_GPIO_6_SHIFT            2319 #define PALMAS_INT4_MASK_GPIO_6_SHIFT                           0x06
2305 #define PALMAS_INT4_MASK_GPIO_5                  2320 #define PALMAS_INT4_MASK_GPIO_5                                 0x20
2306 #define PALMAS_INT4_MASK_GPIO_5_SHIFT            2321 #define PALMAS_INT4_MASK_GPIO_5_SHIFT                           0x05
2307 #define PALMAS_INT4_MASK_GPIO_4                  2322 #define PALMAS_INT4_MASK_GPIO_4                                 0x10
2308 #define PALMAS_INT4_MASK_GPIO_4_SHIFT            2323 #define PALMAS_INT4_MASK_GPIO_4_SHIFT                           0x04
2309 #define PALMAS_INT4_MASK_GPIO_3                  2324 #define PALMAS_INT4_MASK_GPIO_3                                 0x08
2310 #define PALMAS_INT4_MASK_GPIO_3_SHIFT            2325 #define PALMAS_INT4_MASK_GPIO_3_SHIFT                           0x03
2311 #define PALMAS_INT4_MASK_GPIO_2                  2326 #define PALMAS_INT4_MASK_GPIO_2                                 0x04
2312 #define PALMAS_INT4_MASK_GPIO_2_SHIFT            2327 #define PALMAS_INT4_MASK_GPIO_2_SHIFT                           0x02
2313 #define PALMAS_INT4_MASK_GPIO_1                  2328 #define PALMAS_INT4_MASK_GPIO_1                                 0x02
2314 #define PALMAS_INT4_MASK_GPIO_1_SHIFT            2329 #define PALMAS_INT4_MASK_GPIO_1_SHIFT                           0x01
2315 #define PALMAS_INT4_MASK_GPIO_0                  2330 #define PALMAS_INT4_MASK_GPIO_0                                 0x01
2316 #define PALMAS_INT4_MASK_GPIO_0_SHIFT            2331 #define PALMAS_INT4_MASK_GPIO_0_SHIFT                           0x00
2317                                                  2332 
2318 /* Bit definitions for INT4_LINE_STATE */        2333 /* Bit definitions for INT4_LINE_STATE */
2319 #define PALMAS_INT4_LINE_STATE_GPIO_7            2334 #define PALMAS_INT4_LINE_STATE_GPIO_7                           0x80
2320 #define PALMAS_INT4_LINE_STATE_GPIO_7_SHIFT      2335 #define PALMAS_INT4_LINE_STATE_GPIO_7_SHIFT                     0x07
2321 #define PALMAS_INT4_LINE_STATE_GPIO_6            2336 #define PALMAS_INT4_LINE_STATE_GPIO_6                           0x40
2322 #define PALMAS_INT4_LINE_STATE_GPIO_6_SHIFT      2337 #define PALMAS_INT4_LINE_STATE_GPIO_6_SHIFT                     0x06
2323 #define PALMAS_INT4_LINE_STATE_GPIO_5            2338 #define PALMAS_INT4_LINE_STATE_GPIO_5                           0x20
2324 #define PALMAS_INT4_LINE_STATE_GPIO_5_SHIFT      2339 #define PALMAS_INT4_LINE_STATE_GPIO_5_SHIFT                     0x05
2325 #define PALMAS_INT4_LINE_STATE_GPIO_4            2340 #define PALMAS_INT4_LINE_STATE_GPIO_4                           0x10
2326 #define PALMAS_INT4_LINE_STATE_GPIO_4_SHIFT      2341 #define PALMAS_INT4_LINE_STATE_GPIO_4_SHIFT                     0x04
2327 #define PALMAS_INT4_LINE_STATE_GPIO_3            2342 #define PALMAS_INT4_LINE_STATE_GPIO_3                           0x08
2328 #define PALMAS_INT4_LINE_STATE_GPIO_3_SHIFT      2343 #define PALMAS_INT4_LINE_STATE_GPIO_3_SHIFT                     0x03
2329 #define PALMAS_INT4_LINE_STATE_GPIO_2            2344 #define PALMAS_INT4_LINE_STATE_GPIO_2                           0x04
2330 #define PALMAS_INT4_LINE_STATE_GPIO_2_SHIFT      2345 #define PALMAS_INT4_LINE_STATE_GPIO_2_SHIFT                     0x02
2331 #define PALMAS_INT4_LINE_STATE_GPIO_1            2346 #define PALMAS_INT4_LINE_STATE_GPIO_1                           0x02
2332 #define PALMAS_INT4_LINE_STATE_GPIO_1_SHIFT      2347 #define PALMAS_INT4_LINE_STATE_GPIO_1_SHIFT                     0x01
2333 #define PALMAS_INT4_LINE_STATE_GPIO_0            2348 #define PALMAS_INT4_LINE_STATE_GPIO_0                           0x01
2334 #define PALMAS_INT4_LINE_STATE_GPIO_0_SHIFT      2349 #define PALMAS_INT4_LINE_STATE_GPIO_0_SHIFT                     0x00
2335                                                  2350 
2336 /* Bit definitions for INT4_EDGE_DETECT1 */      2351 /* Bit definitions for INT4_EDGE_DETECT1 */
2337 #define PALMAS_INT4_EDGE_DETECT1_GPIO_3_RISIN    2352 #define PALMAS_INT4_EDGE_DETECT1_GPIO_3_RISING                  0x80
2338 #define PALMAS_INT4_EDGE_DETECT1_GPIO_3_RISIN    2353 #define PALMAS_INT4_EDGE_DETECT1_GPIO_3_RISING_SHIFT            0x07
2339 #define PALMAS_INT4_EDGE_DETECT1_GPIO_3_FALLI    2354 #define PALMAS_INT4_EDGE_DETECT1_GPIO_3_FALLING                 0x40
2340 #define PALMAS_INT4_EDGE_DETECT1_GPIO_3_FALLI    2355 #define PALMAS_INT4_EDGE_DETECT1_GPIO_3_FALLING_SHIFT           0x06
2341 #define PALMAS_INT4_EDGE_DETECT1_GPIO_2_RISIN    2356 #define PALMAS_INT4_EDGE_DETECT1_GPIO_2_RISING                  0x20
2342 #define PALMAS_INT4_EDGE_DETECT1_GPIO_2_RISIN    2357 #define PALMAS_INT4_EDGE_DETECT1_GPIO_2_RISING_SHIFT            0x05
2343 #define PALMAS_INT4_EDGE_DETECT1_GPIO_2_FALLI    2358 #define PALMAS_INT4_EDGE_DETECT1_GPIO_2_FALLING                 0x10
2344 #define PALMAS_INT4_EDGE_DETECT1_GPIO_2_FALLI    2359 #define PALMAS_INT4_EDGE_DETECT1_GPIO_2_FALLING_SHIFT           0x04
2345 #define PALMAS_INT4_EDGE_DETECT1_GPIO_1_RISIN    2360 #define PALMAS_INT4_EDGE_DETECT1_GPIO_1_RISING                  0x08
2346 #define PALMAS_INT4_EDGE_DETECT1_GPIO_1_RISIN    2361 #define PALMAS_INT4_EDGE_DETECT1_GPIO_1_RISING_SHIFT            0x03
2347 #define PALMAS_INT4_EDGE_DETECT1_GPIO_1_FALLI    2362 #define PALMAS_INT4_EDGE_DETECT1_GPIO_1_FALLING                 0x04
2348 #define PALMAS_INT4_EDGE_DETECT1_GPIO_1_FALLI    2363 #define PALMAS_INT4_EDGE_DETECT1_GPIO_1_FALLING_SHIFT           0x02
2349 #define PALMAS_INT4_EDGE_DETECT1_GPIO_0_RISIN    2364 #define PALMAS_INT4_EDGE_DETECT1_GPIO_0_RISING                  0x02
2350 #define PALMAS_INT4_EDGE_DETECT1_GPIO_0_RISIN    2365 #define PALMAS_INT4_EDGE_DETECT1_GPIO_0_RISING_SHIFT            0x01
2351 #define PALMAS_INT4_EDGE_DETECT1_GPIO_0_FALLI    2366 #define PALMAS_INT4_EDGE_DETECT1_GPIO_0_FALLING                 0x01
2352 #define PALMAS_INT4_EDGE_DETECT1_GPIO_0_FALLI    2367 #define PALMAS_INT4_EDGE_DETECT1_GPIO_0_FALLING_SHIFT           0x00
2353                                                  2368 
2354 /* Bit definitions for INT4_EDGE_DETECT2 */      2369 /* Bit definitions for INT4_EDGE_DETECT2 */
2355 #define PALMAS_INT4_EDGE_DETECT2_GPIO_7_RISIN    2370 #define PALMAS_INT4_EDGE_DETECT2_GPIO_7_RISING                  0x80
2356 #define PALMAS_INT4_EDGE_DETECT2_GPIO_7_RISIN    2371 #define PALMAS_INT4_EDGE_DETECT2_GPIO_7_RISING_SHIFT            0x07
2357 #define PALMAS_INT4_EDGE_DETECT2_GPIO_7_FALLI    2372 #define PALMAS_INT4_EDGE_DETECT2_GPIO_7_FALLING                 0x40
2358 #define PALMAS_INT4_EDGE_DETECT2_GPIO_7_FALLI    2373 #define PALMAS_INT4_EDGE_DETECT2_GPIO_7_FALLING_SHIFT           0x06
2359 #define PALMAS_INT4_EDGE_DETECT2_GPIO_6_RISIN    2374 #define PALMAS_INT4_EDGE_DETECT2_GPIO_6_RISING                  0x20
2360 #define PALMAS_INT4_EDGE_DETECT2_GPIO_6_RISIN    2375 #define PALMAS_INT4_EDGE_DETECT2_GPIO_6_RISING_SHIFT            0x05
2361 #define PALMAS_INT4_EDGE_DETECT2_GPIO_6_FALLI    2376 #define PALMAS_INT4_EDGE_DETECT2_GPIO_6_FALLING                 0x10
2362 #define PALMAS_INT4_EDGE_DETECT2_GPIO_6_FALLI    2377 #define PALMAS_INT4_EDGE_DETECT2_GPIO_6_FALLING_SHIFT           0x04
2363 #define PALMAS_INT4_EDGE_DETECT2_GPIO_5_RISIN    2378 #define PALMAS_INT4_EDGE_DETECT2_GPIO_5_RISING                  0x08
2364 #define PALMAS_INT4_EDGE_DETECT2_GPIO_5_RISIN    2379 #define PALMAS_INT4_EDGE_DETECT2_GPIO_5_RISING_SHIFT            0x03
2365 #define PALMAS_INT4_EDGE_DETECT2_GPIO_5_FALLI    2380 #define PALMAS_INT4_EDGE_DETECT2_GPIO_5_FALLING                 0x04
2366 #define PALMAS_INT4_EDGE_DETECT2_GPIO_5_FALLI    2381 #define PALMAS_INT4_EDGE_DETECT2_GPIO_5_FALLING_SHIFT           0x02
2367 #define PALMAS_INT4_EDGE_DETECT2_GPIO_4_RISIN    2382 #define PALMAS_INT4_EDGE_DETECT2_GPIO_4_RISING                  0x02
2368 #define PALMAS_INT4_EDGE_DETECT2_GPIO_4_RISIN    2383 #define PALMAS_INT4_EDGE_DETECT2_GPIO_4_RISING_SHIFT            0x01
2369 #define PALMAS_INT4_EDGE_DETECT2_GPIO_4_FALLI    2384 #define PALMAS_INT4_EDGE_DETECT2_GPIO_4_FALLING                 0x01
2370 #define PALMAS_INT4_EDGE_DETECT2_GPIO_4_FALLI    2385 #define PALMAS_INT4_EDGE_DETECT2_GPIO_4_FALLING_SHIFT           0x00
2371                                                  2386 
2372 /* Bit definitions for INT_CTRL */               2387 /* Bit definitions for INT_CTRL */
2373 #define PALMAS_INT_CTRL_INT_PENDING              2388 #define PALMAS_INT_CTRL_INT_PENDING                             0x04
2374 #define PALMAS_INT_CTRL_INT_PENDING_SHIFT        2389 #define PALMAS_INT_CTRL_INT_PENDING_SHIFT                       0x02
2375 #define PALMAS_INT_CTRL_INT_CLEAR                2390 #define PALMAS_INT_CTRL_INT_CLEAR                               0x01
2376 #define PALMAS_INT_CTRL_INT_CLEAR_SHIFT          2391 #define PALMAS_INT_CTRL_INT_CLEAR_SHIFT                         0x00
2377                                                  2392 
2378 /* Registers for function USB_OTG */             2393 /* Registers for function USB_OTG */
2379 #define PALMAS_USB_WAKEUP                        2394 #define PALMAS_USB_WAKEUP                                       0x03
2380 #define PALMAS_USB_VBUS_CTRL_SET                 2395 #define PALMAS_USB_VBUS_CTRL_SET                                0x04
2381 #define PALMAS_USB_VBUS_CTRL_CLR                 2396 #define PALMAS_USB_VBUS_CTRL_CLR                                0x05
2382 #define PALMAS_USB_ID_CTRL_SET                   2397 #define PALMAS_USB_ID_CTRL_SET                                  0x06
2383 #define PALMAS_USB_ID_CTRL_CLEAR                 2398 #define PALMAS_USB_ID_CTRL_CLEAR                                0x07
2384 #define PALMAS_USB_VBUS_INT_SRC                  2399 #define PALMAS_USB_VBUS_INT_SRC                                 0x08
2385 #define PALMAS_USB_VBUS_INT_LATCH_SET            2400 #define PALMAS_USB_VBUS_INT_LATCH_SET                           0x09
2386 #define PALMAS_USB_VBUS_INT_LATCH_CLR            2401 #define PALMAS_USB_VBUS_INT_LATCH_CLR                           0x0A
2387 #define PALMAS_USB_VBUS_INT_EN_LO_SET            2402 #define PALMAS_USB_VBUS_INT_EN_LO_SET                           0x0B
2388 #define PALMAS_USB_VBUS_INT_EN_LO_CLR            2403 #define PALMAS_USB_VBUS_INT_EN_LO_CLR                           0x0C
2389 #define PALMAS_USB_VBUS_INT_EN_HI_SET            2404 #define PALMAS_USB_VBUS_INT_EN_HI_SET                           0x0D
2390 #define PALMAS_USB_VBUS_INT_EN_HI_CLR            2405 #define PALMAS_USB_VBUS_INT_EN_HI_CLR                           0x0E
2391 #define PALMAS_USB_ID_INT_SRC                    2406 #define PALMAS_USB_ID_INT_SRC                                   0x0F
2392 #define PALMAS_USB_ID_INT_LATCH_SET              2407 #define PALMAS_USB_ID_INT_LATCH_SET                             0x10
2393 #define PALMAS_USB_ID_INT_LATCH_CLR              2408 #define PALMAS_USB_ID_INT_LATCH_CLR                             0x11
2394 #define PALMAS_USB_ID_INT_EN_LO_SET              2409 #define PALMAS_USB_ID_INT_EN_LO_SET                             0x12
2395 #define PALMAS_USB_ID_INT_EN_LO_CLR              2410 #define PALMAS_USB_ID_INT_EN_LO_CLR                             0x13
2396 #define PALMAS_USB_ID_INT_EN_HI_SET              2411 #define PALMAS_USB_ID_INT_EN_HI_SET                             0x14
2397 #define PALMAS_USB_ID_INT_EN_HI_CLR              2412 #define PALMAS_USB_ID_INT_EN_HI_CLR                             0x15
2398 #define PALMAS_USB_OTG_ADP_CTRL                  2413 #define PALMAS_USB_OTG_ADP_CTRL                                 0x16
2399 #define PALMAS_USB_OTG_ADP_HIGH                  2414 #define PALMAS_USB_OTG_ADP_HIGH                                 0x17
2400 #define PALMAS_USB_OTG_ADP_LOW                   2415 #define PALMAS_USB_OTG_ADP_LOW                                  0x18
2401 #define PALMAS_USB_OTG_ADP_RISE                  2416 #define PALMAS_USB_OTG_ADP_RISE                                 0x19
2402 #define PALMAS_USB_OTG_REVISION                  2417 #define PALMAS_USB_OTG_REVISION                                 0x1A
2403                                                  2418 
2404 /* Bit definitions for USB_WAKEUP */             2419 /* Bit definitions for USB_WAKEUP */
2405 #define PALMAS_USB_WAKEUP_ID_WK_UP_COMP          2420 #define PALMAS_USB_WAKEUP_ID_WK_UP_COMP                         0x01
2406 #define PALMAS_USB_WAKEUP_ID_WK_UP_COMP_SHIFT    2421 #define PALMAS_USB_WAKEUP_ID_WK_UP_COMP_SHIFT                   0x00
2407                                                  2422 
2408 /* Bit definitions for USB_VBUS_CTRL_SET */      2423 /* Bit definitions for USB_VBUS_CTRL_SET */
2409 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_CHRG_VS    2424 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_CHRG_VSYS                 0x80
2410 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_CHRG_VS    2425 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_CHRG_VSYS_SHIFT           0x07
2411 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_DISCHRG    2426 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_DISCHRG                   0x20
2412 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_DISCHRG    2427 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_DISCHRG_SHIFT             0x05
2413 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_IADP_SR    2428 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_IADP_SRC                  0x10
2414 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_IADP_SR    2429 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_IADP_SRC_SHIFT            0x04
2415 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_IADP_SI    2430 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_IADP_SINK                 0x08
2416 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_IADP_SI    2431 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_IADP_SINK_SHIFT           0x03
2417 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COM    2432 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP                  0x04
2418 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COM    2433 #define PALMAS_USB_VBUS_CTRL_SET_VBUS_ACT_COMP_SHIFT            0x02
2419                                                  2434 
2420 /* Bit definitions for USB_VBUS_CTRL_CLR */      2435 /* Bit definitions for USB_VBUS_CTRL_CLR */
2421 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_CHRG_VS    2436 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_CHRG_VSYS                 0x80
2422 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_CHRG_VS    2437 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_CHRG_VSYS_SHIFT           0x07
2423 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_DISCHRG    2438 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_DISCHRG                   0x20
2424 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_DISCHRG    2439 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_DISCHRG_SHIFT             0x05
2425 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_IADP_SR    2440 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_IADP_SRC                  0x10
2426 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_IADP_SR    2441 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_IADP_SRC_SHIFT            0x04
2427 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_IADP_SI    2442 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_IADP_SINK                 0x08
2428 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_IADP_SI    2443 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_IADP_SINK_SHIFT           0x03
2429 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_ACT_COM    2444 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_ACT_COMP                  0x04
2430 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_ACT_COM    2445 #define PALMAS_USB_VBUS_CTRL_CLR_VBUS_ACT_COMP_SHIFT            0x02
2431                                                  2446 
2432 /* Bit definitions for USB_ID_CTRL_SET */        2447 /* Bit definitions for USB_ID_CTRL_SET */
2433 #define PALMAS_USB_ID_CTRL_SET_ID_PU_220K        2448 #define PALMAS_USB_ID_CTRL_SET_ID_PU_220K                       0x80
2434 #define PALMAS_USB_ID_CTRL_SET_ID_PU_220K_SHI    2449 #define PALMAS_USB_ID_CTRL_SET_ID_PU_220K_SHIFT                 0x07
2435 #define PALMAS_USB_ID_CTRL_SET_ID_PU_100K        2450 #define PALMAS_USB_ID_CTRL_SET_ID_PU_100K                       0x40
2436 #define PALMAS_USB_ID_CTRL_SET_ID_PU_100K_SHI    2451 #define PALMAS_USB_ID_CTRL_SET_ID_PU_100K_SHIFT                 0x06
2437 #define PALMAS_USB_ID_CTRL_SET_ID_GND_DRV        2452 #define PALMAS_USB_ID_CTRL_SET_ID_GND_DRV                       0x20
2438 #define PALMAS_USB_ID_CTRL_SET_ID_GND_DRV_SHI    2453 #define PALMAS_USB_ID_CTRL_SET_ID_GND_DRV_SHIFT                 0x05
2439 #define PALMAS_USB_ID_CTRL_SET_ID_SRC_16U        2454 #define PALMAS_USB_ID_CTRL_SET_ID_SRC_16U                       0x10
2440 #define PALMAS_USB_ID_CTRL_SET_ID_SRC_16U_SHI    2455 #define PALMAS_USB_ID_CTRL_SET_ID_SRC_16U_SHIFT                 0x04
2441 #define PALMAS_USB_ID_CTRL_SET_ID_SRC_5U         2456 #define PALMAS_USB_ID_CTRL_SET_ID_SRC_5U                        0x08
2442 #define PALMAS_USB_ID_CTRL_SET_ID_SRC_5U_SHIF    2457 #define PALMAS_USB_ID_CTRL_SET_ID_SRC_5U_SHIFT                  0x03
2443 #define PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP       2458 #define PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP                      0x04
2444 #define PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP_SH    2459 #define PALMAS_USB_ID_CTRL_SET_ID_ACT_COMP_SHIFT                0x02
2445                                                  2460 
2446 /* Bit definitions for USB_ID_CTRL_CLEAR */      2461 /* Bit definitions for USB_ID_CTRL_CLEAR */
2447 #define PALMAS_USB_ID_CTRL_CLEAR_ID_PU_220K      2462 #define PALMAS_USB_ID_CTRL_CLEAR_ID_PU_220K                     0x80
2448 #define PALMAS_USB_ID_CTRL_CLEAR_ID_PU_220K_S    2463 #define PALMAS_USB_ID_CTRL_CLEAR_ID_PU_220K_SHIFT               0x07
2449 #define PALMAS_USB_ID_CTRL_CLEAR_ID_PU_100K      2464 #define PALMAS_USB_ID_CTRL_CLEAR_ID_PU_100K                     0x40
2450 #define PALMAS_USB_ID_CTRL_CLEAR_ID_PU_100K_S    2465 #define PALMAS_USB_ID_CTRL_CLEAR_ID_PU_100K_SHIFT               0x06
2451 #define PALMAS_USB_ID_CTRL_CLEAR_ID_GND_DRV      2466 #define PALMAS_USB_ID_CTRL_CLEAR_ID_GND_DRV                     0x20
2452 #define PALMAS_USB_ID_CTRL_CLEAR_ID_GND_DRV_S    2467 #define PALMAS_USB_ID_CTRL_CLEAR_ID_GND_DRV_SHIFT               0x05
2453 #define PALMAS_USB_ID_CTRL_CLEAR_ID_SRC_16U      2468 #define PALMAS_USB_ID_CTRL_CLEAR_ID_SRC_16U                     0x10
2454 #define PALMAS_USB_ID_CTRL_CLEAR_ID_SRC_16U_S    2469 #define PALMAS_USB_ID_CTRL_CLEAR_ID_SRC_16U_SHIFT               0x04
2455 #define PALMAS_USB_ID_CTRL_CLEAR_ID_SRC_5U       2470 #define PALMAS_USB_ID_CTRL_CLEAR_ID_SRC_5U                      0x08
2456 #define PALMAS_USB_ID_CTRL_CLEAR_ID_SRC_5U_SH    2471 #define PALMAS_USB_ID_CTRL_CLEAR_ID_SRC_5U_SHIFT                0x03
2457 #define PALMAS_USB_ID_CTRL_CLEAR_ID_ACT_COMP     2472 #define PALMAS_USB_ID_CTRL_CLEAR_ID_ACT_COMP                    0x04
2458 #define PALMAS_USB_ID_CTRL_CLEAR_ID_ACT_COMP_    2473 #define PALMAS_USB_ID_CTRL_CLEAR_ID_ACT_COMP_SHIFT              0x02
2459                                                  2474 
2460 /* Bit definitions for USB_VBUS_INT_SRC */       2475 /* Bit definitions for USB_VBUS_INT_SRC */
2461 #define PALMAS_USB_VBUS_INT_SRC_VOTG_SESS_VLD    2476 #define PALMAS_USB_VBUS_INT_SRC_VOTG_SESS_VLD                   0x80
2462 #define PALMAS_USB_VBUS_INT_SRC_VOTG_SESS_VLD    2477 #define PALMAS_USB_VBUS_INT_SRC_VOTG_SESS_VLD_SHIFT             0x07
2463 #define PALMAS_USB_VBUS_INT_SRC_VADP_PRB         2478 #define PALMAS_USB_VBUS_INT_SRC_VADP_PRB                        0x40
2464 #define PALMAS_USB_VBUS_INT_SRC_VADP_PRB_SHIF    2479 #define PALMAS_USB_VBUS_INT_SRC_VADP_PRB_SHIFT                  0x06
2465 #define PALMAS_USB_VBUS_INT_SRC_VADP_SNS         2480 #define PALMAS_USB_VBUS_INT_SRC_VADP_SNS                        0x20
2466 #define PALMAS_USB_VBUS_INT_SRC_VADP_SNS_SHIF    2481 #define PALMAS_USB_VBUS_INT_SRC_VADP_SNS_SHIFT                  0x05
2467 #define PALMAS_USB_VBUS_INT_SRC_VA_VBUS_VLD      2482 #define PALMAS_USB_VBUS_INT_SRC_VA_VBUS_VLD                     0x08
2468 #define PALMAS_USB_VBUS_INT_SRC_VA_VBUS_VLD_S    2483 #define PALMAS_USB_VBUS_INT_SRC_VA_VBUS_VLD_SHIFT               0x03
2469 #define PALMAS_USB_VBUS_INT_SRC_VA_SESS_VLD      2484 #define PALMAS_USB_VBUS_INT_SRC_VA_SESS_VLD                     0x04
2470 #define PALMAS_USB_VBUS_INT_SRC_VA_SESS_VLD_S    2485 #define PALMAS_USB_VBUS_INT_SRC_VA_SESS_VLD_SHIFT               0x02
2471 #define PALMAS_USB_VBUS_INT_SRC_VB_SESS_VLD      2486 #define PALMAS_USB_VBUS_INT_SRC_VB_SESS_VLD                     0x02
2472 #define PALMAS_USB_VBUS_INT_SRC_VB_SESS_VLD_S    2487 #define PALMAS_USB_VBUS_INT_SRC_VB_SESS_VLD_SHIFT               0x01
2473 #define PALMAS_USB_VBUS_INT_SRC_VB_SESS_END      2488 #define PALMAS_USB_VBUS_INT_SRC_VB_SESS_END                     0x01
2474 #define PALMAS_USB_VBUS_INT_SRC_VB_SESS_END_S    2489 #define PALMAS_USB_VBUS_INT_SRC_VB_SESS_END_SHIFT               0x00
2475                                                  2490 
2476 /* Bit definitions for USB_VBUS_INT_LATCH_SET    2491 /* Bit definitions for USB_VBUS_INT_LATCH_SET */
2477 #define PALMAS_USB_VBUS_INT_LATCH_SET_VOTG_SE    2492 #define PALMAS_USB_VBUS_INT_LATCH_SET_VOTG_SESS_VLD             0x80
2478 #define PALMAS_USB_VBUS_INT_LATCH_SET_VOTG_SE    2493 #define PALMAS_USB_VBUS_INT_LATCH_SET_VOTG_SESS_VLD_SHIFT       0x07
2479 #define PALMAS_USB_VBUS_INT_LATCH_SET_VADP_PR    2494 #define PALMAS_USB_VBUS_INT_LATCH_SET_VADP_PRB                  0x40
2480 #define PALMAS_USB_VBUS_INT_LATCH_SET_VADP_PR    2495 #define PALMAS_USB_VBUS_INT_LATCH_SET_VADP_PRB_SHIFT            0x06
2481 #define PALMAS_USB_VBUS_INT_LATCH_SET_VADP_SN    2496 #define PALMAS_USB_VBUS_INT_LATCH_SET_VADP_SNS                  0x20
2482 #define PALMAS_USB_VBUS_INT_LATCH_SET_VADP_SN    2497 #define PALMAS_USB_VBUS_INT_LATCH_SET_VADP_SNS_SHIFT            0x05
2483 #define PALMAS_USB_VBUS_INT_LATCH_SET_ADP        2498 #define PALMAS_USB_VBUS_INT_LATCH_SET_ADP                       0x10
2484 #define PALMAS_USB_VBUS_INT_LATCH_SET_ADP_SHI    2499 #define PALMAS_USB_VBUS_INT_LATCH_SET_ADP_SHIFT                 0x04
2485 #define PALMAS_USB_VBUS_INT_LATCH_SET_VA_VBUS    2500 #define PALMAS_USB_VBUS_INT_LATCH_SET_VA_VBUS_VLD               0x08
2486 #define PALMAS_USB_VBUS_INT_LATCH_SET_VA_VBUS    2501 #define PALMAS_USB_VBUS_INT_LATCH_SET_VA_VBUS_VLD_SHIFT         0x03
2487 #define PALMAS_USB_VBUS_INT_LATCH_SET_VA_SESS    2502 #define PALMAS_USB_VBUS_INT_LATCH_SET_VA_SESS_VLD               0x04
2488 #define PALMAS_USB_VBUS_INT_LATCH_SET_VA_SESS    2503 #define PALMAS_USB_VBUS_INT_LATCH_SET_VA_SESS_VLD_SHIFT         0x02
2489 #define PALMAS_USB_VBUS_INT_LATCH_SET_VB_SESS    2504 #define PALMAS_USB_VBUS_INT_LATCH_SET_VB_SESS_VLD               0x02
2490 #define PALMAS_USB_VBUS_INT_LATCH_SET_VB_SESS    2505 #define PALMAS_USB_VBUS_INT_LATCH_SET_VB_SESS_VLD_SHIFT         0x01
2491 #define PALMAS_USB_VBUS_INT_LATCH_SET_VB_SESS    2506 #define PALMAS_USB_VBUS_INT_LATCH_SET_VB_SESS_END               0x01
2492 #define PALMAS_USB_VBUS_INT_LATCH_SET_VB_SESS    2507 #define PALMAS_USB_VBUS_INT_LATCH_SET_VB_SESS_END_SHIFT         0x00
2493                                                  2508 
2494 /* Bit definitions for USB_VBUS_INT_LATCH_CLR    2509 /* Bit definitions for USB_VBUS_INT_LATCH_CLR */
2495 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VOTG_SE    2510 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VOTG_SESS_VLD             0x80
2496 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VOTG_SE    2511 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VOTG_SESS_VLD_SHIFT       0x07
2497 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VADP_PR    2512 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VADP_PRB                  0x40
2498 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VADP_PR    2513 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VADP_PRB_SHIFT            0x06
2499 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VADP_SN    2514 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VADP_SNS                  0x20
2500 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VADP_SN    2515 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VADP_SNS_SHIFT            0x05
2501 #define PALMAS_USB_VBUS_INT_LATCH_CLR_ADP        2516 #define PALMAS_USB_VBUS_INT_LATCH_CLR_ADP                       0x10
2502 #define PALMAS_USB_VBUS_INT_LATCH_CLR_ADP_SHI    2517 #define PALMAS_USB_VBUS_INT_LATCH_CLR_ADP_SHIFT                 0x04
2503 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VA_VBUS    2518 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VA_VBUS_VLD               0x08
2504 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VA_VBUS    2519 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VA_VBUS_VLD_SHIFT         0x03
2505 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VA_SESS    2520 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VA_SESS_VLD               0x04
2506 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VA_SESS    2521 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VA_SESS_VLD_SHIFT         0x02
2507 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VB_SESS    2522 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VB_SESS_VLD               0x02
2508 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VB_SESS    2523 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VB_SESS_VLD_SHIFT         0x01
2509 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VB_SESS    2524 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VB_SESS_END               0x01
2510 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VB_SESS    2525 #define PALMAS_USB_VBUS_INT_LATCH_CLR_VB_SESS_END_SHIFT         0x00
2511                                                  2526 
2512 /* Bit definitions for USB_VBUS_INT_EN_LO_SET    2527 /* Bit definitions for USB_VBUS_INT_EN_LO_SET */
2513 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VOTG_SE    2528 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VOTG_SESS_VLD             0x80
2514 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VOTG_SE    2529 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VOTG_SESS_VLD_SHIFT       0x07
2515 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VADP_PR    2530 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VADP_PRB                  0x40
2516 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VADP_PR    2531 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VADP_PRB_SHIFT            0x06
2517 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VADP_SN    2532 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VADP_SNS                  0x20
2518 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VADP_SN    2533 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VADP_SNS_SHIFT            0x05
2519 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VA_VBUS    2534 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VA_VBUS_VLD               0x08
2520 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VA_VBUS    2535 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VA_VBUS_VLD_SHIFT         0x03
2521 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VA_SESS    2536 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VA_SESS_VLD               0x04
2522 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VA_SESS    2537 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VA_SESS_VLD_SHIFT         0x02
2523 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VB_SESS    2538 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VB_SESS_VLD               0x02
2524 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VB_SESS    2539 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VB_SESS_VLD_SHIFT         0x01
2525 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VB_SESS    2540 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VB_SESS_END               0x01
2526 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VB_SESS    2541 #define PALMAS_USB_VBUS_INT_EN_LO_SET_VB_SESS_END_SHIFT         0x00
2527                                                  2542 
2528 /* Bit definitions for USB_VBUS_INT_EN_LO_CLR    2543 /* Bit definitions for USB_VBUS_INT_EN_LO_CLR */
2529 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VOTG_SE    2544 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VOTG_SESS_VLD             0x80
2530 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VOTG_SE    2545 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VOTG_SESS_VLD_SHIFT       0x07
2531 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VADP_PR    2546 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VADP_PRB                  0x40
2532 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VADP_PR    2547 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VADP_PRB_SHIFT            0x06
2533 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VADP_SN    2548 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VADP_SNS                  0x20
2534 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VADP_SN    2549 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VADP_SNS_SHIFT            0x05
2535 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VA_VBUS    2550 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VA_VBUS_VLD               0x08
2536 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VA_VBUS    2551 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VA_VBUS_VLD_SHIFT         0x03
2537 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VA_SESS    2552 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VA_SESS_VLD               0x04
2538 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VA_SESS    2553 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VA_SESS_VLD_SHIFT         0x02
2539 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VB_SESS    2554 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VB_SESS_VLD               0x02
2540 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VB_SESS    2555 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VB_SESS_VLD_SHIFT         0x01
2541 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VB_SESS    2556 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VB_SESS_END               0x01
2542 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VB_SESS    2557 #define PALMAS_USB_VBUS_INT_EN_LO_CLR_VB_SESS_END_SHIFT         0x00
2543                                                  2558 
2544 /* Bit definitions for USB_VBUS_INT_EN_HI_SET    2559 /* Bit definitions for USB_VBUS_INT_EN_HI_SET */
2545 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VOTG_SE    2560 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VOTG_SESS_VLD             0x80
2546 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VOTG_SE    2561 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VOTG_SESS_VLD_SHIFT       0x07
2547 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VADP_PR    2562 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VADP_PRB                  0x40
2548 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VADP_PR    2563 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VADP_PRB_SHIFT            0x06
2549 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VADP_SN    2564 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VADP_SNS                  0x20
2550 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VADP_SN    2565 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VADP_SNS_SHIFT            0x05
2551 #define PALMAS_USB_VBUS_INT_EN_HI_SET_ADP        2566 #define PALMAS_USB_VBUS_INT_EN_HI_SET_ADP                       0x10
2552 #define PALMAS_USB_VBUS_INT_EN_HI_SET_ADP_SHI    2567 #define PALMAS_USB_VBUS_INT_EN_HI_SET_ADP_SHIFT                 0x04
2553 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VA_VBUS    2568 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VA_VBUS_VLD               0x08
2554 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VA_VBUS    2569 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VA_VBUS_VLD_SHIFT         0x03
2555 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VA_SESS    2570 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VA_SESS_VLD               0x04
2556 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VA_SESS    2571 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VA_SESS_VLD_SHIFT         0x02
2557 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VB_SESS    2572 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VB_SESS_VLD               0x02
2558 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VB_SESS    2573 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VB_SESS_VLD_SHIFT         0x01
2559 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VB_SESS    2574 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VB_SESS_END               0x01
2560 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VB_SESS    2575 #define PALMAS_USB_VBUS_INT_EN_HI_SET_VB_SESS_END_SHIFT         0x00
2561                                                  2576 
2562 /* Bit definitions for USB_VBUS_INT_EN_HI_CLR    2577 /* Bit definitions for USB_VBUS_INT_EN_HI_CLR */
2563 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VOTG_SE    2578 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VOTG_SESS_VLD             0x80
2564 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VOTG_SE    2579 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VOTG_SESS_VLD_SHIFT       0x07
2565 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VADP_PR    2580 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VADP_PRB                  0x40
2566 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VADP_PR    2581 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VADP_PRB_SHIFT            0x06
2567 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VADP_SN    2582 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VADP_SNS                  0x20
2568 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VADP_SN    2583 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VADP_SNS_SHIFT            0x05
2569 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_ADP        2584 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_ADP                       0x10
2570 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_ADP_SHI    2585 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_ADP_SHIFT                 0x04
2571 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VA_VBUS    2586 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VA_VBUS_VLD               0x08
2572 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VA_VBUS    2587 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VA_VBUS_VLD_SHIFT         0x03
2573 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VA_SESS    2588 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VA_SESS_VLD               0x04
2574 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VA_SESS    2589 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VA_SESS_VLD_SHIFT         0x02
2575 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VB_SESS    2590 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VB_SESS_VLD               0x02
2576 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VB_SESS    2591 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VB_SESS_VLD_SHIFT         0x01
2577 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VB_SESS    2592 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VB_SESS_END               0x01
2578 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VB_SESS    2593 #define PALMAS_USB_VBUS_INT_EN_HI_CLR_VB_SESS_END_SHIFT         0x00
2579                                                  2594 
2580 /* Bit definitions for USB_ID_INT_SRC */         2595 /* Bit definitions for USB_ID_INT_SRC */
2581 #define PALMAS_USB_ID_INT_SRC_ID_FLOAT           2596 #define PALMAS_USB_ID_INT_SRC_ID_FLOAT                          0x10
2582 #define PALMAS_USB_ID_INT_SRC_ID_FLOAT_SHIFT     2597 #define PALMAS_USB_ID_INT_SRC_ID_FLOAT_SHIFT                    0x04
2583 #define PALMAS_USB_ID_INT_SRC_ID_A               2598 #define PALMAS_USB_ID_INT_SRC_ID_A                              0x08
2584 #define PALMAS_USB_ID_INT_SRC_ID_A_SHIFT         2599 #define PALMAS_USB_ID_INT_SRC_ID_A_SHIFT                        0x03
2585 #define PALMAS_USB_ID_INT_SRC_ID_B               2600 #define PALMAS_USB_ID_INT_SRC_ID_B                              0x04
2586 #define PALMAS_USB_ID_INT_SRC_ID_B_SHIFT         2601 #define PALMAS_USB_ID_INT_SRC_ID_B_SHIFT                        0x02
2587 #define PALMAS_USB_ID_INT_SRC_ID_C               2602 #define PALMAS_USB_ID_INT_SRC_ID_C                              0x02
2588 #define PALMAS_USB_ID_INT_SRC_ID_C_SHIFT         2603 #define PALMAS_USB_ID_INT_SRC_ID_C_SHIFT                        0x01
2589 #define PALMAS_USB_ID_INT_SRC_ID_GND             2604 #define PALMAS_USB_ID_INT_SRC_ID_GND                            0x01
2590 #define PALMAS_USB_ID_INT_SRC_ID_GND_SHIFT       2605 #define PALMAS_USB_ID_INT_SRC_ID_GND_SHIFT                      0x00
2591                                                  2606 
2592 /* Bit definitions for USB_ID_INT_LATCH_SET *    2607 /* Bit definitions for USB_ID_INT_LATCH_SET */
2593 #define PALMAS_USB_ID_INT_LATCH_SET_ID_FLOAT     2608 #define PALMAS_USB_ID_INT_LATCH_SET_ID_FLOAT                    0x10
2594 #define PALMAS_USB_ID_INT_LATCH_SET_ID_FLOAT_    2609 #define PALMAS_USB_ID_INT_LATCH_SET_ID_FLOAT_SHIFT              0x04
2595 #define PALMAS_USB_ID_INT_LATCH_SET_ID_A         2610 #define PALMAS_USB_ID_INT_LATCH_SET_ID_A                        0x08
2596 #define PALMAS_USB_ID_INT_LATCH_SET_ID_A_SHIF    2611 #define PALMAS_USB_ID_INT_LATCH_SET_ID_A_SHIFT                  0x03
2597 #define PALMAS_USB_ID_INT_LATCH_SET_ID_B         2612 #define PALMAS_USB_ID_INT_LATCH_SET_ID_B                        0x04
2598 #define PALMAS_USB_ID_INT_LATCH_SET_ID_B_SHIF    2613 #define PALMAS_USB_ID_INT_LATCH_SET_ID_B_SHIFT                  0x02
2599 #define PALMAS_USB_ID_INT_LATCH_SET_ID_C         2614 #define PALMAS_USB_ID_INT_LATCH_SET_ID_C                        0x02
2600 #define PALMAS_USB_ID_INT_LATCH_SET_ID_C_SHIF    2615 #define PALMAS_USB_ID_INT_LATCH_SET_ID_C_SHIFT                  0x01
2601 #define PALMAS_USB_ID_INT_LATCH_SET_ID_GND       2616 #define PALMAS_USB_ID_INT_LATCH_SET_ID_GND                      0x01
2602 #define PALMAS_USB_ID_INT_LATCH_SET_ID_GND_SH    2617 #define PALMAS_USB_ID_INT_LATCH_SET_ID_GND_SHIFT                0x00
2603                                                  2618 
2604 /* Bit definitions for USB_ID_INT_LATCH_CLR *    2619 /* Bit definitions for USB_ID_INT_LATCH_CLR */
2605 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_FLOAT     2620 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_FLOAT                    0x10
2606 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_FLOAT_    2621 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_FLOAT_SHIFT              0x04
2607 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_A         2622 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_A                        0x08
2608 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_A_SHIF    2623 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_A_SHIFT                  0x03
2609 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_B         2624 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_B                        0x04
2610 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_B_SHIF    2625 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_B_SHIFT                  0x02
2611 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_C         2626 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_C                        0x02
2612 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_C_SHIF    2627 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_C_SHIFT                  0x01
2613 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_GND       2628 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_GND                      0x01
2614 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_GND_SH    2629 #define PALMAS_USB_ID_INT_LATCH_CLR_ID_GND_SHIFT                0x00
2615                                                  2630 
2616 /* Bit definitions for USB_ID_INT_EN_LO_SET *    2631 /* Bit definitions for USB_ID_INT_EN_LO_SET */
2617 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_FLOAT     2632 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_FLOAT                    0x10
2618 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_FLOAT_    2633 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_FLOAT_SHIFT              0x04
2619 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_A         2634 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_A                        0x08
2620 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_A_SHIF    2635 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_A_SHIFT                  0x03
2621 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_B         2636 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_B                        0x04
2622 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_B_SHIF    2637 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_B_SHIFT                  0x02
2623 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_C         2638 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_C                        0x02
2624 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_C_SHIF    2639 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_C_SHIFT                  0x01
2625 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_GND       2640 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_GND                      0x01
2626 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_GND_SH    2641 #define PALMAS_USB_ID_INT_EN_LO_SET_ID_GND_SHIFT                0x00
2627                                                  2642 
2628 /* Bit definitions for USB_ID_INT_EN_LO_CLR *    2643 /* Bit definitions for USB_ID_INT_EN_LO_CLR */
2629 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_FLOAT     2644 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_FLOAT                    0x10
2630 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_FLOAT_    2645 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_FLOAT_SHIFT              0x04
2631 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_A         2646 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_A                        0x08
2632 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_A_SHIF    2647 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_A_SHIFT                  0x03
2633 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_B         2648 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_B                        0x04
2634 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_B_SHIF    2649 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_B_SHIFT                  0x02
2635 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_C         2650 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_C                        0x02
2636 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_C_SHIF    2651 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_C_SHIFT                  0x01
2637 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_GND       2652 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_GND                      0x01
2638 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_GND_SH    2653 #define PALMAS_USB_ID_INT_EN_LO_CLR_ID_GND_SHIFT                0x00
2639                                                  2654 
2640 /* Bit definitions for USB_ID_INT_EN_HI_SET *    2655 /* Bit definitions for USB_ID_INT_EN_HI_SET */
2641 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT     2656 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT                    0x10
2642 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT_    2657 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_FLOAT_SHIFT              0x04
2643 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_A         2658 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_A                        0x08
2644 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_A_SHIF    2659 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_A_SHIFT                  0x03
2645 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_B         2660 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_B                        0x04
2646 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_B_SHIF    2661 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_B_SHIFT                  0x02
2647 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_C         2662 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_C                        0x02
2648 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_C_SHIF    2663 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_C_SHIFT                  0x01
2649 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_GND       2664 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_GND                      0x01
2650 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_GND_SH    2665 #define PALMAS_USB_ID_INT_EN_HI_SET_ID_GND_SHIFT                0x00
2651                                                  2666 
2652 /* Bit definitions for USB_ID_INT_EN_HI_CLR *    2667 /* Bit definitions for USB_ID_INT_EN_HI_CLR */
2653 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT     2668 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT                    0x10
2654 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT_    2669 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_FLOAT_SHIFT              0x04
2655 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_A         2670 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_A                        0x08
2656 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_A_SHIF    2671 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_A_SHIFT                  0x03
2657 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_B         2672 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_B                        0x04
2658 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_B_SHIF    2673 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_B_SHIFT                  0x02
2659 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_C         2674 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_C                        0x02
2660 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_C_SHIF    2675 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_C_SHIFT                  0x01
2661 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND       2676 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND                      0x01
2662 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND_SH    2677 #define PALMAS_USB_ID_INT_EN_HI_CLR_ID_GND_SHIFT                0x00
2663                                                  2678 
2664 /* Bit definitions for USB_OTG_ADP_CTRL */       2679 /* Bit definitions for USB_OTG_ADP_CTRL */
2665 #define PALMAS_USB_OTG_ADP_CTRL_ADP_EN           2680 #define PALMAS_USB_OTG_ADP_CTRL_ADP_EN                          0x04
2666 #define PALMAS_USB_OTG_ADP_CTRL_ADP_EN_SHIFT     2681 #define PALMAS_USB_OTG_ADP_CTRL_ADP_EN_SHIFT                    0x02
2667 #define PALMAS_USB_OTG_ADP_CTRL_ADP_MODE_MASK    2682 #define PALMAS_USB_OTG_ADP_CTRL_ADP_MODE_MASK                   0x03
2668 #define PALMAS_USB_OTG_ADP_CTRL_ADP_MODE_SHIF    2683 #define PALMAS_USB_OTG_ADP_CTRL_ADP_MODE_SHIFT                  0x00
2669                                                  2684 
2670 /* Bit definitions for USB_OTG_ADP_HIGH */       2685 /* Bit definitions for USB_OTG_ADP_HIGH */
2671 #define PALMAS_USB_OTG_ADP_HIGH_T_ADP_HIGH_MA    2686 #define PALMAS_USB_OTG_ADP_HIGH_T_ADP_HIGH_MASK                 0xFF
2672 #define PALMAS_USB_OTG_ADP_HIGH_T_ADP_HIGH_SH    2687 #define PALMAS_USB_OTG_ADP_HIGH_T_ADP_HIGH_SHIFT                0x00
2673                                                  2688 
2674 /* Bit definitions for USB_OTG_ADP_LOW */        2689 /* Bit definitions for USB_OTG_ADP_LOW */
2675 #define PALMAS_USB_OTG_ADP_LOW_T_ADP_LOW_MASK    2690 #define PALMAS_USB_OTG_ADP_LOW_T_ADP_LOW_MASK                   0xFF
2676 #define PALMAS_USB_OTG_ADP_LOW_T_ADP_LOW_SHIF    2691 #define PALMAS_USB_OTG_ADP_LOW_T_ADP_LOW_SHIFT                  0x00
2677                                                  2692 
2678 /* Bit definitions for USB_OTG_ADP_RISE */       2693 /* Bit definitions for USB_OTG_ADP_RISE */
2679 #define PALMAS_USB_OTG_ADP_RISE_T_ADP_RISE_MA    2694 #define PALMAS_USB_OTG_ADP_RISE_T_ADP_RISE_MASK                 0xFF
2680 #define PALMAS_USB_OTG_ADP_RISE_T_ADP_RISE_SH    2695 #define PALMAS_USB_OTG_ADP_RISE_T_ADP_RISE_SHIFT                0x00
2681                                                  2696 
2682 /* Bit definitions for USB_OTG_REVISION */       2697 /* Bit definitions for USB_OTG_REVISION */
2683 #define PALMAS_USB_OTG_REVISION_OTG_REV          2698 #define PALMAS_USB_OTG_REVISION_OTG_REV                         0x01
2684 #define PALMAS_USB_OTG_REVISION_OTG_REV_SHIFT    2699 #define PALMAS_USB_OTG_REVISION_OTG_REV_SHIFT                   0x00
2685                                                  2700 
2686 /* Registers for function VIBRATOR */            2701 /* Registers for function VIBRATOR */
2687 #define PALMAS_VIBRA_CTRL                        2702 #define PALMAS_VIBRA_CTRL                                       0x00
2688                                                  2703 
2689 /* Bit definitions for VIBRA_CTRL */             2704 /* Bit definitions for VIBRA_CTRL */
2690 #define PALMAS_VIBRA_CTRL_PWM_DUTY_SEL_MASK      2705 #define PALMAS_VIBRA_CTRL_PWM_DUTY_SEL_MASK                     0x06
2691 #define PALMAS_VIBRA_CTRL_PWM_DUTY_SEL_SHIFT     2706 #define PALMAS_VIBRA_CTRL_PWM_DUTY_SEL_SHIFT                    0x01
2692 #define PALMAS_VIBRA_CTRL_PWM_FREQ_SEL           2707 #define PALMAS_VIBRA_CTRL_PWM_FREQ_SEL                          0x01
2693 #define PALMAS_VIBRA_CTRL_PWM_FREQ_SEL_SHIFT     2708 #define PALMAS_VIBRA_CTRL_PWM_FREQ_SEL_SHIFT                    0x00
2694                                                  2709 
2695 /* Registers for function GPIO */                2710 /* Registers for function GPIO */
2696 #define PALMAS_GPIO_DATA_IN                      2711 #define PALMAS_GPIO_DATA_IN                                     0x00
2697 #define PALMAS_GPIO_DATA_DIR                     2712 #define PALMAS_GPIO_DATA_DIR                                    0x01
2698 #define PALMAS_GPIO_DATA_OUT                     2713 #define PALMAS_GPIO_DATA_OUT                                    0x02
2699 #define PALMAS_GPIO_DEBOUNCE_EN                  2714 #define PALMAS_GPIO_DEBOUNCE_EN                                 0x03
2700 #define PALMAS_GPIO_CLEAR_DATA_OUT               2715 #define PALMAS_GPIO_CLEAR_DATA_OUT                              0x04
2701 #define PALMAS_GPIO_SET_DATA_OUT                 2716 #define PALMAS_GPIO_SET_DATA_OUT                                0x05
2702 #define PALMAS_PU_PD_GPIO_CTRL1                  2717 #define PALMAS_PU_PD_GPIO_CTRL1                                 0x06
2703 #define PALMAS_PU_PD_GPIO_CTRL2                  2718 #define PALMAS_PU_PD_GPIO_CTRL2                                 0x07
2704 #define PALMAS_OD_OUTPUT_GPIO_CTRL               2719 #define PALMAS_OD_OUTPUT_GPIO_CTRL                              0x08
2705 #define PALMAS_GPIO_DATA_IN2                     2720 #define PALMAS_GPIO_DATA_IN2                                    0x09
2706 #define PALMAS_GPIO_DATA_DIR2                    2721 #define PALMAS_GPIO_DATA_DIR2                                   0x0A
2707 #define PALMAS_GPIO_DATA_OUT2                    2722 #define PALMAS_GPIO_DATA_OUT2                                   0x0B
2708 #define PALMAS_GPIO_DEBOUNCE_EN2                 2723 #define PALMAS_GPIO_DEBOUNCE_EN2                                0x0C
2709 #define PALMAS_GPIO_CLEAR_DATA_OUT2              2724 #define PALMAS_GPIO_CLEAR_DATA_OUT2                             0x0D
2710 #define PALMAS_GPIO_SET_DATA_OUT2                2725 #define PALMAS_GPIO_SET_DATA_OUT2                               0x0E
2711 #define PALMAS_PU_PD_GPIO_CTRL3                  2726 #define PALMAS_PU_PD_GPIO_CTRL3                                 0x0F
2712 #define PALMAS_PU_PD_GPIO_CTRL4                  2727 #define PALMAS_PU_PD_GPIO_CTRL4                                 0x10
2713 #define PALMAS_OD_OUTPUT_GPIO_CTRL2              2728 #define PALMAS_OD_OUTPUT_GPIO_CTRL2                             0x11
2714                                                  2729 
2715 /* Bit definitions for GPIO_DATA_IN */           2730 /* Bit definitions for GPIO_DATA_IN */
2716 #define PALMAS_GPIO_DATA_IN_GPIO_7_IN            2731 #define PALMAS_GPIO_DATA_IN_GPIO_7_IN                           0x80
2717 #define PALMAS_GPIO_DATA_IN_GPIO_7_IN_SHIFT      2732 #define PALMAS_GPIO_DATA_IN_GPIO_7_IN_SHIFT                     0x07
2718 #define PALMAS_GPIO_DATA_IN_GPIO_6_IN            2733 #define PALMAS_GPIO_DATA_IN_GPIO_6_IN                           0x40
2719 #define PALMAS_GPIO_DATA_IN_GPIO_6_IN_SHIFT      2734 #define PALMAS_GPIO_DATA_IN_GPIO_6_IN_SHIFT                     0x06
2720 #define PALMAS_GPIO_DATA_IN_GPIO_5_IN            2735 #define PALMAS_GPIO_DATA_IN_GPIO_5_IN                           0x20
2721 #define PALMAS_GPIO_DATA_IN_GPIO_5_IN_SHIFT      2736 #define PALMAS_GPIO_DATA_IN_GPIO_5_IN_SHIFT                     0x05
2722 #define PALMAS_GPIO_DATA_IN_GPIO_4_IN            2737 #define PALMAS_GPIO_DATA_IN_GPIO_4_IN                           0x10
2723 #define PALMAS_GPIO_DATA_IN_GPIO_4_IN_SHIFT      2738 #define PALMAS_GPIO_DATA_IN_GPIO_4_IN_SHIFT                     0x04
2724 #define PALMAS_GPIO_DATA_IN_GPIO_3_IN            2739 #define PALMAS_GPIO_DATA_IN_GPIO_3_IN                           0x08
2725 #define PALMAS_GPIO_DATA_IN_GPIO_3_IN_SHIFT      2740 #define PALMAS_GPIO_DATA_IN_GPIO_3_IN_SHIFT                     0x03
2726 #define PALMAS_GPIO_DATA_IN_GPIO_2_IN            2741 #define PALMAS_GPIO_DATA_IN_GPIO_2_IN                           0x04
2727 #define PALMAS_GPIO_DATA_IN_GPIO_2_IN_SHIFT      2742 #define PALMAS_GPIO_DATA_IN_GPIO_2_IN_SHIFT                     0x02
2728 #define PALMAS_GPIO_DATA_IN_GPIO_1_IN            2743 #define PALMAS_GPIO_DATA_IN_GPIO_1_IN                           0x02
2729 #define PALMAS_GPIO_DATA_IN_GPIO_1_IN_SHIFT      2744 #define PALMAS_GPIO_DATA_IN_GPIO_1_IN_SHIFT                     0x01
2730 #define PALMAS_GPIO_DATA_IN_GPIO_0_IN            2745 #define PALMAS_GPIO_DATA_IN_GPIO_0_IN                           0x01
2731 #define PALMAS_GPIO_DATA_IN_GPIO_0_IN_SHIFT      2746 #define PALMAS_GPIO_DATA_IN_GPIO_0_IN_SHIFT                     0x00
2732                                                  2747 
2733 /* Bit definitions for GPIO_DATA_DIR */          2748 /* Bit definitions for GPIO_DATA_DIR */
2734 #define PALMAS_GPIO_DATA_DIR_GPIO_7_DIR          2749 #define PALMAS_GPIO_DATA_DIR_GPIO_7_DIR                         0x80
2735 #define PALMAS_GPIO_DATA_DIR_GPIO_7_DIR_SHIFT    2750 #define PALMAS_GPIO_DATA_DIR_GPIO_7_DIR_SHIFT                   0x07
2736 #define PALMAS_GPIO_DATA_DIR_GPIO_6_DIR          2751 #define PALMAS_GPIO_DATA_DIR_GPIO_6_DIR                         0x40
2737 #define PALMAS_GPIO_DATA_DIR_GPIO_6_DIR_SHIFT    2752 #define PALMAS_GPIO_DATA_DIR_GPIO_6_DIR_SHIFT                   0x06
2738 #define PALMAS_GPIO_DATA_DIR_GPIO_5_DIR          2753 #define PALMAS_GPIO_DATA_DIR_GPIO_5_DIR                         0x20
2739 #define PALMAS_GPIO_DATA_DIR_GPIO_5_DIR_SHIFT    2754 #define PALMAS_GPIO_DATA_DIR_GPIO_5_DIR_SHIFT                   0x05
2740 #define PALMAS_GPIO_DATA_DIR_GPIO_4_DIR          2755 #define PALMAS_GPIO_DATA_DIR_GPIO_4_DIR                         0x10
2741 #define PALMAS_GPIO_DATA_DIR_GPIO_4_DIR_SHIFT    2756 #define PALMAS_GPIO_DATA_DIR_GPIO_4_DIR_SHIFT                   0x04
2742 #define PALMAS_GPIO_DATA_DIR_GPIO_3_DIR          2757 #define PALMAS_GPIO_DATA_DIR_GPIO_3_DIR                         0x08
2743 #define PALMAS_GPIO_DATA_DIR_GPIO_3_DIR_SHIFT    2758 #define PALMAS_GPIO_DATA_DIR_GPIO_3_DIR_SHIFT                   0x03
2744 #define PALMAS_GPIO_DATA_DIR_GPIO_2_DIR          2759 #define PALMAS_GPIO_DATA_DIR_GPIO_2_DIR                         0x04
2745 #define PALMAS_GPIO_DATA_DIR_GPIO_2_DIR_SHIFT    2760 #define PALMAS_GPIO_DATA_DIR_GPIO_2_DIR_SHIFT                   0x02
2746 #define PALMAS_GPIO_DATA_DIR_GPIO_1_DIR          2761 #define PALMAS_GPIO_DATA_DIR_GPIO_1_DIR                         0x02
2747 #define PALMAS_GPIO_DATA_DIR_GPIO_1_DIR_SHIFT    2762 #define PALMAS_GPIO_DATA_DIR_GPIO_1_DIR_SHIFT                   0x01
2748 #define PALMAS_GPIO_DATA_DIR_GPIO_0_DIR          2763 #define PALMAS_GPIO_DATA_DIR_GPIO_0_DIR                         0x01
2749 #define PALMAS_GPIO_DATA_DIR_GPIO_0_DIR_SHIFT    2764 #define PALMAS_GPIO_DATA_DIR_GPIO_0_DIR_SHIFT                   0x00
2750                                                  2765 
2751 /* Bit definitions for GPIO_DATA_OUT */          2766 /* Bit definitions for GPIO_DATA_OUT */
2752 #define PALMAS_GPIO_DATA_OUT_GPIO_7_OUT          2767 #define PALMAS_GPIO_DATA_OUT_GPIO_7_OUT                         0x80
2753 #define PALMAS_GPIO_DATA_OUT_GPIO_7_OUT_SHIFT    2768 #define PALMAS_GPIO_DATA_OUT_GPIO_7_OUT_SHIFT                   0x07
2754 #define PALMAS_GPIO_DATA_OUT_GPIO_6_OUT          2769 #define PALMAS_GPIO_DATA_OUT_GPIO_6_OUT                         0x40
2755 #define PALMAS_GPIO_DATA_OUT_GPIO_6_OUT_SHIFT    2770 #define PALMAS_GPIO_DATA_OUT_GPIO_6_OUT_SHIFT                   0x06
2756 #define PALMAS_GPIO_DATA_OUT_GPIO_5_OUT          2771 #define PALMAS_GPIO_DATA_OUT_GPIO_5_OUT                         0x20
2757 #define PALMAS_GPIO_DATA_OUT_GPIO_5_OUT_SHIFT    2772 #define PALMAS_GPIO_DATA_OUT_GPIO_5_OUT_SHIFT                   0x05
2758 #define PALMAS_GPIO_DATA_OUT_GPIO_4_OUT          2773 #define PALMAS_GPIO_DATA_OUT_GPIO_4_OUT                         0x10
2759 #define PALMAS_GPIO_DATA_OUT_GPIO_4_OUT_SHIFT    2774 #define PALMAS_GPIO_DATA_OUT_GPIO_4_OUT_SHIFT                   0x04
2760 #define PALMAS_GPIO_DATA_OUT_GPIO_3_OUT          2775 #define PALMAS_GPIO_DATA_OUT_GPIO_3_OUT                         0x08
2761 #define PALMAS_GPIO_DATA_OUT_GPIO_3_OUT_SHIFT    2776 #define PALMAS_GPIO_DATA_OUT_GPIO_3_OUT_SHIFT                   0x03
2762 #define PALMAS_GPIO_DATA_OUT_GPIO_2_OUT          2777 #define PALMAS_GPIO_DATA_OUT_GPIO_2_OUT                         0x04
2763 #define PALMAS_GPIO_DATA_OUT_GPIO_2_OUT_SHIFT    2778 #define PALMAS_GPIO_DATA_OUT_GPIO_2_OUT_SHIFT                   0x02
2764 #define PALMAS_GPIO_DATA_OUT_GPIO_1_OUT          2779 #define PALMAS_GPIO_DATA_OUT_GPIO_1_OUT                         0x02
2765 #define PALMAS_GPIO_DATA_OUT_GPIO_1_OUT_SHIFT    2780 #define PALMAS_GPIO_DATA_OUT_GPIO_1_OUT_SHIFT                   0x01
2766 #define PALMAS_GPIO_DATA_OUT_GPIO_0_OUT          2781 #define PALMAS_GPIO_DATA_OUT_GPIO_0_OUT                         0x01
2767 #define PALMAS_GPIO_DATA_OUT_GPIO_0_OUT_SHIFT    2782 #define PALMAS_GPIO_DATA_OUT_GPIO_0_OUT_SHIFT                   0x00
2768                                                  2783 
2769 /* Bit definitions for GPIO_DEBOUNCE_EN */       2784 /* Bit definitions for GPIO_DEBOUNCE_EN */
2770 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_7_DEBOUN    2785 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_7_DEBOUNCE_EN              0x80
2771 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_7_DEBOUN    2786 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_7_DEBOUNCE_EN_SHIFT        0x07
2772 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_6_DEBOUN    2787 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_6_DEBOUNCE_EN              0x40
2773 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_6_DEBOUN    2788 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_6_DEBOUNCE_EN_SHIFT        0x06
2774 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_5_DEBOUN    2789 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_5_DEBOUNCE_EN              0x20
2775 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_5_DEBOUN    2790 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_5_DEBOUNCE_EN_SHIFT        0x05
2776 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_4_DEBOUN    2791 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_4_DEBOUNCE_EN              0x10
2777 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_4_DEBOUN    2792 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_4_DEBOUNCE_EN_SHIFT        0x04
2778 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_3_DEBOUN    2793 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_3_DEBOUNCE_EN              0x08
2779 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_3_DEBOUN    2794 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_3_DEBOUNCE_EN_SHIFT        0x03
2780 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_2_DEBOUN    2795 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_2_DEBOUNCE_EN              0x04
2781 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_2_DEBOUN    2796 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_2_DEBOUNCE_EN_SHIFT        0x02
2782 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_1_DEBOUN    2797 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_1_DEBOUNCE_EN              0x02
2783 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_1_DEBOUN    2798 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_1_DEBOUNCE_EN_SHIFT        0x01
2784 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_0_DEBOUN    2799 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_0_DEBOUNCE_EN              0x01
2785 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_0_DEBOUN    2800 #define PALMAS_GPIO_DEBOUNCE_EN_GPIO_0_DEBOUNCE_EN_SHIFT        0x00
2786                                                  2801 
2787 /* Bit definitions for GPIO_CLEAR_DATA_OUT */    2802 /* Bit definitions for GPIO_CLEAR_DATA_OUT */
2788 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_7_CLE    2803 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_7_CLEAR_DATA_OUT        0x80
2789 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_7_CLE    2804 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_7_CLEAR_DATA_OUT_SHIFT  0x07
2790 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_6_CLE    2805 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_6_CLEAR_DATA_OUT        0x40
2791 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_6_CLE    2806 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_6_CLEAR_DATA_OUT_SHIFT  0x06
2792 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_5_CLE    2807 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_5_CLEAR_DATA_OUT        0x20
2793 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_5_CLE    2808 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_5_CLEAR_DATA_OUT_SHIFT  0x05
2794 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_4_CLE    2809 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_4_CLEAR_DATA_OUT        0x10
2795 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_4_CLE    2810 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_4_CLEAR_DATA_OUT_SHIFT  0x04
2796 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_3_CLE    2811 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_3_CLEAR_DATA_OUT        0x08
2797 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_3_CLE    2812 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_3_CLEAR_DATA_OUT_SHIFT  0x03
2798 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_2_CLE    2813 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_2_CLEAR_DATA_OUT        0x04
2799 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_2_CLE    2814 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_2_CLEAR_DATA_OUT_SHIFT  0x02
2800 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_1_CLE    2815 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_1_CLEAR_DATA_OUT        0x02
2801 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_1_CLE    2816 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_1_CLEAR_DATA_OUT_SHIFT  0x01
2802 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_0_CLE    2817 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_0_CLEAR_DATA_OUT        0x01
2803 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_0_CLE    2818 #define PALMAS_GPIO_CLEAR_DATA_OUT_GPIO_0_CLEAR_DATA_OUT_SHIFT  0x00
2804                                                  2819 
2805 /* Bit definitions for GPIO_SET_DATA_OUT */      2820 /* Bit definitions for GPIO_SET_DATA_OUT */
2806 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_7_SET_D    2821 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_7_SET_DATA_OUT            0x80
2807 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_7_SET_D    2822 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_7_SET_DATA_OUT_SHIFT      0x07
2808 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_6_SET_D    2823 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_6_SET_DATA_OUT            0x40
2809 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_6_SET_D    2824 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_6_SET_DATA_OUT_SHIFT      0x06
2810 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_5_SET_D    2825 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_5_SET_DATA_OUT            0x20
2811 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_5_SET_D    2826 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_5_SET_DATA_OUT_SHIFT      0x05
2812 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_4_SET_D    2827 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_4_SET_DATA_OUT            0x10
2813 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_4_SET_D    2828 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_4_SET_DATA_OUT_SHIFT      0x04
2814 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_3_SET_D    2829 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_3_SET_DATA_OUT            0x08
2815 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_3_SET_D    2830 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_3_SET_DATA_OUT_SHIFT      0x03
2816 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_2_SET_D    2831 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_2_SET_DATA_OUT            0x04
2817 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_2_SET_D    2832 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_2_SET_DATA_OUT_SHIFT      0x02
2818 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_1_SET_D    2833 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_1_SET_DATA_OUT            0x02
2819 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_1_SET_D    2834 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_1_SET_DATA_OUT_SHIFT      0x01
2820 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_0_SET_D    2835 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_0_SET_DATA_OUT            0x01
2821 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_0_SET_D    2836 #define PALMAS_GPIO_SET_DATA_OUT_GPIO_0_SET_DATA_OUT_SHIFT      0x00
2822                                                  2837 
2823 /* Bit definitions for PU_PD_GPIO_CTRL1 */       2838 /* Bit definitions for PU_PD_GPIO_CTRL1 */
2824 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_3_PD        2839 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_3_PD                       0x40
2825 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_3_PD_SHI    2840 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_3_PD_SHIFT                 0x06
2826 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_2_PU        2841 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_2_PU                       0x20
2827 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_2_PU_SHI    2842 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_2_PU_SHIFT                 0x05
2828 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_2_PD        2843 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_2_PD                       0x10
2829 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_2_PD_SHI    2844 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_2_PD_SHIFT                 0x04
2830 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_1_PU        2845 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_1_PU                       0x08
2831 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_1_PU_SHI    2846 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_1_PU_SHIFT                 0x03
2832 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_1_PD        2847 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_1_PD                       0x04
2833 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_1_PD_SHI    2848 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_1_PD_SHIFT                 0x02
2834 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_0_PD        2849 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_0_PD                       0x01
2835 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_0_PD_SHI    2850 #define PALMAS_PU_PD_GPIO_CTRL1_GPIO_0_PD_SHIFT                 0x00
2836                                                  2851 
2837 /* Bit definitions for PU_PD_GPIO_CTRL2 */       2852 /* Bit definitions for PU_PD_GPIO_CTRL2 */
2838 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_7_PD        2853 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_7_PD                       0x40
2839 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_7_PD_SHI    2854 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_7_PD_SHIFT                 0x06
2840 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_6_PU        2855 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_6_PU                       0x20
2841 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_6_PU_SHI    2856 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_6_PU_SHIFT                 0x05
2842 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_6_PD        2857 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_6_PD                       0x10
2843 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_6_PD_SHI    2858 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_6_PD_SHIFT                 0x04
2844 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_5_PU        2859 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_5_PU                       0x08
2845 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_5_PU_SHI    2860 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_5_PU_SHIFT                 0x03
2846 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_5_PD        2861 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_5_PD                       0x04
2847 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_5_PD_SHI    2862 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_5_PD_SHIFT                 0x02
2848 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_4_PU        2863 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_4_PU                       0x02
2849 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_4_PU_SHI    2864 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_4_PU_SHIFT                 0x01
2850 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_4_PD        2865 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_4_PD                       0x01
2851 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_4_PD_SHI    2866 #define PALMAS_PU_PD_GPIO_CTRL2_GPIO_4_PD_SHIFT                 0x00
2852                                                  2867 
2853 /* Bit definitions for OD_OUTPUT_GPIO_CTRL */    2868 /* Bit definitions for OD_OUTPUT_GPIO_CTRL */
2854 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_5_OD     2869 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_5_OD                    0x20
2855 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_5_OD_    2870 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_5_OD_SHIFT              0x05
2856 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_2_OD     2871 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_2_OD                    0x04
2857 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_2_OD_    2872 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_2_OD_SHIFT              0x02
2858 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_1_OD     2873 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_1_OD                    0x02
2859 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_1_OD_    2874 #define PALMAS_OD_OUTPUT_GPIO_CTRL_GPIO_1_OD_SHIFT              0x01
2860                                                  2875 
2861 /* Registers for function GPADC */               2876 /* Registers for function GPADC */
2862 #define PALMAS_GPADC_CTRL1                       2877 #define PALMAS_GPADC_CTRL1                                      0x00
2863 #define PALMAS_GPADC_CTRL2                       2878 #define PALMAS_GPADC_CTRL2                                      0x01
2864 #define PALMAS_GPADC_RT_CTRL                     2879 #define PALMAS_GPADC_RT_CTRL                                    0x02
2865 #define PALMAS_GPADC_AUTO_CTRL                   2880 #define PALMAS_GPADC_AUTO_CTRL                                  0x03
2866 #define PALMAS_GPADC_STATUS                      2881 #define PALMAS_GPADC_STATUS                                     0x04
2867 #define PALMAS_GPADC_RT_SELECT                   2882 #define PALMAS_GPADC_RT_SELECT                                  0x05
2868 #define PALMAS_GPADC_RT_CONV0_LSB                2883 #define PALMAS_GPADC_RT_CONV0_LSB                               0x06
2869 #define PALMAS_GPADC_RT_CONV0_MSB                2884 #define PALMAS_GPADC_RT_CONV0_MSB                               0x07
2870 #define PALMAS_GPADC_AUTO_SELECT                 2885 #define PALMAS_GPADC_AUTO_SELECT                                0x08
2871 #define PALMAS_GPADC_AUTO_CONV0_LSB              2886 #define PALMAS_GPADC_AUTO_CONV0_LSB                             0x09
2872 #define PALMAS_GPADC_AUTO_CONV0_MSB              2887 #define PALMAS_GPADC_AUTO_CONV0_MSB                             0x0A
2873 #define PALMAS_GPADC_AUTO_CONV1_LSB              2888 #define PALMAS_GPADC_AUTO_CONV1_LSB                             0x0B
2874 #define PALMAS_GPADC_AUTO_CONV1_MSB              2889 #define PALMAS_GPADC_AUTO_CONV1_MSB                             0x0C
2875 #define PALMAS_GPADC_SW_SELECT                   2890 #define PALMAS_GPADC_SW_SELECT                                  0x0D
2876 #define PALMAS_GPADC_SW_CONV0_LSB                2891 #define PALMAS_GPADC_SW_CONV0_LSB                               0x0E
2877 #define PALMAS_GPADC_SW_CONV0_MSB                2892 #define PALMAS_GPADC_SW_CONV0_MSB                               0x0F
2878 #define PALMAS_GPADC_THRES_CONV0_LSB             2893 #define PALMAS_GPADC_THRES_CONV0_LSB                            0x10
2879 #define PALMAS_GPADC_THRES_CONV0_MSB             2894 #define PALMAS_GPADC_THRES_CONV0_MSB                            0x11
2880 #define PALMAS_GPADC_THRES_CONV1_LSB             2895 #define PALMAS_GPADC_THRES_CONV1_LSB                            0x12
2881 #define PALMAS_GPADC_THRES_CONV1_MSB             2896 #define PALMAS_GPADC_THRES_CONV1_MSB                            0x13
2882 #define PALMAS_GPADC_SMPS_ILMONITOR_EN           2897 #define PALMAS_GPADC_SMPS_ILMONITOR_EN                          0x14
2883 #define PALMAS_GPADC_SMPS_VSEL_MONITORING        2898 #define PALMAS_GPADC_SMPS_VSEL_MONITORING                       0x15
2884                                                  2899 
2885 /* Bit definitions for GPADC_CTRL1 */            2900 /* Bit definitions for GPADC_CTRL1 */
2886 #define PALMAS_GPADC_CTRL1_RESERVED_MASK         2901 #define PALMAS_GPADC_CTRL1_RESERVED_MASK                        0xc0
2887 #define PALMAS_GPADC_CTRL1_RESERVED_SHIFT        2902 #define PALMAS_GPADC_CTRL1_RESERVED_SHIFT                       0x06
2888 #define PALMAS_GPADC_CTRL1_CURRENT_SRC_CH3_MA    2903 #define PALMAS_GPADC_CTRL1_CURRENT_SRC_CH3_MASK                 0x30
2889 #define PALMAS_GPADC_CTRL1_CURRENT_SRC_CH3_SH    2904 #define PALMAS_GPADC_CTRL1_CURRENT_SRC_CH3_SHIFT                0x04
2890 #define PALMAS_GPADC_CTRL1_CURRENT_SRC_CH0_MA    2905 #define PALMAS_GPADC_CTRL1_CURRENT_SRC_CH0_MASK                 0x0c
2891 #define PALMAS_GPADC_CTRL1_CURRENT_SRC_CH0_SH    2906 #define PALMAS_GPADC_CTRL1_CURRENT_SRC_CH0_SHIFT                0x02
2892 #define PALMAS_GPADC_CTRL1_BAT_REMOVAL_DET       2907 #define PALMAS_GPADC_CTRL1_BAT_REMOVAL_DET                      0x02
2893 #define PALMAS_GPADC_CTRL1_BAT_REMOVAL_DET_SH    2908 #define PALMAS_GPADC_CTRL1_BAT_REMOVAL_DET_SHIFT                0x01
2894 #define PALMAS_GPADC_CTRL1_GPADC_FORCE           2909 #define PALMAS_GPADC_CTRL1_GPADC_FORCE                          0x01
2895 #define PALMAS_GPADC_CTRL1_GPADC_FORCE_SHIFT     2910 #define PALMAS_GPADC_CTRL1_GPADC_FORCE_SHIFT                    0x00
2896                                                  2911 
2897 /* Bit definitions for GPADC_CTRL2 */            2912 /* Bit definitions for GPADC_CTRL2 */
2898 #define PALMAS_GPADC_CTRL2_RESERVED_MASK         2913 #define PALMAS_GPADC_CTRL2_RESERVED_MASK                        0x06
2899 #define PALMAS_GPADC_CTRL2_RESERVED_SHIFT        2914 #define PALMAS_GPADC_CTRL2_RESERVED_SHIFT                       0x01
2900                                                  2915 
2901 /* Bit definitions for GPADC_RT_CTRL */          2916 /* Bit definitions for GPADC_RT_CTRL */
2902 #define PALMAS_GPADC_RT_CTRL_EXTEND_DELAY        2917 #define PALMAS_GPADC_RT_CTRL_EXTEND_DELAY                       0x02
2903 #define PALMAS_GPADC_RT_CTRL_EXTEND_DELAY_SHI    2918 #define PALMAS_GPADC_RT_CTRL_EXTEND_DELAY_SHIFT                 0x01
2904 #define PALMAS_GPADC_RT_CTRL_START_POLARITY      2919 #define PALMAS_GPADC_RT_CTRL_START_POLARITY                     0x01
2905 #define PALMAS_GPADC_RT_CTRL_START_POLARITY_S    2920 #define PALMAS_GPADC_RT_CTRL_START_POLARITY_SHIFT               0x00
2906                                                  2921 
2907 /* Bit definitions for GPADC_AUTO_CTRL */        2922 /* Bit definitions for GPADC_AUTO_CTRL */
2908 #define PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1    2923 #define PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1                   0x80
2909 #define PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1    2924 #define PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV1_SHIFT             0x07
2910 #define PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0    2925 #define PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0                   0x40
2911 #define PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0    2926 #define PALMAS_GPADC_AUTO_CTRL_SHUTDOWN_CONV0_SHIFT             0x06
2912 #define PALMAS_GPADC_AUTO_CTRL_AUTO_CONV1_EN     2927 #define PALMAS_GPADC_AUTO_CTRL_AUTO_CONV1_EN                    0x20
2913 #define PALMAS_GPADC_AUTO_CTRL_AUTO_CONV1_EN_    2928 #define PALMAS_GPADC_AUTO_CTRL_AUTO_CONV1_EN_SHIFT              0x05
2914 #define PALMAS_GPADC_AUTO_CTRL_AUTO_CONV0_EN     2929 #define PALMAS_GPADC_AUTO_CTRL_AUTO_CONV0_EN                    0x10
2915 #define PALMAS_GPADC_AUTO_CTRL_AUTO_CONV0_EN_    2930 #define PALMAS_GPADC_AUTO_CTRL_AUTO_CONV0_EN_SHIFT              0x04
2916 #define PALMAS_GPADC_AUTO_CTRL_COUNTER_CONV_M    2931 #define PALMAS_GPADC_AUTO_CTRL_COUNTER_CONV_MASK                0x0F
2917 #define PALMAS_GPADC_AUTO_CTRL_COUNTER_CONV_S    2932 #define PALMAS_GPADC_AUTO_CTRL_COUNTER_CONV_SHIFT               0x00
2918                                                  2933 
2919 /* Bit definitions for GPADC_STATUS */           2934 /* Bit definitions for GPADC_STATUS */
2920 #define PALMAS_GPADC_STATUS_GPADC_AVAILABLE      2935 #define PALMAS_GPADC_STATUS_GPADC_AVAILABLE                     0x10
2921 #define PALMAS_GPADC_STATUS_GPADC_AVAILABLE_S    2936 #define PALMAS_GPADC_STATUS_GPADC_AVAILABLE_SHIFT               0x04
2922                                                  2937 
2923 /* Bit definitions for GPADC_RT_SELECT */        2938 /* Bit definitions for GPADC_RT_SELECT */
2924 #define PALMAS_GPADC_RT_SELECT_RT_CONV_EN        2939 #define PALMAS_GPADC_RT_SELECT_RT_CONV_EN                       0x80
2925 #define PALMAS_GPADC_RT_SELECT_RT_CONV_EN_SHI    2940 #define PALMAS_GPADC_RT_SELECT_RT_CONV_EN_SHIFT                 0x07
2926 #define PALMAS_GPADC_RT_SELECT_RT_CONV0_SEL_M    2941 #define PALMAS_GPADC_RT_SELECT_RT_CONV0_SEL_MASK                0x0F
2927 #define PALMAS_GPADC_RT_SELECT_RT_CONV0_SEL_S    2942 #define PALMAS_GPADC_RT_SELECT_RT_CONV0_SEL_SHIFT               0x00
2928                                                  2943 
2929 /* Bit definitions for GPADC_RT_CONV0_LSB */     2944 /* Bit definitions for GPADC_RT_CONV0_LSB */
2930 #define PALMAS_GPADC_RT_CONV0_LSB_RT_CONV0_LS    2945 #define PALMAS_GPADC_RT_CONV0_LSB_RT_CONV0_LSB_MASK             0xFF
2931 #define PALMAS_GPADC_RT_CONV0_LSB_RT_CONV0_LS    2946 #define PALMAS_GPADC_RT_CONV0_LSB_RT_CONV0_LSB_SHIFT            0x00
2932                                                  2947 
2933 /* Bit definitions for GPADC_RT_CONV0_MSB */     2948 /* Bit definitions for GPADC_RT_CONV0_MSB */
2934 #define PALMAS_GPADC_RT_CONV0_MSB_RT_CONV0_MS    2949 #define PALMAS_GPADC_RT_CONV0_MSB_RT_CONV0_MSB_MASK             0x0F
2935 #define PALMAS_GPADC_RT_CONV0_MSB_RT_CONV0_MS    2950 #define PALMAS_GPADC_RT_CONV0_MSB_RT_CONV0_MSB_SHIFT            0x00
2936                                                  2951 
2937 /* Bit definitions for GPADC_AUTO_SELECT */      2952 /* Bit definitions for GPADC_AUTO_SELECT */
2938 #define PALMAS_GPADC_AUTO_SELECT_AUTO_CONV1_S    2953 #define PALMAS_GPADC_AUTO_SELECT_AUTO_CONV1_SEL_MASK            0xF0
2939 #define PALMAS_GPADC_AUTO_SELECT_AUTO_CONV1_S    2954 #define PALMAS_GPADC_AUTO_SELECT_AUTO_CONV1_SEL_SHIFT           0x04
2940 #define PALMAS_GPADC_AUTO_SELECT_AUTO_CONV0_S    2955 #define PALMAS_GPADC_AUTO_SELECT_AUTO_CONV0_SEL_MASK            0x0F
2941 #define PALMAS_GPADC_AUTO_SELECT_AUTO_CONV0_S    2956 #define PALMAS_GPADC_AUTO_SELECT_AUTO_CONV0_SEL_SHIFT           0x00
2942                                                  2957 
2943 /* Bit definitions for GPADC_AUTO_CONV0_LSB *    2958 /* Bit definitions for GPADC_AUTO_CONV0_LSB */
2944 #define PALMAS_GPADC_AUTO_CONV0_LSB_AUTO_CONV    2959 #define PALMAS_GPADC_AUTO_CONV0_LSB_AUTO_CONV0_LSB_MASK         0xFF
2945 #define PALMAS_GPADC_AUTO_CONV0_LSB_AUTO_CONV    2960 #define PALMAS_GPADC_AUTO_CONV0_LSB_AUTO_CONV0_LSB_SHIFT        0x00
2946                                                  2961 
2947 /* Bit definitions for GPADC_AUTO_CONV0_MSB *    2962 /* Bit definitions for GPADC_AUTO_CONV0_MSB */
2948 #define PALMAS_GPADC_AUTO_CONV0_MSB_AUTO_CONV    2963 #define PALMAS_GPADC_AUTO_CONV0_MSB_AUTO_CONV0_MSB_MASK         0x0F
2949 #define PALMAS_GPADC_AUTO_CONV0_MSB_AUTO_CONV    2964 #define PALMAS_GPADC_AUTO_CONV0_MSB_AUTO_CONV0_MSB_SHIFT        0x00
2950                                                  2965 
2951 /* Bit definitions for GPADC_AUTO_CONV1_LSB *    2966 /* Bit definitions for GPADC_AUTO_CONV1_LSB */
2952 #define PALMAS_GPADC_AUTO_CONV1_LSB_AUTO_CONV    2967 #define PALMAS_GPADC_AUTO_CONV1_LSB_AUTO_CONV1_LSB_MASK         0xFF
2953 #define PALMAS_GPADC_AUTO_CONV1_LSB_AUTO_CONV    2968 #define PALMAS_GPADC_AUTO_CONV1_LSB_AUTO_CONV1_LSB_SHIFT        0x00
2954                                                  2969 
2955 /* Bit definitions for GPADC_AUTO_CONV1_MSB *    2970 /* Bit definitions for GPADC_AUTO_CONV1_MSB */
2956 #define PALMAS_GPADC_AUTO_CONV1_MSB_AUTO_CONV    2971 #define PALMAS_GPADC_AUTO_CONV1_MSB_AUTO_CONV1_MSB_MASK         0x0F
2957 #define PALMAS_GPADC_AUTO_CONV1_MSB_AUTO_CONV    2972 #define PALMAS_GPADC_AUTO_CONV1_MSB_AUTO_CONV1_MSB_SHIFT        0x00
2958                                                  2973 
2959 /* Bit definitions for GPADC_SW_SELECT */        2974 /* Bit definitions for GPADC_SW_SELECT */
2960 #define PALMAS_GPADC_SW_SELECT_SW_CONV_EN        2975 #define PALMAS_GPADC_SW_SELECT_SW_CONV_EN                       0x80
2961 #define PALMAS_GPADC_SW_SELECT_SW_CONV_EN_SHI    2976 #define PALMAS_GPADC_SW_SELECT_SW_CONV_EN_SHIFT                 0x07
2962 #define PALMAS_GPADC_SW_SELECT_SW_START_CONV0    2977 #define PALMAS_GPADC_SW_SELECT_SW_START_CONV0                   0x10
2963 #define PALMAS_GPADC_SW_SELECT_SW_START_CONV0    2978 #define PALMAS_GPADC_SW_SELECT_SW_START_CONV0_SHIFT             0x04
2964 #define PALMAS_GPADC_SW_SELECT_SW_CONV0_SEL_M    2979 #define PALMAS_GPADC_SW_SELECT_SW_CONV0_SEL_MASK                0x0F
2965 #define PALMAS_GPADC_SW_SELECT_SW_CONV0_SEL_S    2980 #define PALMAS_GPADC_SW_SELECT_SW_CONV0_SEL_SHIFT               0x00
2966                                                  2981 
2967 /* Bit definitions for GPADC_SW_CONV0_LSB */     2982 /* Bit definitions for GPADC_SW_CONV0_LSB */
2968 #define PALMAS_GPADC_SW_CONV0_LSB_SW_CONV0_LS    2983 #define PALMAS_GPADC_SW_CONV0_LSB_SW_CONV0_LSB_MASK             0xFF
2969 #define PALMAS_GPADC_SW_CONV0_LSB_SW_CONV0_LS    2984 #define PALMAS_GPADC_SW_CONV0_LSB_SW_CONV0_LSB_SHIFT            0x00
2970                                                  2985 
2971 /* Bit definitions for GPADC_SW_CONV0_MSB */     2986 /* Bit definitions for GPADC_SW_CONV0_MSB */
2972 #define PALMAS_GPADC_SW_CONV0_MSB_SW_CONV0_MS    2987 #define PALMAS_GPADC_SW_CONV0_MSB_SW_CONV0_MSB_MASK             0x0F
2973 #define PALMAS_GPADC_SW_CONV0_MSB_SW_CONV0_MS    2988 #define PALMAS_GPADC_SW_CONV0_MSB_SW_CONV0_MSB_SHIFT            0x00
2974                                                  2989 
2975 /* Bit definitions for GPADC_THRES_CONV0_LSB     2990 /* Bit definitions for GPADC_THRES_CONV0_LSB */
2976 #define PALMAS_GPADC_THRES_CONV0_LSB_THRES_CO    2991 #define PALMAS_GPADC_THRES_CONV0_LSB_THRES_CONV0_LSB_MASK       0xFF
2977 #define PALMAS_GPADC_THRES_CONV0_LSB_THRES_CO    2992 #define PALMAS_GPADC_THRES_CONV0_LSB_THRES_CONV0_LSB_SHIFT      0x00
2978                                                  2993 
2979 /* Bit definitions for GPADC_THRES_CONV0_MSB     2994 /* Bit definitions for GPADC_THRES_CONV0_MSB */
2980 #define PALMAS_GPADC_THRES_CONV0_MSB_THRES_CO    2995 #define PALMAS_GPADC_THRES_CONV0_MSB_THRES_CONV0_POL            0x80
2981 #define PALMAS_GPADC_THRES_CONV0_MSB_THRES_CO    2996 #define PALMAS_GPADC_THRES_CONV0_MSB_THRES_CONV0_POL_SHIFT      0x07
2982 #define PALMAS_GPADC_THRES_CONV0_MSB_THRES_CO    2997 #define PALMAS_GPADC_THRES_CONV0_MSB_THRES_CONV0_MSB_MASK       0x0F
2983 #define PALMAS_GPADC_THRES_CONV0_MSB_THRES_CO    2998 #define PALMAS_GPADC_THRES_CONV0_MSB_THRES_CONV0_MSB_SHIFT      0x00
2984                                                  2999 
2985 /* Bit definitions for GPADC_THRES_CONV1_LSB     3000 /* Bit definitions for GPADC_THRES_CONV1_LSB */
2986 #define PALMAS_GPADC_THRES_CONV1_LSB_THRES_CO    3001 #define PALMAS_GPADC_THRES_CONV1_LSB_THRES_CONV1_LSB_MASK       0xFF
2987 #define PALMAS_GPADC_THRES_CONV1_LSB_THRES_CO    3002 #define PALMAS_GPADC_THRES_CONV1_LSB_THRES_CONV1_LSB_SHIFT      0x00
2988                                                  3003 
2989 /* Bit definitions for GPADC_THRES_CONV1_MSB     3004 /* Bit definitions for GPADC_THRES_CONV1_MSB */
2990 #define PALMAS_GPADC_THRES_CONV1_MSB_THRES_CO    3005 #define PALMAS_GPADC_THRES_CONV1_MSB_THRES_CONV1_POL            0x80
2991 #define PALMAS_GPADC_THRES_CONV1_MSB_THRES_CO    3006 #define PALMAS_GPADC_THRES_CONV1_MSB_THRES_CONV1_POL_SHIFT      0x07
2992 #define PALMAS_GPADC_THRES_CONV1_MSB_THRES_CO    3007 #define PALMAS_GPADC_THRES_CONV1_MSB_THRES_CONV1_MSB_MASK       0x0F
2993 #define PALMAS_GPADC_THRES_CONV1_MSB_THRES_CO    3008 #define PALMAS_GPADC_THRES_CONV1_MSB_THRES_CONV1_MSB_SHIFT      0x00
2994                                                  3009 
2995 /* Bit definitions for GPADC_SMPS_ILMONITOR_E    3010 /* Bit definitions for GPADC_SMPS_ILMONITOR_EN */
2996 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_I    3011 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_ILMON_EN            0x20
2997 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_I    3012 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_ILMON_EN_SHIFT      0x05
2998 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_I    3013 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_ILMON_REXT          0x10
2999 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_I    3014 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_ILMON_REXT_SHIFT    0x04
3000 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_I    3015 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_ILMON_SEL_MASK      0x0F
3001 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_I    3016 #define PALMAS_GPADC_SMPS_ILMONITOR_EN_SMPS_ILMON_SEL_SHIFT     0x00
3002                                                  3017 
3003 /* Bit definitions for GPADC_SMPS_VSEL_MONITO    3018 /* Bit definitions for GPADC_SMPS_VSEL_MONITORING */
3004 #define PALMAS_GPADC_SMPS_VSEL_MONITORING_ACT    3019 #define PALMAS_GPADC_SMPS_VSEL_MONITORING_ACTIVE_PHASE          0x80
3005 #define PALMAS_GPADC_SMPS_VSEL_MONITORING_ACT    3020 #define PALMAS_GPADC_SMPS_VSEL_MONITORING_ACTIVE_PHASE_SHIFT    0x07
3006 #define PALMAS_GPADC_SMPS_VSEL_MONITORING_SMP    3021 #define PALMAS_GPADC_SMPS_VSEL_MONITORING_SMPS_VSEL_MONITORING_MASK     0x7F
3007 #define PALMAS_GPADC_SMPS_VSEL_MONITORING_SMP    3022 #define PALMAS_GPADC_SMPS_VSEL_MONITORING_SMPS_VSEL_MONITORING_SHIFT    0x00
3008                                                  3023 
3009 /* Registers for function GPADC */               3024 /* Registers for function GPADC */
3010 #define PALMAS_GPADC_TRIM1                       3025 #define PALMAS_GPADC_TRIM1                                      0x00
3011 #define PALMAS_GPADC_TRIM2                       3026 #define PALMAS_GPADC_TRIM2                                      0x01
3012 #define PALMAS_GPADC_TRIM3                       3027 #define PALMAS_GPADC_TRIM3                                      0x02
3013 #define PALMAS_GPADC_TRIM4                       3028 #define PALMAS_GPADC_TRIM4                                      0x03
3014 #define PALMAS_GPADC_TRIM5                       3029 #define PALMAS_GPADC_TRIM5                                      0x04
3015 #define PALMAS_GPADC_TRIM6                       3030 #define PALMAS_GPADC_TRIM6                                      0x05
3016 #define PALMAS_GPADC_TRIM7                       3031 #define PALMAS_GPADC_TRIM7                                      0x06
3017 #define PALMAS_GPADC_TRIM8                       3032 #define PALMAS_GPADC_TRIM8                                      0x07
3018 #define PALMAS_GPADC_TRIM9                       3033 #define PALMAS_GPADC_TRIM9                                      0x08
3019 #define PALMAS_GPADC_TRIM10                      3034 #define PALMAS_GPADC_TRIM10                                     0x09
3020 #define PALMAS_GPADC_TRIM11                      3035 #define PALMAS_GPADC_TRIM11                                     0x0A
3021 #define PALMAS_GPADC_TRIM12                      3036 #define PALMAS_GPADC_TRIM12                                     0x0B
3022 #define PALMAS_GPADC_TRIM13                      3037 #define PALMAS_GPADC_TRIM13                                     0x0C
3023 #define PALMAS_GPADC_TRIM14                      3038 #define PALMAS_GPADC_TRIM14                                     0x0D
3024 #define PALMAS_GPADC_TRIM15                      3039 #define PALMAS_GPADC_TRIM15                                     0x0E
3025 #define PALMAS_GPADC_TRIM16                      3040 #define PALMAS_GPADC_TRIM16                                     0x0F
3026                                                  3041 
3027 /* TPS659038 regen2_ctrl offset iss different    3042 /* TPS659038 regen2_ctrl offset iss different from palmas */
3028 #define TPS659038_REGEN2_CTRL                    3043 #define TPS659038_REGEN2_CTRL                                   0x12
3029                                                  3044 
3030 /* TPS65917 Interrupt registers */               3045 /* TPS65917 Interrupt registers */
3031                                                  3046 
3032 /* Registers for function INTERRUPT */           3047 /* Registers for function INTERRUPT */
3033 #define TPS65917_INT1_STATUS                     3048 #define TPS65917_INT1_STATUS                                    0x00
3034 #define TPS65917_INT1_MASK                       3049 #define TPS65917_INT1_MASK                                      0x01
3035 #define TPS65917_INT1_LINE_STATE                 3050 #define TPS65917_INT1_LINE_STATE                                0x02
3036 #define TPS65917_INT2_STATUS                     3051 #define TPS65917_INT2_STATUS                                    0x05
3037 #define TPS65917_INT2_MASK                       3052 #define TPS65917_INT2_MASK                                      0x06
3038 #define TPS65917_INT2_LINE_STATE                 3053 #define TPS65917_INT2_LINE_STATE                                0x07
3039 #define TPS65917_INT3_STATUS                     3054 #define TPS65917_INT3_STATUS                                    0x0A
3040 #define TPS65917_INT3_MASK                       3055 #define TPS65917_INT3_MASK                                      0x0B
3041 #define TPS65917_INT3_LINE_STATE                 3056 #define TPS65917_INT3_LINE_STATE                                0x0C
3042 #define TPS65917_INT4_STATUS                     3057 #define TPS65917_INT4_STATUS                                    0x0F
3043 #define TPS65917_INT4_MASK                       3058 #define TPS65917_INT4_MASK                                      0x10
3044 #define TPS65917_INT4_LINE_STATE                 3059 #define TPS65917_INT4_LINE_STATE                                0x11
3045 #define TPS65917_INT4_EDGE_DETECT1               3060 #define TPS65917_INT4_EDGE_DETECT1                              0x12
3046 #define TPS65917_INT4_EDGE_DETECT2               3061 #define TPS65917_INT4_EDGE_DETECT2                              0x13
3047 #define TPS65917_INT_CTRL                        3062 #define TPS65917_INT_CTRL                                       0x14
3048                                                  3063 
3049 /* Bit definitions for INT1_STATUS */            3064 /* Bit definitions for INT1_STATUS */
3050 #define TPS65917_INT1_STATUS_VSYS_MON            3065 #define TPS65917_INT1_STATUS_VSYS_MON                           0x40
3051 #define TPS65917_INT1_STATUS_VSYS_MON_SHIFT      3066 #define TPS65917_INT1_STATUS_VSYS_MON_SHIFT                     0x06
3052 #define TPS65917_INT1_STATUS_HOTDIE              3067 #define TPS65917_INT1_STATUS_HOTDIE                             0x20
3053 #define TPS65917_INT1_STATUS_HOTDIE_SHIFT        3068 #define TPS65917_INT1_STATUS_HOTDIE_SHIFT                       0x05
3054 #define TPS65917_INT1_STATUS_PWRDOWN             3069 #define TPS65917_INT1_STATUS_PWRDOWN                            0x10
3055 #define TPS65917_INT1_STATUS_PWRDOWN_SHIFT       3070 #define TPS65917_INT1_STATUS_PWRDOWN_SHIFT                      0x04
3056 #define TPS65917_INT1_STATUS_LONG_PRESS_KEY      3071 #define TPS65917_INT1_STATUS_LONG_PRESS_KEY                     0x04
3057 #define TPS65917_INT1_STATUS_LONG_PRESS_KEY_S    3072 #define TPS65917_INT1_STATUS_LONG_PRESS_KEY_SHIFT               0x02
3058 #define TPS65917_INT1_STATUS_PWRON               3073 #define TPS65917_INT1_STATUS_PWRON                              0x02
3059 #define TPS65917_INT1_STATUS_PWRON_SHIFT         3074 #define TPS65917_INT1_STATUS_PWRON_SHIFT                        0x01
3060                                                  3075 
3061 /* Bit definitions for INT1_MASK */              3076 /* Bit definitions for INT1_MASK */
3062 #define TPS65917_INT1_MASK_VSYS_MON              3077 #define TPS65917_INT1_MASK_VSYS_MON                             0x40
3063 #define TPS65917_INT1_MASK_VSYS_MON_SHIFT        3078 #define TPS65917_INT1_MASK_VSYS_MON_SHIFT                       0x06
3064 #define TPS65917_INT1_MASK_HOTDIE                3079 #define TPS65917_INT1_MASK_HOTDIE                               0x20
3065 #define TPS65917_INT1_MASK_HOTDIE_SHIFT          3080 #define TPS65917_INT1_MASK_HOTDIE_SHIFT                 0x05
3066 #define TPS65917_INT1_MASK_PWRDOWN               3081 #define TPS65917_INT1_MASK_PWRDOWN                              0x10
3067 #define TPS65917_INT1_MASK_PWRDOWN_SHIFT         3082 #define TPS65917_INT1_MASK_PWRDOWN_SHIFT                        0x04
3068 #define TPS65917_INT1_MASK_LONG_PRESS_KEY        3083 #define TPS65917_INT1_MASK_LONG_PRESS_KEY                       0x04
3069 #define TPS65917_INT1_MASK_LONG_PRESS_KEY_SHI    3084 #define TPS65917_INT1_MASK_LONG_PRESS_KEY_SHIFT         0x02
3070 #define TPS65917_INT1_MASK_PWRON                 3085 #define TPS65917_INT1_MASK_PWRON                                0x02
3071 #define TPS65917_INT1_MASK_PWRON_SHIFT           3086 #define TPS65917_INT1_MASK_PWRON_SHIFT                          0x01
3072                                                  3087 
3073 /* Bit definitions for INT1_LINE_STATE */        3088 /* Bit definitions for INT1_LINE_STATE */
3074 #define TPS65917_INT1_LINE_STATE_VSYS_MON        3089 #define TPS65917_INT1_LINE_STATE_VSYS_MON                       0x40
3075 #define TPS65917_INT1_LINE_STATE_VSYS_MON_SHI    3090 #define TPS65917_INT1_LINE_STATE_VSYS_MON_SHIFT         0x06
3076 #define TPS65917_INT1_LINE_STATE_HOTDIE          3091 #define TPS65917_INT1_LINE_STATE_HOTDIE                 0x20
3077 #define TPS65917_INT1_LINE_STATE_HOTDIE_SHIFT    3092 #define TPS65917_INT1_LINE_STATE_HOTDIE_SHIFT                   0x05
3078 #define TPS65917_INT1_LINE_STATE_PWRDOWN         3093 #define TPS65917_INT1_LINE_STATE_PWRDOWN                        0x10
3079 #define TPS65917_INT1_LINE_STATE_PWRDOWN_SHIF    3094 #define TPS65917_INT1_LINE_STATE_PWRDOWN_SHIFT                  0x04
3080 #define TPS65917_INT1_LINE_STATE_LONG_PRESS_K    3095 #define TPS65917_INT1_LINE_STATE_LONG_PRESS_KEY         0x04
3081 #define TPS65917_INT1_LINE_STATE_LONG_PRESS_K    3096 #define TPS65917_INT1_LINE_STATE_LONG_PRESS_KEY_SHIFT           0x02
3082 #define TPS65917_INT1_LINE_STATE_PWRON           3097 #define TPS65917_INT1_LINE_STATE_PWRON                          0x02
3083 #define TPS65917_INT1_LINE_STATE_PWRON_SHIFT     3098 #define TPS65917_INT1_LINE_STATE_PWRON_SHIFT                    0x01
3084                                                  3099 
3085 /* Bit definitions for INT2_STATUS */            3100 /* Bit definitions for INT2_STATUS */
3086 #define TPS65917_INT2_STATUS_SHORT               3101 #define TPS65917_INT2_STATUS_SHORT                              0x40
3087 #define TPS65917_INT2_STATUS_SHORT_SHIFT         3102 #define TPS65917_INT2_STATUS_SHORT_SHIFT                        0x06
3088 #define TPS65917_INT2_STATUS_FSD                 3103 #define TPS65917_INT2_STATUS_FSD                                0x20
3089 #define TPS65917_INT2_STATUS_FSD_SHIFT           3104 #define TPS65917_INT2_STATUS_FSD_SHIFT                          0x05
3090 #define TPS65917_INT2_STATUS_RESET_IN            3105 #define TPS65917_INT2_STATUS_RESET_IN                           0x10
3091 #define TPS65917_INT2_STATUS_RESET_IN_SHIFT      3106 #define TPS65917_INT2_STATUS_RESET_IN_SHIFT                     0x04
3092 #define TPS65917_INT2_STATUS_WDT                 3107 #define TPS65917_INT2_STATUS_WDT                                0x04
3093 #define TPS65917_INT2_STATUS_WDT_SHIFT           3108 #define TPS65917_INT2_STATUS_WDT_SHIFT                          0x02
3094 #define TPS65917_INT2_STATUS_OTP_ERROR           3109 #define TPS65917_INT2_STATUS_OTP_ERROR                          0x02
3095 #define TPS65917_INT2_STATUS_OTP_ERROR_SHIFT     3110 #define TPS65917_INT2_STATUS_OTP_ERROR_SHIFT                    0x01
3096                                                  3111 
3097 /* Bit definitions for INT2_MASK */              3112 /* Bit definitions for INT2_MASK */
3098 #define TPS65917_INT2_MASK_SHORT                 3113 #define TPS65917_INT2_MASK_SHORT                                0x40
3099 #define TPS65917_INT2_MASK_SHORT_SHIFT           3114 #define TPS65917_INT2_MASK_SHORT_SHIFT                          0x06
3100 #define TPS65917_INT2_MASK_FSD                   3115 #define TPS65917_INT2_MASK_FSD                                  0x20
3101 #define TPS65917_INT2_MASK_FSD_SHIFT             3116 #define TPS65917_INT2_MASK_FSD_SHIFT                            0x05
3102 #define TPS65917_INT2_MASK_RESET_IN              3117 #define TPS65917_INT2_MASK_RESET_IN                             0x10
3103 #define TPS65917_INT2_MASK_RESET_IN_SHIFT        3118 #define TPS65917_INT2_MASK_RESET_IN_SHIFT                       0x04
3104 #define TPS65917_INT2_MASK_WDT                   3119 #define TPS65917_INT2_MASK_WDT                                  0x04
3105 #define TPS65917_INT2_MASK_WDT_SHIFT             3120 #define TPS65917_INT2_MASK_WDT_SHIFT                            0x02
3106 #define TPS65917_INT2_MASK_OTP_ERROR_TIMER       3121 #define TPS65917_INT2_MASK_OTP_ERROR_TIMER                      0x02
3107 #define TPS65917_INT2_MASK_OTP_ERROR_SHIFT       3122 #define TPS65917_INT2_MASK_OTP_ERROR_SHIFT                      0x01
3108                                                  3123 
3109 /* Bit definitions for INT2_LINE_STATE */        3124 /* Bit definitions for INT2_LINE_STATE */
3110 #define TPS65917_INT2_LINE_STATE_SHORT           3125 #define TPS65917_INT2_LINE_STATE_SHORT                          0x40
3111 #define TPS65917_INT2_LINE_STATE_SHORT_SHIFT     3126 #define TPS65917_INT2_LINE_STATE_SHORT_SHIFT                    0x06
3112 #define TPS65917_INT2_LINE_STATE_FSD             3127 #define TPS65917_INT2_LINE_STATE_FSD                            0x20
3113 #define TPS65917_INT2_LINE_STATE_FSD_SHIFT       3128 #define TPS65917_INT2_LINE_STATE_FSD_SHIFT                      0x05
3114 #define TPS65917_INT2_LINE_STATE_RESET_IN        3129 #define TPS65917_INT2_LINE_STATE_RESET_IN                       0x10
3115 #define TPS65917_INT2_LINE_STATE_RESET_IN_SHI    3130 #define TPS65917_INT2_LINE_STATE_RESET_IN_SHIFT         0x04
3116 #define TPS65917_INT2_LINE_STATE_WDT             3131 #define TPS65917_INT2_LINE_STATE_WDT                            0x04
3117 #define TPS65917_INT2_LINE_STATE_WDT_SHIFT       3132 #define TPS65917_INT2_LINE_STATE_WDT_SHIFT                      0x02
3118 #define TPS65917_INT2_LINE_STATE_OTP_ERROR       3133 #define TPS65917_INT2_LINE_STATE_OTP_ERROR                      0x02
3119 #define TPS65917_INT2_LINE_STATE_OTP_ERROR_SH    3134 #define TPS65917_INT2_LINE_STATE_OTP_ERROR_SHIFT                0x01
3120                                                  3135 
3121 /* Bit definitions for INT3_STATUS */            3136 /* Bit definitions for INT3_STATUS */
3122 #define TPS65917_INT3_STATUS_VBUS                3137 #define TPS65917_INT3_STATUS_VBUS                               0x80
3123 #define TPS65917_INT3_STATUS_VBUS_SHIFT          3138 #define TPS65917_INT3_STATUS_VBUS_SHIFT                 0x07
3124 #define TPS65917_INT3_STATUS_GPADC_EOC_SW        3139 #define TPS65917_INT3_STATUS_GPADC_EOC_SW                       0x04
3125 #define TPS65917_INT3_STATUS_GPADC_EOC_SW_SHI    3140 #define TPS65917_INT3_STATUS_GPADC_EOC_SW_SHIFT         0x02
3126 #define TPS65917_INT3_STATUS_GPADC_AUTO_1        3141 #define TPS65917_INT3_STATUS_GPADC_AUTO_1                       0x02
3127 #define TPS65917_INT3_STATUS_GPADC_AUTO_1_SHI    3142 #define TPS65917_INT3_STATUS_GPADC_AUTO_1_SHIFT         0x01
3128 #define TPS65917_INT3_STATUS_GPADC_AUTO_0        3143 #define TPS65917_INT3_STATUS_GPADC_AUTO_0                       0x01
3129 #define TPS65917_INT3_STATUS_GPADC_AUTO_0_SHI    3144 #define TPS65917_INT3_STATUS_GPADC_AUTO_0_SHIFT         0x00
3130                                                  3145 
3131 /* Bit definitions for INT3_MASK */              3146 /* Bit definitions for INT3_MASK */
3132 #define TPS65917_INT3_MASK_VBUS                  3147 #define TPS65917_INT3_MASK_VBUS                         0x80
3133 #define TPS65917_INT3_MASK_VBUS_SHIFT            3148 #define TPS65917_INT3_MASK_VBUS_SHIFT                           0x07
3134 #define TPS65917_INT3_MASK_GPADC_EOC_SW          3149 #define TPS65917_INT3_MASK_GPADC_EOC_SW                 0x04
3135 #define TPS65917_INT3_MASK_GPADC_EOC_SW_SHIFT    3150 #define TPS65917_INT3_MASK_GPADC_EOC_SW_SHIFT                   0x02
3136 #define TPS65917_INT3_MASK_GPADC_AUTO_1          3151 #define TPS65917_INT3_MASK_GPADC_AUTO_1                 0x02
3137 #define TPS65917_INT3_MASK_GPADC_AUTO_1_SHIFT    3152 #define TPS65917_INT3_MASK_GPADC_AUTO_1_SHIFT                   0x01
3138 #define TPS65917_INT3_MASK_GPADC_AUTO_0          3153 #define TPS65917_INT3_MASK_GPADC_AUTO_0                 0x01
3139 #define TPS65917_INT3_MASK_GPADC_AUTO_0_SHIFT    3154 #define TPS65917_INT3_MASK_GPADC_AUTO_0_SHIFT                   0x00
3140                                                  3155 
3141 /* Bit definitions for INT3_LINE_STATE */        3156 /* Bit definitions for INT3_LINE_STATE */
3142 #define TPS65917_INT3_LINE_STATE_VBUS            3157 #define TPS65917_INT3_LINE_STATE_VBUS                           0x80
3143 #define TPS65917_INT3_LINE_STATE_VBUS_SHIFT      3158 #define TPS65917_INT3_LINE_STATE_VBUS_SHIFT                     0x07
3144 #define TPS65917_INT3_LINE_STATE_GPADC_EOC_SW    3159 #define TPS65917_INT3_LINE_STATE_GPADC_EOC_SW                   0x04
3145 #define TPS65917_INT3_LINE_STATE_GPADC_EOC_SW    3160 #define TPS65917_INT3_LINE_STATE_GPADC_EOC_SW_SHIFT             0x02
3146 #define TPS65917_INT3_LINE_STATE_GPADC_AUTO_1    3161 #define TPS65917_INT3_LINE_STATE_GPADC_AUTO_1                   0x02
3147 #define TPS65917_INT3_LINE_STATE_GPADC_AUTO_1    3162 #define TPS65917_INT3_LINE_STATE_GPADC_AUTO_1_SHIFT             0x01
3148 #define TPS65917_INT3_LINE_STATE_GPADC_AUTO_0    3163 #define TPS65917_INT3_LINE_STATE_GPADC_AUTO_0                   0x01
3149 #define TPS65917_INT3_LINE_STATE_GPADC_AUTO_0    3164 #define TPS65917_INT3_LINE_STATE_GPADC_AUTO_0_SHIFT             0x00
3150                                                  3165 
3151 /* Bit definitions for INT4_STATUS */            3166 /* Bit definitions for INT4_STATUS */
3152 #define TPS65917_INT4_STATUS_GPIO_6              3167 #define TPS65917_INT4_STATUS_GPIO_6                             0x40
3153 #define TPS65917_INT4_STATUS_GPIO_6_SHIFT        3168 #define TPS65917_INT4_STATUS_GPIO_6_SHIFT                       0x06
3154 #define TPS65917_INT4_STATUS_GPIO_5              3169 #define TPS65917_INT4_STATUS_GPIO_5                             0x20
3155 #define TPS65917_INT4_STATUS_GPIO_5_SHIFT        3170 #define TPS65917_INT4_STATUS_GPIO_5_SHIFT                       0x05
3156 #define TPS65917_INT4_STATUS_GPIO_4              3171 #define TPS65917_INT4_STATUS_GPIO_4                             0x10
3157 #define TPS65917_INT4_STATUS_GPIO_4_SHIFT        3172 #define TPS65917_INT4_STATUS_GPIO_4_SHIFT                       0x04
3158 #define TPS65917_INT4_STATUS_GPIO_3              3173 #define TPS65917_INT4_STATUS_GPIO_3                             0x08
3159 #define TPS65917_INT4_STATUS_GPIO_3_SHIFT        3174 #define TPS65917_INT4_STATUS_GPIO_3_SHIFT                       0x03
3160 #define TPS65917_INT4_STATUS_GPIO_2              3175 #define TPS65917_INT4_STATUS_GPIO_2                             0x04
3161 #define TPS65917_INT4_STATUS_GPIO_2_SHIFT        3176 #define TPS65917_INT4_STATUS_GPIO_2_SHIFT                       0x02
3162 #define TPS65917_INT4_STATUS_GPIO_1              3177 #define TPS65917_INT4_STATUS_GPIO_1                             0x02
3163 #define TPS65917_INT4_STATUS_GPIO_1_SHIFT        3178 #define TPS65917_INT4_STATUS_GPIO_1_SHIFT                       0x01
3164 #define TPS65917_INT4_STATUS_GPIO_0              3179 #define TPS65917_INT4_STATUS_GPIO_0                             0x01
3165 #define TPS65917_INT4_STATUS_GPIO_0_SHIFT        3180 #define TPS65917_INT4_STATUS_GPIO_0_SHIFT                       0x00
3166                                                  3181 
3167 /* Bit definitions for INT4_MASK */              3182 /* Bit definitions for INT4_MASK */
3168 #define TPS65917_INT4_MASK_GPIO_6                3183 #define TPS65917_INT4_MASK_GPIO_6                               0x40
3169 #define TPS65917_INT4_MASK_GPIO_6_SHIFT          3184 #define TPS65917_INT4_MASK_GPIO_6_SHIFT                 0x06
3170 #define TPS65917_INT4_MASK_GPIO_5                3185 #define TPS65917_INT4_MASK_GPIO_5                               0x20
3171 #define TPS65917_INT4_MASK_GPIO_5_SHIFT          3186 #define TPS65917_INT4_MASK_GPIO_5_SHIFT                 0x05
3172 #define TPS65917_INT4_MASK_GPIO_4                3187 #define TPS65917_INT4_MASK_GPIO_4                               0x10
3173 #define TPS65917_INT4_MASK_GPIO_4_SHIFT          3188 #define TPS65917_INT4_MASK_GPIO_4_SHIFT                 0x04
3174 #define TPS65917_INT4_MASK_GPIO_3                3189 #define TPS65917_INT4_MASK_GPIO_3                               0x08
3175 #define TPS65917_INT4_MASK_GPIO_3_SHIFT          3190 #define TPS65917_INT4_MASK_GPIO_3_SHIFT                 0x03
3176 #define TPS65917_INT4_MASK_GPIO_2                3191 #define TPS65917_INT4_MASK_GPIO_2                               0x04
3177 #define TPS65917_INT4_MASK_GPIO_2_SHIFT          3192 #define TPS65917_INT4_MASK_GPIO_2_SHIFT                 0x02
3178 #define TPS65917_INT4_MASK_GPIO_1                3193 #define TPS65917_INT4_MASK_GPIO_1                               0x02
3179 #define TPS65917_INT4_MASK_GPIO_1_SHIFT          3194 #define TPS65917_INT4_MASK_GPIO_1_SHIFT                 0x01
3180 #define TPS65917_INT4_MASK_GPIO_0                3195 #define TPS65917_INT4_MASK_GPIO_0                               0x01
3181 #define TPS65917_INT4_MASK_GPIO_0_SHIFT          3196 #define TPS65917_INT4_MASK_GPIO_0_SHIFT                 0x00
3182                                                  3197 
3183 /* Bit definitions for INT4_LINE_STATE */        3198 /* Bit definitions for INT4_LINE_STATE */
3184 #define TPS65917_INT4_LINE_STATE_GPIO_6          3199 #define TPS65917_INT4_LINE_STATE_GPIO_6                 0x40
3185 #define TPS65917_INT4_LINE_STATE_GPIO_6_SHIFT    3200 #define TPS65917_INT4_LINE_STATE_GPIO_6_SHIFT                   0x06
3186 #define TPS65917_INT4_LINE_STATE_GPIO_5          3201 #define TPS65917_INT4_LINE_STATE_GPIO_5                 0x20
3187 #define TPS65917_INT4_LINE_STATE_GPIO_5_SHIFT    3202 #define TPS65917_INT4_LINE_STATE_GPIO_5_SHIFT                   0x05
3188 #define TPS65917_INT4_LINE_STATE_GPIO_4          3203 #define TPS65917_INT4_LINE_STATE_GPIO_4                 0x10
3189 #define TPS65917_INT4_LINE_STATE_GPIO_4_SHIFT    3204 #define TPS65917_INT4_LINE_STATE_GPIO_4_SHIFT                   0x04
3190 #define TPS65917_INT4_LINE_STATE_GPIO_3          3205 #define TPS65917_INT4_LINE_STATE_GPIO_3                 0x08
3191 #define TPS65917_INT4_LINE_STATE_GPIO_3_SHIFT    3206 #define TPS65917_INT4_LINE_STATE_GPIO_3_SHIFT                   0x03
3192 #define TPS65917_INT4_LINE_STATE_GPIO_2          3207 #define TPS65917_INT4_LINE_STATE_GPIO_2                 0x04
3193 #define TPS65917_INT4_LINE_STATE_GPIO_2_SHIFT    3208 #define TPS65917_INT4_LINE_STATE_GPIO_2_SHIFT                   0x02
3194 #define TPS65917_INT4_LINE_STATE_GPIO_1          3209 #define TPS65917_INT4_LINE_STATE_GPIO_1                 0x02
3195 #define TPS65917_INT4_LINE_STATE_GPIO_1_SHIFT    3210 #define TPS65917_INT4_LINE_STATE_GPIO_1_SHIFT                   0x01
3196 #define TPS65917_INT4_LINE_STATE_GPIO_0          3211 #define TPS65917_INT4_LINE_STATE_GPIO_0                 0x01
3197 #define TPS65917_INT4_LINE_STATE_GPIO_0_SHIFT    3212 #define TPS65917_INT4_LINE_STATE_GPIO_0_SHIFT                   0x00
3198                                                  3213 
3199 /* Bit definitions for INT4_EDGE_DETECT1 */      3214 /* Bit definitions for INT4_EDGE_DETECT1 */
3200 #define TPS65917_INT4_EDGE_DETECT1_GPIO_3_RIS    3215 #define TPS65917_INT4_EDGE_DETECT1_GPIO_3_RISING                0x80
3201 #define TPS65917_INT4_EDGE_DETECT1_GPIO_3_RIS    3216 #define TPS65917_INT4_EDGE_DETECT1_GPIO_3_RISING_SHIFT          0x07
3202 #define TPS65917_INT4_EDGE_DETECT1_GPIO_3_FAL    3217 #define TPS65917_INT4_EDGE_DETECT1_GPIO_3_FALLING               0x40
3203 #define TPS65917_INT4_EDGE_DETECT1_GPIO_3_FAL    3218 #define TPS65917_INT4_EDGE_DETECT1_GPIO_3_FALLING_SHIFT 0x06
3204 #define TPS65917_INT4_EDGE_DETECT1_GPIO_2_RIS    3219 #define TPS65917_INT4_EDGE_DETECT1_GPIO_2_RISING                0x20
3205 #define TPS65917_INT4_EDGE_DETECT1_GPIO_2_RIS    3220 #define TPS65917_INT4_EDGE_DETECT1_GPIO_2_RISING_SHIFT          0x05
3206 #define TPS65917_INT4_EDGE_DETECT1_GPIO_2_FAL    3221 #define TPS65917_INT4_EDGE_DETECT1_GPIO_2_FALLING               0x10
3207 #define TPS65917_INT4_EDGE_DETECT1_GPIO_2_FAL    3222 #define TPS65917_INT4_EDGE_DETECT1_GPIO_2_FALLING_SHIFT 0x04
3208 #define TPS65917_INT4_EDGE_DETECT1_GPIO_1_RIS    3223 #define TPS65917_INT4_EDGE_DETECT1_GPIO_1_RISING                0x08
3209 #define TPS65917_INT4_EDGE_DETECT1_GPIO_1_RIS    3224 #define TPS65917_INT4_EDGE_DETECT1_GPIO_1_RISING_SHIFT          0x03
3210 #define TPS65917_INT4_EDGE_DETECT1_GPIO_1_FAL    3225 #define TPS65917_INT4_EDGE_DETECT1_GPIO_1_FALLING               0x04
3211 #define TPS65917_INT4_EDGE_DETECT1_GPIO_1_FAL    3226 #define TPS65917_INT4_EDGE_DETECT1_GPIO_1_FALLING_SHIFT 0x02
3212 #define TPS65917_INT4_EDGE_DETECT1_GPIO_0_RIS    3227 #define TPS65917_INT4_EDGE_DETECT1_GPIO_0_RISING                0x02
3213 #define TPS65917_INT4_EDGE_DETECT1_GPIO_0_RIS    3228 #define TPS65917_INT4_EDGE_DETECT1_GPIO_0_RISING_SHIFT          0x01
3214 #define TPS65917_INT4_EDGE_DETECT1_GPIO_0_FAL    3229 #define TPS65917_INT4_EDGE_DETECT1_GPIO_0_FALLING               0x01
3215 #define TPS65917_INT4_EDGE_DETECT1_GPIO_0_FAL    3230 #define TPS65917_INT4_EDGE_DETECT1_GPIO_0_FALLING_SHIFT 0x00
3216                                                  3231 
3217 /* Bit definitions for INT4_EDGE_DETECT2 */      3232 /* Bit definitions for INT4_EDGE_DETECT2 */
3218 #define TPS65917_INT4_EDGE_DETECT2_GPIO_6_RIS    3233 #define TPS65917_INT4_EDGE_DETECT2_GPIO_6_RISING                0x20
3219 #define TPS65917_INT4_EDGE_DETECT2_GPIO_6_RIS    3234 #define TPS65917_INT4_EDGE_DETECT2_GPIO_6_RISING_SHIFT          0x05
3220 #define TPS65917_INT4_EDGE_DETECT2_GPIO_6_FAL    3235 #define TPS65917_INT4_EDGE_DETECT2_GPIO_6_FALLING               0x10
3221 #define TPS65917_INT4_EDGE_DETECT2_GPIO_6_FAL    3236 #define TPS65917_INT4_EDGE_DETECT2_GPIO_6_FALLING_SHIFT 0x04
3222 #define TPS65917_INT4_EDGE_DETECT2_GPIO_5_RIS    3237 #define TPS65917_INT4_EDGE_DETECT2_GPIO_5_RISING                0x08
3223 #define TPS65917_INT4_EDGE_DETECT2_GPIO_5_RIS    3238 #define TPS65917_INT4_EDGE_DETECT2_GPIO_5_RISING_SHIFT          0x03
3224 #define TPS65917_INT4_EDGE_DETECT2_GPIO_5_FAL    3239 #define TPS65917_INT4_EDGE_DETECT2_GPIO_5_FALLING               0x04
3225 #define TPS65917_INT4_EDGE_DETECT2_GPIO_5_FAL    3240 #define TPS65917_INT4_EDGE_DETECT2_GPIO_5_FALLING_SHIFT 0x02
3226 #define TPS65917_INT4_EDGE_DETECT2_GPIO_4_RIS    3241 #define TPS65917_INT4_EDGE_DETECT2_GPIO_4_RISING                0x02
3227 #define TPS65917_INT4_EDGE_DETECT2_GPIO_4_RIS    3242 #define TPS65917_INT4_EDGE_DETECT2_GPIO_4_RISING_SHIFT          0x01
3228 #define TPS65917_INT4_EDGE_DETECT2_GPIO_4_FAL    3243 #define TPS65917_INT4_EDGE_DETECT2_GPIO_4_FALLING               0x01
3229 #define TPS65917_INT4_EDGE_DETECT2_GPIO_4_FAL    3244 #define TPS65917_INT4_EDGE_DETECT2_GPIO_4_FALLING_SHIFT 0x00
3230                                                  3245 
3231 /* Bit definitions for INT_CTRL */               3246 /* Bit definitions for INT_CTRL */
3232 #define TPS65917_INT_CTRL_INT_PENDING            3247 #define TPS65917_INT_CTRL_INT_PENDING                           0x04
3233 #define TPS65917_INT_CTRL_INT_PENDING_SHIFT      3248 #define TPS65917_INT_CTRL_INT_PENDING_SHIFT                     0x02
3234 #define TPS65917_INT_CTRL_INT_CLEAR              3249 #define TPS65917_INT_CTRL_INT_CLEAR                             0x01
3235 #define TPS65917_INT_CTRL_INT_CLEAR_SHIFT        3250 #define TPS65917_INT_CTRL_INT_CLEAR_SHIFT                       0x00
3236                                                  3251 
3237 /* TPS65917 SMPS Registers */                    3252 /* TPS65917 SMPS Registers */
3238                                                  3253 
3239 /* Registers for function SMPS */                3254 /* Registers for function SMPS */
3240 #define TPS65917_SMPS1_CTRL                      3255 #define TPS65917_SMPS1_CTRL                                     0x00
3241 #define TPS65917_SMPS1_FORCE                     3256 #define TPS65917_SMPS1_FORCE                                    0x02
3242 #define TPS65917_SMPS1_VOLTAGE                   3257 #define TPS65917_SMPS1_VOLTAGE                                  0x03
3243 #define TPS65917_SMPS2_CTRL                      3258 #define TPS65917_SMPS2_CTRL                                     0x04
3244 #define TPS65917_SMPS2_FORCE                     3259 #define TPS65917_SMPS2_FORCE                                    0x06
3245 #define TPS65917_SMPS2_VOLTAGE                   3260 #define TPS65917_SMPS2_VOLTAGE                                  0x07
3246 #define TPS65917_SMPS3_CTRL                      3261 #define TPS65917_SMPS3_CTRL                                     0x0C
3247 #define TPS65917_SMPS3_FORCE                     3262 #define TPS65917_SMPS3_FORCE                                    0x0E
3248 #define TPS65917_SMPS3_VOLTAGE                   3263 #define TPS65917_SMPS3_VOLTAGE                                  0x0F
3249 #define TPS65917_SMPS4_CTRL                      3264 #define TPS65917_SMPS4_CTRL                                     0x10
3250 #define TPS65917_SMPS4_VOLTAGE                   3265 #define TPS65917_SMPS4_VOLTAGE                                  0x13
3251 #define TPS65917_SMPS5_CTRL                      3266 #define TPS65917_SMPS5_CTRL                                     0x18
3252 #define TPS65917_SMPS5_VOLTAGE                   3267 #define TPS65917_SMPS5_VOLTAGE                                  0x1B
3253 #define TPS65917_SMPS_CTRL                       3268 #define TPS65917_SMPS_CTRL                                      0x24
3254 #define TPS65917_SMPS_PD_CTRL                    3269 #define TPS65917_SMPS_PD_CTRL                                   0x25
3255 #define TPS65917_SMPS_THERMAL_EN                 3270 #define TPS65917_SMPS_THERMAL_EN                                0x27
3256 #define TPS65917_SMPS_THERMAL_STATUS             3271 #define TPS65917_SMPS_THERMAL_STATUS                            0x28
3257 #define TPS65917_SMPS_SHORT_STATUS               3272 #define TPS65917_SMPS_SHORT_STATUS                              0x29
3258 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3273 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN         0x2A
3259 #define TPS65917_SMPS_POWERGOOD_MASK1            3274 #define TPS65917_SMPS_POWERGOOD_MASK1                           0x2B
3260 #define TPS65917_SMPS_POWERGOOD_MASK2            3275 #define TPS65917_SMPS_POWERGOOD_MASK2                           0x2C
3261                                                  3276 
3262 /* Bit definitions for SMPS1_CTRL */             3277 /* Bit definitions for SMPS1_CTRL */
3263 #define TPS65917_SMPS1_CTRL_WR_S                 3278 #define TPS65917_SMPS1_CTRL_WR_S                                0x80
3264 #define TPS65917_SMPS1_CTRL_WR_S_SHIFT           3279 #define TPS65917_SMPS1_CTRL_WR_S_SHIFT                          0x07
3265 #define TPS65917_SMPS1_CTRL_ROOF_FLOOR_EN        3280 #define TPS65917_SMPS1_CTRL_ROOF_FLOOR_EN                       0x40
3266 #define TPS65917_SMPS1_CTRL_ROOF_FLOOR_EN_SHI    3281 #define TPS65917_SMPS1_CTRL_ROOF_FLOOR_EN_SHIFT         0x06
3267 #define TPS65917_SMPS1_CTRL_STATUS_MASK          3282 #define TPS65917_SMPS1_CTRL_STATUS_MASK                 0x30
3268 #define TPS65917_SMPS1_CTRL_STATUS_SHIFT         3283 #define TPS65917_SMPS1_CTRL_STATUS_SHIFT                        0x04
3269 #define TPS65917_SMPS1_CTRL_MODE_SLEEP_MASK      3284 #define TPS65917_SMPS1_CTRL_MODE_SLEEP_MASK                     0x0C
3270 #define TPS65917_SMPS1_CTRL_MODE_SLEEP_SHIFT     3285 #define TPS65917_SMPS1_CTRL_MODE_SLEEP_SHIFT                    0x02
3271 #define TPS65917_SMPS1_CTRL_MODE_ACTIVE_MASK     3286 #define TPS65917_SMPS1_CTRL_MODE_ACTIVE_MASK                    0x03
3272 #define TPS65917_SMPS1_CTRL_MODE_ACTIVE_SHIFT    3287 #define TPS65917_SMPS1_CTRL_MODE_ACTIVE_SHIFT                   0x00
3273                                                  3288 
3274 /* Bit definitions for SMPS1_FORCE */            3289 /* Bit definitions for SMPS1_FORCE */
3275 #define TPS65917_SMPS1_FORCE_CMD                 3290 #define TPS65917_SMPS1_FORCE_CMD                                0x80
3276 #define TPS65917_SMPS1_FORCE_CMD_SHIFT           3291 #define TPS65917_SMPS1_FORCE_CMD_SHIFT                          0x07
3277 #define TPS65917_SMPS1_FORCE_VSEL_MASK           3292 #define TPS65917_SMPS1_FORCE_VSEL_MASK                          0x7F
3278 #define TPS65917_SMPS1_FORCE_VSEL_SHIFT          3293 #define TPS65917_SMPS1_FORCE_VSEL_SHIFT                 0x00
3279                                                  3294 
3280 /* Bit definitions for SMPS1_VOLTAGE */          3295 /* Bit definitions for SMPS1_VOLTAGE */
3281 #define TPS65917_SMPS1_VOLTAGE_RANGE             3296 #define TPS65917_SMPS1_VOLTAGE_RANGE                            0x80
3282 #define TPS65917_SMPS1_VOLTAGE_RANGE_SHIFT       3297 #define TPS65917_SMPS1_VOLTAGE_RANGE_SHIFT                      0x07
3283 #define TPS65917_SMPS1_VOLTAGE_VSEL_MASK         3298 #define TPS65917_SMPS1_VOLTAGE_VSEL_MASK                        0x7F
3284 #define TPS65917_SMPS1_VOLTAGE_VSEL_SHIFT        3299 #define TPS65917_SMPS1_VOLTAGE_VSEL_SHIFT                       0x00
3285                                                  3300 
3286 /* Bit definitions for SMPS2_CTRL */             3301 /* Bit definitions for SMPS2_CTRL */
3287 #define TPS65917_SMPS2_CTRL_WR_S                 3302 #define TPS65917_SMPS2_CTRL_WR_S                                0x80
3288 #define TPS65917_SMPS2_CTRL_WR_S_SHIFT           3303 #define TPS65917_SMPS2_CTRL_WR_S_SHIFT                          0x07
3289 #define TPS65917_SMPS2_CTRL_ROOF_FLOOR_EN        3304 #define TPS65917_SMPS2_CTRL_ROOF_FLOOR_EN                       0x40
3290 #define TPS65917_SMPS2_CTRL_ROOF_FLOOR_EN_SHI    3305 #define TPS65917_SMPS2_CTRL_ROOF_FLOOR_EN_SHIFT         0x06
3291 #define TPS65917_SMPS2_CTRL_STATUS_MASK          3306 #define TPS65917_SMPS2_CTRL_STATUS_MASK                 0x30
3292 #define TPS65917_SMPS2_CTRL_STATUS_SHIFT         3307 #define TPS65917_SMPS2_CTRL_STATUS_SHIFT                        0x04
3293 #define TPS65917_SMPS2_CTRL_MODE_SLEEP_MASK      3308 #define TPS65917_SMPS2_CTRL_MODE_SLEEP_MASK                     0x0C
3294 #define TPS65917_SMPS2_CTRL_MODE_SLEEP_SHIFT     3309 #define TPS65917_SMPS2_CTRL_MODE_SLEEP_SHIFT                    0x02
3295 #define TPS65917_SMPS2_CTRL_MODE_ACTIVE_MASK     3310 #define TPS65917_SMPS2_CTRL_MODE_ACTIVE_MASK                    0x03
3296 #define TPS65917_SMPS2_CTRL_MODE_ACTIVE_SHIFT    3311 #define TPS65917_SMPS2_CTRL_MODE_ACTIVE_SHIFT                   0x00
3297                                                  3312 
3298 /* Bit definitions for SMPS2_FORCE */            3313 /* Bit definitions for SMPS2_FORCE */
3299 #define TPS65917_SMPS2_FORCE_CMD                 3314 #define TPS65917_SMPS2_FORCE_CMD                                0x80
3300 #define TPS65917_SMPS2_FORCE_CMD_SHIFT           3315 #define TPS65917_SMPS2_FORCE_CMD_SHIFT                          0x07
3301 #define TPS65917_SMPS2_FORCE_VSEL_MASK           3316 #define TPS65917_SMPS2_FORCE_VSEL_MASK                          0x7F
3302 #define TPS65917_SMPS2_FORCE_VSEL_SHIFT          3317 #define TPS65917_SMPS2_FORCE_VSEL_SHIFT                 0x00
3303                                                  3318 
3304 /* Bit definitions for SMPS2_VOLTAGE */          3319 /* Bit definitions for SMPS2_VOLTAGE */
3305 #define TPS65917_SMPS2_VOLTAGE_RANGE             3320 #define TPS65917_SMPS2_VOLTAGE_RANGE                            0x80
3306 #define TPS65917_SMPS2_VOLTAGE_RANGE_SHIFT       3321 #define TPS65917_SMPS2_VOLTAGE_RANGE_SHIFT                      0x07
3307 #define TPS65917_SMPS2_VOLTAGE_VSEL_MASK         3322 #define TPS65917_SMPS2_VOLTAGE_VSEL_MASK                        0x7F
3308 #define TPS65917_SMPS2_VOLTAGE_VSEL_SHIFT        3323 #define TPS65917_SMPS2_VOLTAGE_VSEL_SHIFT                       0x00
3309                                                  3324 
3310 /* Bit definitions for SMPS3_CTRL */             3325 /* Bit definitions for SMPS3_CTRL */
3311 #define TPS65917_SMPS3_CTRL_WR_S                 3326 #define TPS65917_SMPS3_CTRL_WR_S                                0x80
3312 #define TPS65917_SMPS3_CTRL_WR_S_SHIFT           3327 #define TPS65917_SMPS3_CTRL_WR_S_SHIFT                          0x07
3313 #define TPS65917_SMPS3_CTRL_ROOF_FLOOR_EN        3328 #define TPS65917_SMPS3_CTRL_ROOF_FLOOR_EN                       0x40
3314 #define TPS65917_SMPS3_CTRL_ROOF_FLOOR_EN_SHI    3329 #define TPS65917_SMPS3_CTRL_ROOF_FLOOR_EN_SHIFT         0x06
3315 #define TPS65917_SMPS3_CTRL_STATUS_MASK          3330 #define TPS65917_SMPS3_CTRL_STATUS_MASK                 0x30
3316 #define TPS65917_SMPS3_CTRL_STATUS_SHIFT         3331 #define TPS65917_SMPS3_CTRL_STATUS_SHIFT                        0x04
3317 #define TPS65917_SMPS3_CTRL_MODE_SLEEP_MASK      3332 #define TPS65917_SMPS3_CTRL_MODE_SLEEP_MASK                     0x0C
3318 #define TPS65917_SMPS3_CTRL_MODE_SLEEP_SHIFT     3333 #define TPS65917_SMPS3_CTRL_MODE_SLEEP_SHIFT                    0x02
3319 #define TPS65917_SMPS3_CTRL_MODE_ACTIVE_MASK     3334 #define TPS65917_SMPS3_CTRL_MODE_ACTIVE_MASK                    0x03
3320 #define TPS65917_SMPS3_CTRL_MODE_ACTIVE_SHIFT    3335 #define TPS65917_SMPS3_CTRL_MODE_ACTIVE_SHIFT                   0x00
3321                                                  3336 
3322 /* Bit definitions for SMPS3_FORCE */            3337 /* Bit definitions for SMPS3_FORCE */
3323 #define TPS65917_SMPS3_FORCE_CMD                 3338 #define TPS65917_SMPS3_FORCE_CMD                                0x80
3324 #define TPS65917_SMPS3_FORCE_CMD_SHIFT           3339 #define TPS65917_SMPS3_FORCE_CMD_SHIFT                          0x07
3325 #define TPS65917_SMPS3_FORCE_VSEL_MASK           3340 #define TPS65917_SMPS3_FORCE_VSEL_MASK                          0x7F
3326 #define TPS65917_SMPS3_FORCE_VSEL_SHIFT          3341 #define TPS65917_SMPS3_FORCE_VSEL_SHIFT                 0x00
3327                                                  3342 
3328 /* Bit definitions for SMPS3_VOLTAGE */          3343 /* Bit definitions for SMPS3_VOLTAGE */
3329 #define TPS65917_SMPS3_VOLTAGE_RANGE             3344 #define TPS65917_SMPS3_VOLTAGE_RANGE                            0x80
3330 #define TPS65917_SMPS3_VOLTAGE_RANGE_SHIFT       3345 #define TPS65917_SMPS3_VOLTAGE_RANGE_SHIFT                      0x07
3331 #define TPS65917_SMPS3_VOLTAGE_VSEL_MASK         3346 #define TPS65917_SMPS3_VOLTAGE_VSEL_MASK                        0x7F
3332 #define TPS65917_SMPS3_VOLTAGE_VSEL_SHIFT        3347 #define TPS65917_SMPS3_VOLTAGE_VSEL_SHIFT                       0x00
3333                                                  3348 
3334 /* Bit definitions for SMPS4_CTRL */             3349 /* Bit definitions for SMPS4_CTRL */
3335 #define TPS65917_SMPS4_CTRL_WR_S                 3350 #define TPS65917_SMPS4_CTRL_WR_S                                0x80
3336 #define TPS65917_SMPS4_CTRL_WR_S_SHIFT           3351 #define TPS65917_SMPS4_CTRL_WR_S_SHIFT                          0x07
3337 #define TPS65917_SMPS4_CTRL_ROOF_FLOOR_EN        3352 #define TPS65917_SMPS4_CTRL_ROOF_FLOOR_EN                       0x40
3338 #define TPS65917_SMPS4_CTRL_ROOF_FLOOR_EN_SHI    3353 #define TPS65917_SMPS4_CTRL_ROOF_FLOOR_EN_SHIFT         0x06
3339 #define TPS65917_SMPS4_CTRL_STATUS_MASK          3354 #define TPS65917_SMPS4_CTRL_STATUS_MASK                 0x30
3340 #define TPS65917_SMPS4_CTRL_STATUS_SHIFT         3355 #define TPS65917_SMPS4_CTRL_STATUS_SHIFT                        0x04
3341 #define TPS65917_SMPS4_CTRL_MODE_SLEEP_MASK      3356 #define TPS65917_SMPS4_CTRL_MODE_SLEEP_MASK                     0x0C
3342 #define TPS65917_SMPS4_CTRL_MODE_SLEEP_SHIFT     3357 #define TPS65917_SMPS4_CTRL_MODE_SLEEP_SHIFT                    0x02
3343 #define TPS65917_SMPS4_CTRL_MODE_ACTIVE_MASK     3358 #define TPS65917_SMPS4_CTRL_MODE_ACTIVE_MASK                    0x03
3344 #define TPS65917_SMPS4_CTRL_MODE_ACTIVE_SHIFT    3359 #define TPS65917_SMPS4_CTRL_MODE_ACTIVE_SHIFT                   0x00
3345                                                  3360 
3346 /* Bit definitions for SMPS4_VOLTAGE */          3361 /* Bit definitions for SMPS4_VOLTAGE */
3347 #define TPS65917_SMPS4_VOLTAGE_RANGE             3362 #define TPS65917_SMPS4_VOLTAGE_RANGE                            0x80
3348 #define TPS65917_SMPS4_VOLTAGE_RANGE_SHIFT       3363 #define TPS65917_SMPS4_VOLTAGE_RANGE_SHIFT                      0x07
3349 #define TPS65917_SMPS4_VOLTAGE_VSEL_MASK         3364 #define TPS65917_SMPS4_VOLTAGE_VSEL_MASK                        0x7F
3350 #define TPS65917_SMPS4_VOLTAGE_VSEL_SHIFT        3365 #define TPS65917_SMPS4_VOLTAGE_VSEL_SHIFT                       0x00
3351                                                  3366 
3352 /* Bit definitions for SMPS5_CTRL */             3367 /* Bit definitions for SMPS5_CTRL */
3353 #define TPS65917_SMPS5_CTRL_WR_S                 3368 #define TPS65917_SMPS5_CTRL_WR_S                                0x80
3354 #define TPS65917_SMPS5_CTRL_WR_S_SHIFT           3369 #define TPS65917_SMPS5_CTRL_WR_S_SHIFT                          0x07
3355 #define TPS65917_SMPS5_CTRL_ROOF_FLOOR_EN        3370 #define TPS65917_SMPS5_CTRL_ROOF_FLOOR_EN                       0x40
3356 #define TPS65917_SMPS5_CTRL_ROOF_FLOOR_EN_SHI    3371 #define TPS65917_SMPS5_CTRL_ROOF_FLOOR_EN_SHIFT         0x06
3357 #define TPS65917_SMPS5_CTRL_STATUS_MASK          3372 #define TPS65917_SMPS5_CTRL_STATUS_MASK                 0x30
3358 #define TPS65917_SMPS5_CTRL_STATUS_SHIFT         3373 #define TPS65917_SMPS5_CTRL_STATUS_SHIFT                        0x04
3359 #define TPS65917_SMPS5_CTRL_MODE_SLEEP_MASK      3374 #define TPS65917_SMPS5_CTRL_MODE_SLEEP_MASK                     0x0C
3360 #define TPS65917_SMPS5_CTRL_MODE_SLEEP_SHIFT     3375 #define TPS65917_SMPS5_CTRL_MODE_SLEEP_SHIFT                    0x02
3361 #define TPS65917_SMPS5_CTRL_MODE_ACTIVE_MASK     3376 #define TPS65917_SMPS5_CTRL_MODE_ACTIVE_MASK                    0x03
3362 #define TPS65917_SMPS5_CTRL_MODE_ACTIVE_SHIFT    3377 #define TPS65917_SMPS5_CTRL_MODE_ACTIVE_SHIFT                   0x00
3363                                                  3378 
3364 /* Bit definitions for SMPS5_VOLTAGE */          3379 /* Bit definitions for SMPS5_VOLTAGE */
3365 #define TPS65917_SMPS5_VOLTAGE_RANGE             3380 #define TPS65917_SMPS5_VOLTAGE_RANGE                            0x80
3366 #define TPS65917_SMPS5_VOLTAGE_RANGE_SHIFT       3381 #define TPS65917_SMPS5_VOLTAGE_RANGE_SHIFT                      0x07
3367 #define TPS65917_SMPS5_VOLTAGE_VSEL_MASK         3382 #define TPS65917_SMPS5_VOLTAGE_VSEL_MASK                        0x7F
3368 #define TPS65917_SMPS5_VOLTAGE_VSEL_SHIFT        3383 #define TPS65917_SMPS5_VOLTAGE_VSEL_SHIFT                       0x00
3369                                                  3384 
3370 /* Bit definitions for SMPS_CTRL */              3385 /* Bit definitions for SMPS_CTRL */
3371 #define TPS65917_SMPS_CTRL_SMPS1_SMPS12_EN       3386 #define TPS65917_SMPS_CTRL_SMPS1_SMPS12_EN                      0x10
3372 #define TPS65917_SMPS_CTRL_SMPS1_SMPS12_EN_SH    3387 #define TPS65917_SMPS_CTRL_SMPS1_SMPS12_EN_SHIFT                0x04
3373 #define TPS65917_SMPS_CTRL_SMPS12_PHASE_CTRL     3388 #define TPS65917_SMPS_CTRL_SMPS12_PHASE_CTRL                    0x03
3374 #define TPS65917_SMPS_CTRL_SMPS12_PHASE_CTRL_    3389 #define TPS65917_SMPS_CTRL_SMPS12_PHASE_CTRL_SHIFT              0x00
3375                                                  3390 
3376 /* Bit definitions for SMPS_PD_CTRL */           3391 /* Bit definitions for SMPS_PD_CTRL */
3377 #define TPS65917_SMPS_PD_CTRL_SMPS5              3392 #define TPS65917_SMPS_PD_CTRL_SMPS5                             0x40
3378 #define TPS65917_SMPS_PD_CTRL_SMPS5_SHIFT        3393 #define TPS65917_SMPS_PD_CTRL_SMPS5_SHIFT                       0x06
3379 #define TPS65917_SMPS_PD_CTRL_SMPS4              3394 #define TPS65917_SMPS_PD_CTRL_SMPS4                             0x10
3380 #define TPS65917_SMPS_PD_CTRL_SMPS4_SHIFT        3395 #define TPS65917_SMPS_PD_CTRL_SMPS4_SHIFT                       0x04
3381 #define TPS65917_SMPS_PD_CTRL_SMPS3              3396 #define TPS65917_SMPS_PD_CTRL_SMPS3                             0x08
3382 #define TPS65917_SMPS_PD_CTRL_SMPS3_SHIFT        3397 #define TPS65917_SMPS_PD_CTRL_SMPS3_SHIFT                       0x03
3383 #define TPS65917_SMPS_PD_CTRL_SMPS2              3398 #define TPS65917_SMPS_PD_CTRL_SMPS2                             0x02
3384 #define TPS65917_SMPS_PD_CTRL_SMPS2_SHIFT        3399 #define TPS65917_SMPS_PD_CTRL_SMPS2_SHIFT                       0x01
3385 #define TPS65917_SMPS_PD_CTRL_SMPS1              3400 #define TPS65917_SMPS_PD_CTRL_SMPS1                             0x01
3386 #define TPS65917_SMPS_PD_CTRL_SMPS1_SHIFT        3401 #define TPS65917_SMPS_PD_CTRL_SMPS1_SHIFT                       0x00
3387                                                  3402 
3388 /* Bit definitions for SMPS_THERMAL_EN */        3403 /* Bit definitions for SMPS_THERMAL_EN */
3389 #define TPS65917_SMPS_THERMAL_EN_SMPS5           3404 #define TPS65917_SMPS_THERMAL_EN_SMPS5                          0x40
3390 #define TPS65917_SMPS_THERMAL_EN_SMPS5_SHIFT     3405 #define TPS65917_SMPS_THERMAL_EN_SMPS5_SHIFT                    0x06
3391 #define TPS65917_SMPS_THERMAL_EN_SMPS3           3406 #define TPS65917_SMPS_THERMAL_EN_SMPS3                          0x08
3392 #define TPS65917_SMPS_THERMAL_EN_SMPS3_SHIFT     3407 #define TPS65917_SMPS_THERMAL_EN_SMPS3_SHIFT                    0x03
3393 #define TPS65917_SMPS_THERMAL_EN_SMPS12          3408 #define TPS65917_SMPS_THERMAL_EN_SMPS12                 0x01
3394 #define TPS65917_SMPS_THERMAL_EN_SMPS12_SHIFT    3409 #define TPS65917_SMPS_THERMAL_EN_SMPS12_SHIFT                   0x00
3395                                                  3410 
3396 /* Bit definitions for SMPS_THERMAL_STATUS */    3411 /* Bit definitions for SMPS_THERMAL_STATUS */
3397 #define TPS65917_SMPS_THERMAL_STATUS_SMPS5       3412 #define TPS65917_SMPS_THERMAL_STATUS_SMPS5                      0x40
3398 #define TPS65917_SMPS_THERMAL_STATUS_SMPS5_SH    3413 #define TPS65917_SMPS_THERMAL_STATUS_SMPS5_SHIFT                0x06
3399 #define TPS65917_SMPS_THERMAL_STATUS_SMPS3       3414 #define TPS65917_SMPS_THERMAL_STATUS_SMPS3                      0x08
3400 #define TPS65917_SMPS_THERMAL_STATUS_SMPS3_SH    3415 #define TPS65917_SMPS_THERMAL_STATUS_SMPS3_SHIFT                0x03
3401 #define TPS65917_SMPS_THERMAL_STATUS_SMPS12      3416 #define TPS65917_SMPS_THERMAL_STATUS_SMPS12                     0x01
3402 #define TPS65917_SMPS_THERMAL_STATUS_SMPS12_S    3417 #define TPS65917_SMPS_THERMAL_STATUS_SMPS12_SHIFT               0x00
3403                                                  3418 
3404 /* Bit definitions for SMPS_SHORT_STATUS */      3419 /* Bit definitions for SMPS_SHORT_STATUS */
3405 #define TPS65917_SMPS_SHORT_STATUS_SMPS5         3420 #define TPS65917_SMPS_SHORT_STATUS_SMPS5                        0x40
3406 #define TPS65917_SMPS_SHORT_STATUS_SMPS5_SHIF    3421 #define TPS65917_SMPS_SHORT_STATUS_SMPS5_SHIFT                  0x06
3407 #define TPS65917_SMPS_SHORT_STATUS_SMPS4         3422 #define TPS65917_SMPS_SHORT_STATUS_SMPS4                        0x10
3408 #define TPS65917_SMPS_SHORT_STATUS_SMPS4_SHIF    3423 #define TPS65917_SMPS_SHORT_STATUS_SMPS4_SHIFT                  0x04
3409 #define TPS65917_SMPS_SHORT_STATUS_SMPS3         3424 #define TPS65917_SMPS_SHORT_STATUS_SMPS3                        0x08
3410 #define TPS65917_SMPS_SHORT_STATUS_SMPS3_SHIF    3425 #define TPS65917_SMPS_SHORT_STATUS_SMPS3_SHIFT                  0x03
3411 #define TPS65917_SMPS_SHORT_STATUS_SMPS2         3426 #define TPS65917_SMPS_SHORT_STATUS_SMPS2                        0x02
3412 #define TPS65917_SMPS_SHORT_STATUS_SMPS2_SHIF    3427 #define TPS65917_SMPS_SHORT_STATUS_SMPS2_SHIFT                  0x01
3413 #define TPS65917_SMPS_SHORT_STATUS_SMPS1         3428 #define TPS65917_SMPS_SHORT_STATUS_SMPS1                        0x01
3414 #define TPS65917_SMPS_SHORT_STATUS_SMPS1_SHIF    3429 #define TPS65917_SMPS_SHORT_STATUS_SMPS1_SHIFT                  0x00
3415                                                  3430 
3416 /* Bit definitions for SMPS_NEGATIVE_CURRENT_    3431 /* Bit definitions for SMPS_NEGATIVE_CURRENT_LIMIT_EN */
3417 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3432 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS5           0x40
3418 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3433 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS5_SHIFT     0x06
3419 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3434 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS4           0x10
3420 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3435 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS4_SHIFT     0x04
3421 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3436 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS3           0x08
3422 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3437 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS3_SHIFT     0x03
3423 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3438 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS2           0x02
3424 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3439 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS2_SHIFT     0x01
3425 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3440 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS1           0x01
3426 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_    3441 #define TPS65917_SMPS_NEGATIVE_CURRENT_LIMIT_EN_SMPS1_SHIFT     0x00
3427                                                  3442 
3428 /* Bit definitions for SMPS_POWERGOOD_MASK1 *    3443 /* Bit definitions for SMPS_POWERGOOD_MASK1 */
3429 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS5      3444 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS5                     0x40
3430 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS5_S    3445 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS5_SHIFT               0x06
3431 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS4      3446 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS4                     0x10
3432 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS4_S    3447 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS4_SHIFT               0x04
3433 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS3      3448 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS3                     0x08
3434 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS3_S    3449 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS3_SHIFT               0x03
3435 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS2      3450 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS2                     0x02
3436 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS2_S    3451 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS2_SHIFT               0x01
3437 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS1      3452 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS1                     0x01
3438 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS1_S    3453 #define TPS65917_SMPS_POWERGOOD_MASK1_SMPS1_SHIFT               0x00
3439                                                  3454 
3440 /* Bit definitions for SMPS_POWERGOOD_MASK2 *    3455 /* Bit definitions for SMPS_POWERGOOD_MASK2 */
3441 #define TPS65917_SMPS_POWERGOOD_MASK2_POWERGO    3456 #define TPS65917_SMPS_POWERGOOD_MASK2_POWERGOOD_TYPE_SELECT             0x80
3442 #define TPS65917_SMPS_POWERGOOD_MASK2_POWERGO    3457 #define TPS65917_SMPS_POWERGOOD_MASK2_POWERGOOD_TYPE_SELECT_SHIFT       0x07
3443 #define TPS65917_SMPS_POWERGOOD_MASK2_OVC_ALA    3458 #define TPS65917_SMPS_POWERGOOD_MASK2_OVC_ALARM_SHIFT                   0x10
3444 #define TPS65917_SMPS_POWERGOOD_MASK2_OVC_ALA    3459 #define TPS65917_SMPS_POWERGOOD_MASK2_OVC_ALARM                 0x04
3445                                                  3460 
3446 /* Bit definitions for SMPS_PLL_CTRL */          3461 /* Bit definitions for SMPS_PLL_CTRL */
3447                                                  3462 
3448 #define TPS65917_SMPS_PLL_CTRL_PLL_EN_PLL_BYP    3463 #define TPS65917_SMPS_PLL_CTRL_PLL_EN_PLL_BYPASS_SHIFT          0x08
3449 #define TPS65917_SMPS_PLL_CTRL_PLL_PLL_EN_BYP    3464 #define TPS65917_SMPS_PLL_CTRL_PLL_PLL_EN_BYPASS                0x03
3450 #define TPS65917_SMPS_PLL_CTRL_PLL_PLL_BYPASS    3465 #define TPS65917_SMPS_PLL_CTRL_PLL_PLL_BYPASS_CLK_SHIFT 0x04
3451 #define TPS65917_SMPS_PLL_CTRL_PLL_PLL_BYPASS    3466 #define TPS65917_SMPS_PLL_CTRL_PLL_PLL_BYPASS_CLK               0x02
3452                                                  3467 
3453 /* Registers for function LDO */                 3468 /* Registers for function LDO */
3454 #define TPS65917_LDO1_CTRL                       3469 #define TPS65917_LDO1_CTRL                                      0x00
3455 #define TPS65917_LDO1_VOLTAGE                    3470 #define TPS65917_LDO1_VOLTAGE                                   0x01
3456 #define TPS65917_LDO2_CTRL                       3471 #define TPS65917_LDO2_CTRL                                      0x02
3457 #define TPS65917_LDO2_VOLTAGE                    3472 #define TPS65917_LDO2_VOLTAGE                                   0x03
3458 #define TPS65917_LDO3_CTRL                       3473 #define TPS65917_LDO3_CTRL                                      0x04
3459 #define TPS65917_LDO3_VOLTAGE                    3474 #define TPS65917_LDO3_VOLTAGE                                   0x05
3460 #define TPS65917_LDO4_CTRL                       3475 #define TPS65917_LDO4_CTRL                                      0x0E
3461 #define TPS65917_LDO4_VOLTAGE                    3476 #define TPS65917_LDO4_VOLTAGE                                   0x0F
3462 #define TPS65917_LDO5_CTRL                       3477 #define TPS65917_LDO5_CTRL                                      0x12
3463 #define TPS65917_LDO5_VOLTAGE                    3478 #define TPS65917_LDO5_VOLTAGE                                   0x13
3464 #define TPS65917_LDO_PD_CTRL1                    3479 #define TPS65917_LDO_PD_CTRL1                                   0x1B
3465 #define TPS65917_LDO_PD_CTRL2                    3480 #define TPS65917_LDO_PD_CTRL2                                   0x1C
3466 #define TPS65917_LDO_SHORT_STATUS1               3481 #define TPS65917_LDO_SHORT_STATUS1                              0x1D
3467 #define TPS65917_LDO_SHORT_STATUS2               3482 #define TPS65917_LDO_SHORT_STATUS2                              0x1E
3468 #define TPS65917_LDO_PD_CTRL3                    3483 #define TPS65917_LDO_PD_CTRL3                                   0x2D
3469 #define TPS65917_LDO_SHORT_STATUS3               3484 #define TPS65917_LDO_SHORT_STATUS3                              0x2E
3470                                                  3485 
3471 /* Bit definitions for LDO1_CTRL */              3486 /* Bit definitions for LDO1_CTRL */
3472 #define TPS65917_LDO1_CTRL_WR_S                  3487 #define TPS65917_LDO1_CTRL_WR_S                         0x80
3473 #define TPS65917_LDO1_CTRL_WR_S_SHIFT            3488 #define TPS65917_LDO1_CTRL_WR_S_SHIFT                           0x07
3474 #define TPS65917_LDO1_CTRL_BYPASS_EN             3489 #define TPS65917_LDO1_CTRL_BYPASS_EN                            0x40
3475 #define TPS65917_LDO1_CTRL_BYPASS_EN_SHIFT       3490 #define TPS65917_LDO1_CTRL_BYPASS_EN_SHIFT                      0x06
3476 #define TPS65917_LDO1_CTRL_STATUS                3491 #define TPS65917_LDO1_CTRL_STATUS                               0x10
3477 #define TPS65917_LDO1_CTRL_STATUS_SHIFT          3492 #define TPS65917_LDO1_CTRL_STATUS_SHIFT                 0x04
3478 #define TPS65917_LDO1_CTRL_MODE_SLEEP            3493 #define TPS65917_LDO1_CTRL_MODE_SLEEP                           0x04
3479 #define TPS65917_LDO1_CTRL_MODE_SLEEP_SHIFT      3494 #define TPS65917_LDO1_CTRL_MODE_SLEEP_SHIFT                     0x02
3480 #define TPS65917_LDO1_CTRL_MODE_ACTIVE           3495 #define TPS65917_LDO1_CTRL_MODE_ACTIVE                          0x01
3481 #define TPS65917_LDO1_CTRL_MODE_ACTIVE_SHIFT     3496 #define TPS65917_LDO1_CTRL_MODE_ACTIVE_SHIFT                    0x00
3482                                                  3497 
3483 /* Bit definitions for LDO1_VOLTAGE */           3498 /* Bit definitions for LDO1_VOLTAGE */
3484 #define TPS65917_LDO1_VOLTAGE_VSEL_MASK          3499 #define TPS65917_LDO1_VOLTAGE_VSEL_MASK                 0x2F
3485 #define TPS65917_LDO1_VOLTAGE_VSEL_SHIFT         3500 #define TPS65917_LDO1_VOLTAGE_VSEL_SHIFT                        0x00
3486                                                  3501 
3487 /* Bit definitions for LDO2_CTRL */              3502 /* Bit definitions for LDO2_CTRL */
3488 #define TPS65917_LDO2_CTRL_WR_S                  3503 #define TPS65917_LDO2_CTRL_WR_S                         0x80
3489 #define TPS65917_LDO2_CTRL_WR_S_SHIFT            3504 #define TPS65917_LDO2_CTRL_WR_S_SHIFT                           0x07
3490 #define TPS65917_LDO2_CTRL_BYPASS_EN             3505 #define TPS65917_LDO2_CTRL_BYPASS_EN                            0x40
3491 #define TPS65917_LDO2_CTRL_BYPASS_EN_SHIFT       3506 #define TPS65917_LDO2_CTRL_BYPASS_EN_SHIFT                      0x06
3492 #define TPS65917_LDO2_CTRL_STATUS                3507 #define TPS65917_LDO2_CTRL_STATUS                               0x10
3493 #define TPS65917_LDO2_CTRL_STATUS_SHIFT          3508 #define TPS65917_LDO2_CTRL_STATUS_SHIFT                 0x04
3494 #define TPS65917_LDO2_CTRL_MODE_SLEEP            3509 #define TPS65917_LDO2_CTRL_MODE_SLEEP                           0x04
3495 #define TPS65917_LDO2_CTRL_MODE_SLEEP_SHIFT      3510 #define TPS65917_LDO2_CTRL_MODE_SLEEP_SHIFT                     0x02
3496 #define TPS65917_LDO2_CTRL_MODE_ACTIVE           3511 #define TPS65917_LDO2_CTRL_MODE_ACTIVE                          0x01
3497 #define TPS65917_LDO2_CTRL_MODE_ACTIVE_SHIFT     3512 #define TPS65917_LDO2_CTRL_MODE_ACTIVE_SHIFT                    0x00
3498                                                  3513 
3499 /* Bit definitions for LDO2_VOLTAGE */           3514 /* Bit definitions for LDO2_VOLTAGE */
3500 #define TPS65917_LDO2_VOLTAGE_VSEL_MASK          3515 #define TPS65917_LDO2_VOLTAGE_VSEL_MASK                 0x2F
3501 #define TPS65917_LDO2_VOLTAGE_VSEL_SHIFT         3516 #define TPS65917_LDO2_VOLTAGE_VSEL_SHIFT                        0x00
3502                                                  3517 
3503 /* Bit definitions for LDO3_CTRL */              3518 /* Bit definitions for LDO3_CTRL */
3504 #define TPS65917_LDO3_CTRL_WR_S                  3519 #define TPS65917_LDO3_CTRL_WR_S                         0x80
3505 #define TPS65917_LDO3_CTRL_WR_S_SHIFT            3520 #define TPS65917_LDO3_CTRL_WR_S_SHIFT                           0x07
3506 #define TPS65917_LDO3_CTRL_STATUS                3521 #define TPS65917_LDO3_CTRL_STATUS                               0x10
3507 #define TPS65917_LDO3_CTRL_STATUS_SHIFT          3522 #define TPS65917_LDO3_CTRL_STATUS_SHIFT                 0x04
3508 #define TPS65917_LDO3_CTRL_MODE_SLEEP            3523 #define TPS65917_LDO3_CTRL_MODE_SLEEP                           0x04
3509 #define TPS65917_LDO3_CTRL_MODE_SLEEP_SHIFT      3524 #define TPS65917_LDO3_CTRL_MODE_SLEEP_SHIFT                     0x02
3510 #define TPS65917_LDO3_CTRL_MODE_ACTIVE           3525 #define TPS65917_LDO3_CTRL_MODE_ACTIVE                          0x01
3511 #define TPS65917_LDO3_CTRL_MODE_ACTIVE_SHIFT     3526 #define TPS65917_LDO3_CTRL_MODE_ACTIVE_SHIFT                    0x00
3512                                                  3527 
3513 /* Bit definitions for LDO3_VOLTAGE */           3528 /* Bit definitions for LDO3_VOLTAGE */
3514 #define TPS65917_LDO3_VOLTAGE_VSEL_MASK          3529 #define TPS65917_LDO3_VOLTAGE_VSEL_MASK                 0x2F
3515 #define TPS65917_LDO3_VOLTAGE_VSEL_SHIFT         3530 #define TPS65917_LDO3_VOLTAGE_VSEL_SHIFT                        0x00
3516                                                  3531 
3517 /* Bit definitions for LDO4_CTRL */              3532 /* Bit definitions for LDO4_CTRL */
3518 #define TPS65917_LDO4_CTRL_WR_S                  3533 #define TPS65917_LDO4_CTRL_WR_S                         0x80
3519 #define TPS65917_LDO4_CTRL_WR_S_SHIFT            3534 #define TPS65917_LDO4_CTRL_WR_S_SHIFT                           0x07
3520 #define TPS65917_LDO4_CTRL_STATUS                3535 #define TPS65917_LDO4_CTRL_STATUS                               0x10
3521 #define TPS65917_LDO4_CTRL_STATUS_SHIFT          3536 #define TPS65917_LDO4_CTRL_STATUS_SHIFT                 0x04
3522 #define TPS65917_LDO4_CTRL_MODE_SLEEP            3537 #define TPS65917_LDO4_CTRL_MODE_SLEEP                           0x04
3523 #define TPS65917_LDO4_CTRL_MODE_SLEEP_SHIFT      3538 #define TPS65917_LDO4_CTRL_MODE_SLEEP_SHIFT                     0x02
3524 #define TPS65917_LDO4_CTRL_MODE_ACTIVE           3539 #define TPS65917_LDO4_CTRL_MODE_ACTIVE                          0x01
3525 #define TPS65917_LDO4_CTRL_MODE_ACTIVE_SHIFT     3540 #define TPS65917_LDO4_CTRL_MODE_ACTIVE_SHIFT                    0x00
3526                                                  3541 
3527 /* Bit definitions for LDO4_VOLTAGE */           3542 /* Bit definitions for LDO4_VOLTAGE */
3528 #define TPS65917_LDO4_VOLTAGE_VSEL_MASK          3543 #define TPS65917_LDO4_VOLTAGE_VSEL_MASK                 0x2F
3529 #define TPS65917_LDO4_VOLTAGE_VSEL_SHIFT         3544 #define TPS65917_LDO4_VOLTAGE_VSEL_SHIFT                        0x00
3530                                                  3545 
3531 /* Bit definitions for LDO5_CTRL */              3546 /* Bit definitions for LDO5_CTRL */
3532 #define TPS65917_LDO5_CTRL_WR_S                  3547 #define TPS65917_LDO5_CTRL_WR_S                         0x80
3533 #define TPS65917_LDO5_CTRL_WR_S_SHIFT            3548 #define TPS65917_LDO5_CTRL_WR_S_SHIFT                           0x07
3534 #define TPS65917_LDO5_CTRL_STATUS                3549 #define TPS65917_LDO5_CTRL_STATUS                               0x10
3535 #define TPS65917_LDO5_CTRL_STATUS_SHIFT          3550 #define TPS65917_LDO5_CTRL_STATUS_SHIFT                 0x04
3536 #define TPS65917_LDO5_CTRL_MODE_SLEEP            3551 #define TPS65917_LDO5_CTRL_MODE_SLEEP                           0x04
3537 #define TPS65917_LDO5_CTRL_MODE_SLEEP_SHIFT      3552 #define TPS65917_LDO5_CTRL_MODE_SLEEP_SHIFT                     0x02
3538 #define TPS65917_LDO5_CTRL_MODE_ACTIVE           3553 #define TPS65917_LDO5_CTRL_MODE_ACTIVE                          0x01
3539 #define TPS65917_LDO5_CTRL_MODE_ACTIVE_SHIFT     3554 #define TPS65917_LDO5_CTRL_MODE_ACTIVE_SHIFT                    0x00
3540                                                  3555 
3541 /* Bit definitions for LDO5_VOLTAGE */           3556 /* Bit definitions for LDO5_VOLTAGE */
3542 #define TPS65917_LDO5_VOLTAGE_VSEL_MASK          3557 #define TPS65917_LDO5_VOLTAGE_VSEL_MASK                 0x2F
3543 #define TPS65917_LDO5_VOLTAGE_VSEL_SHIFT         3558 #define TPS65917_LDO5_VOLTAGE_VSEL_SHIFT                        0x00
3544                                                  3559 
3545 /* Bit definitions for LDO_PD_CTRL1 */           3560 /* Bit definitions for LDO_PD_CTRL1 */
3546 #define TPS65917_LDO_PD_CTRL1_LDO4               3561 #define TPS65917_LDO_PD_CTRL1_LDO4                              0x80
3547 #define TPS65917_LDO_PD_CTRL1_LDO4_SHIFT         3562 #define TPS65917_LDO_PD_CTRL1_LDO4_SHIFT                        0x07
3548 #define TPS65917_LDO_PD_CTRL1_LDO2               3563 #define TPS65917_LDO_PD_CTRL1_LDO2                              0x02
3549 #define TPS65917_LDO_PD_CTRL1_LDO2_SHIFT         3564 #define TPS65917_LDO_PD_CTRL1_LDO2_SHIFT                        0x01
3550 #define TPS65917_LDO_PD_CTRL1_LDO1               3565 #define TPS65917_LDO_PD_CTRL1_LDO1                              0x01
3551 #define TPS65917_LDO_PD_CTRL1_LDO1_SHIFT         3566 #define TPS65917_LDO_PD_CTRL1_LDO1_SHIFT                        0x00
3552                                                  3567 
3553 /* Bit definitions for LDO_PD_CTRL2 */           3568 /* Bit definitions for LDO_PD_CTRL2 */
3554 #define TPS65917_LDO_PD_CTRL2_LDO3               3569 #define TPS65917_LDO_PD_CTRL2_LDO3                              0x04
3555 #define TPS65917_LDO_PD_CTRL2_LDO3_SHIFT         3570 #define TPS65917_LDO_PD_CTRL2_LDO3_SHIFT                        0x02
3556 #define TPS65917_LDO_PD_CTRL2_LDO5               3571 #define TPS65917_LDO_PD_CTRL2_LDO5                              0x02
3557 #define TPS65917_LDO_PD_CTRL2_LDO5_SHIFT         3572 #define TPS65917_LDO_PD_CTRL2_LDO5_SHIFT                        0x01
3558                                                  3573 
3559 /* Bit definitions for LDO_PD_CTRL3 */           3574 /* Bit definitions for LDO_PD_CTRL3 */
3560 #define TPS65917_LDO_PD_CTRL2_LDOVANA            3575 #define TPS65917_LDO_PD_CTRL2_LDOVANA                           0x80
3561 #define TPS65917_LDO_PD_CTRL2_LDOVANA_SHIFT      3576 #define TPS65917_LDO_PD_CTRL2_LDOVANA_SHIFT                     0x07
3562                                                  3577 
3563 /* Bit definitions for LDO_SHORT_STATUS1 */      3578 /* Bit definitions for LDO_SHORT_STATUS1 */
3564 #define TPS65917_LDO_SHORT_STATUS1_LDO4          3579 #define TPS65917_LDO_SHORT_STATUS1_LDO4                 0x80
3565 #define TPS65917_LDO_SHORT_STATUS1_LDO4_SHIFT    3580 #define TPS65917_LDO_SHORT_STATUS1_LDO4_SHIFT                   0x07
3566 #define TPS65917_LDO_SHORT_STATUS1_LDO2          3581 #define TPS65917_LDO_SHORT_STATUS1_LDO2                 0x02
3567 #define TPS65917_LDO_SHORT_STATUS1_LDO2_SHIFT    3582 #define TPS65917_LDO_SHORT_STATUS1_LDO2_SHIFT                   0x01
3568 #define TPS65917_LDO_SHORT_STATUS1_LDO1          3583 #define TPS65917_LDO_SHORT_STATUS1_LDO1                 0x01
3569 #define TPS65917_LDO_SHORT_STATUS1_LDO1_SHIFT    3584 #define TPS65917_LDO_SHORT_STATUS1_LDO1_SHIFT                   0x00
3570                                                  3585 
3571 /* Bit definitions for LDO_SHORT_STATUS2 */      3586 /* Bit definitions for LDO_SHORT_STATUS2 */
3572 #define TPS65917_LDO_SHORT_STATUS2_LDO3          3587 #define TPS65917_LDO_SHORT_STATUS2_LDO3                 0x04
3573 #define TPS65917_LDO_SHORT_STATUS2_LDO3_SHIFT    3588 #define TPS65917_LDO_SHORT_STATUS2_LDO3_SHIFT                   0x02
3574 #define TPS65917_LDO_SHORT_STATUS2_LDO5          3589 #define TPS65917_LDO_SHORT_STATUS2_LDO5                 0x02
3575 #define TPS65917_LDO_SHORT_STATUS2_LDO5_SHIFT    3590 #define TPS65917_LDO_SHORT_STATUS2_LDO5_SHIFT                   0x01
3576                                                  3591 
3577 /* Bit definitions for LDO_SHORT_STATUS2 */      3592 /* Bit definitions for LDO_SHORT_STATUS2 */
3578 #define TPS65917_LDO_SHORT_STATUS2_LDOVANA       3593 #define TPS65917_LDO_SHORT_STATUS2_LDOVANA                      0x80
3579 #define TPS65917_LDO_SHORT_STATUS2_LDOVANA_SH    3594 #define TPS65917_LDO_SHORT_STATUS2_LDOVANA_SHIFT                0x07
3580                                                  3595 
3581 /* Bit definitions for REGEN1_CTRL */            3596 /* Bit definitions for REGEN1_CTRL */
3582 #define TPS65917_REGEN1_CTRL_STATUS              3597 #define TPS65917_REGEN1_CTRL_STATUS                             0x10
3583 #define TPS65917_REGEN1_CTRL_STATUS_SHIFT        3598 #define TPS65917_REGEN1_CTRL_STATUS_SHIFT                       0x04
3584 #define TPS65917_REGEN1_CTRL_MODE_SLEEP          3599 #define TPS65917_REGEN1_CTRL_MODE_SLEEP                 0x04
3585 #define TPS65917_REGEN1_CTRL_MODE_SLEEP_SHIFT    3600 #define TPS65917_REGEN1_CTRL_MODE_SLEEP_SHIFT                   0x02
3586 #define TPS65917_REGEN1_CTRL_MODE_ACTIVE         3601 #define TPS65917_REGEN1_CTRL_MODE_ACTIVE                        0x01
3587 #define TPS65917_REGEN1_CTRL_MODE_ACTIVE_SHIF    3602 #define TPS65917_REGEN1_CTRL_MODE_ACTIVE_SHIFT                  0x00
3588                                                  3603 
3589 /* Bit definitions for PLLEN_CTRL */             3604 /* Bit definitions for PLLEN_CTRL */
3590 #define TPS65917_PLLEN_CTRL_STATUS               3605 #define TPS65917_PLLEN_CTRL_STATUS                              0x10
3591 #define TPS65917_PLLEN_CTRL_STATUS_SHIFT         3606 #define TPS65917_PLLEN_CTRL_STATUS_SHIFT                        0x04
3592 #define TPS65917_PLLEN_CTRL_MODE_SLEEP           3607 #define TPS65917_PLLEN_CTRL_MODE_SLEEP                          0x04
3593 #define TPS65917_PLLEN_CTRL_MODE_SLEEP_SHIFT     3608 #define TPS65917_PLLEN_CTRL_MODE_SLEEP_SHIFT                    0x02
3594 #define TPS65917_PLLEN_CTRL_MODE_ACTIVE          3609 #define TPS65917_PLLEN_CTRL_MODE_ACTIVE                 0x01
3595 #define TPS65917_PLLEN_CTRL_MODE_ACTIVE_SHIFT    3610 #define TPS65917_PLLEN_CTRL_MODE_ACTIVE_SHIFT                   0x00
3596                                                  3611 
3597 /* Bit definitions for REGEN2_CTRL */            3612 /* Bit definitions for REGEN2_CTRL */
3598 #define TPS65917_REGEN2_CTRL_STATUS              3613 #define TPS65917_REGEN2_CTRL_STATUS                             0x10
3599 #define TPS65917_REGEN2_CTRL_STATUS_SHIFT        3614 #define TPS65917_REGEN2_CTRL_STATUS_SHIFT                       0x04
3600 #define TPS65917_REGEN2_CTRL_MODE_SLEEP          3615 #define TPS65917_REGEN2_CTRL_MODE_SLEEP                 0x04
3601 #define TPS65917_REGEN2_CTRL_MODE_SLEEP_SHIFT    3616 #define TPS65917_REGEN2_CTRL_MODE_SLEEP_SHIFT                   0x02
3602 #define TPS65917_REGEN2_CTRL_MODE_ACTIVE         3617 #define TPS65917_REGEN2_CTRL_MODE_ACTIVE                        0x01
3603 #define TPS65917_REGEN2_CTRL_MODE_ACTIVE_SHIF    3618 #define TPS65917_REGEN2_CTRL_MODE_ACTIVE_SHIFT                  0x00
3604                                                  3619 
3605 /* Bit definitions for NSLEEP_RES_ASSIGN */      3620 /* Bit definitions for NSLEEP_RES_ASSIGN */
3606 #define TPS65917_NSLEEP_RES_ASSIGN_PLL_EN        3621 #define TPS65917_NSLEEP_RES_ASSIGN_PLL_EN                       0x08
3607 #define TPS65917_NSLEEP_RES_ASSIGN_PLL_EN_SHI    3622 #define TPS65917_NSLEEP_RES_ASSIGN_PLL_EN_SHIFT         0x03
3608 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN3        3623 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN3                       0x04
3609 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN3_SHI    3624 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN3_SHIFT         0x02
3610 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN2        3625 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN2                       0x02
3611 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN2_SHI    3626 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN2_SHIFT         0x01
3612 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN1        3627 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN1                       0x01
3613 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN1_SHI    3628 #define TPS65917_NSLEEP_RES_ASSIGN_REGEN1_SHIFT         0x00
3614                                                  3629 
3615 /* Bit definitions for NSLEEP_SMPS_ASSIGN */     3630 /* Bit definitions for NSLEEP_SMPS_ASSIGN */
3616 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS5        3631 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS5                       0x40
3617 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS5_SHI    3632 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS5_SHIFT         0x06
3618 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS4        3633 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS4                       0x10
3619 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS4_SHI    3634 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS4_SHIFT         0x04
3620 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS3        3635 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS3                       0x08
3621 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS3_SHI    3636 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS3_SHIFT         0x03
3622 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS2        3637 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS2                       0x02
3623 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS2_SHI    3638 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS2_SHIFT         0x01
3624 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS1        3639 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS1                       0x01
3625 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS1_SHI    3640 #define TPS65917_NSLEEP_SMPS_ASSIGN_SMPS1_SHIFT         0x00
3626                                                  3641 
3627 /* Bit definitions for NSLEEP_LDO_ASSIGN1 */     3642 /* Bit definitions for NSLEEP_LDO_ASSIGN1 */
3628 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO4         3643 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO4                        0x80
3629 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO4_SHIF    3644 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO4_SHIFT                  0x07
3630 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO2         3645 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO2                        0x02
3631 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO2_SHIF    3646 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO2_SHIFT                  0x01
3632 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO1         3647 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO1                        0x01
3633 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO1_SHIF    3648 #define TPS65917_NSLEEP_LDO_ASSIGN1_LDO1_SHIFT                  0x00
3634                                                  3649 
3635 /* Bit definitions for NSLEEP_LDO_ASSIGN2 */     3650 /* Bit definitions for NSLEEP_LDO_ASSIGN2 */
3636 #define TPS65917_NSLEEP_LDO_ASSIGN2_LDO3         3651 #define TPS65917_NSLEEP_LDO_ASSIGN2_LDO3                        0x04
3637 #define TPS65917_NSLEEP_LDO_ASSIGN2_LDO3_SHIF    3652 #define TPS65917_NSLEEP_LDO_ASSIGN2_LDO3_SHIFT                  0x02
3638 #define TPS65917_NSLEEP_LDO_ASSIGN2_LDO5         3653 #define TPS65917_NSLEEP_LDO_ASSIGN2_LDO5                        0x02
3639 #define TPS65917_NSLEEP_LDO_ASSIGN2_LDO5_SHIF    3654 #define TPS65917_NSLEEP_LDO_ASSIGN2_LDO5_SHIFT                  0x01
3640                                                  3655 
3641 /* Bit definitions for ENABLE1_RES_ASSIGN */     3656 /* Bit definitions for ENABLE1_RES_ASSIGN */
3642 #define TPS65917_ENABLE1_RES_ASSIGN_PLLEN        3657 #define TPS65917_ENABLE1_RES_ASSIGN_PLLEN                       0x08
3643 #define TPS65917_ENABLE1_RES_ASSIGN_PLLEN_SHI    3658 #define TPS65917_ENABLE1_RES_ASSIGN_PLLEN_SHIFT         0x03
3644 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN3       3659 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN3                      0x04
3645 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN3_SH    3660 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN3_SHIFT                0x02
3646 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN2       3661 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN2                      0x02
3647 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN2_SH    3662 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN2_SHIFT                0x01
3648 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN1       3663 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN1                      0x01
3649 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN1_SH    3664 #define TPS65917_ENABLE1_RES_ASSIGN_REGEN1_SHIFT                0x00
3650                                                  3665 
3651 /* Bit definitions for ENABLE1_SMPS_ASSIGN */    3666 /* Bit definitions for ENABLE1_SMPS_ASSIGN */
3652 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS5       3667 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS5                      0x40
3653 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS5_SH    3668 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS5_SHIFT                0x06
3654 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS4       3669 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS4                      0x10
3655 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS4_SH    3670 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS4_SHIFT                0x04
3656 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS3       3671 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS3                      0x08
3657 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS3_SH    3672 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS3_SHIFT                0x03
3658 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS2       3673 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS2                      0x02
3659 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS2_SH    3674 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS2_SHIFT                0x01
3660 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS1       3675 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS1                      0x01
3661 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS1_SH    3676 #define TPS65917_ENABLE1_SMPS_ASSIGN_SMPS1_SHIFT                0x00
3662                                                  3677 
3663 /* Bit definitions for ENABLE1_LDO_ASSIGN1 */    3678 /* Bit definitions for ENABLE1_LDO_ASSIGN1 */
3664 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO4        3679 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO4                       0x80
3665 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO4_SHI    3680 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO4_SHIFT         0x07
3666 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO2        3681 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO2                       0x02
3667 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO2_SHI    3682 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO2_SHIFT         0x01
3668 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO1        3683 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO1                       0x01
3669 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO1_SHI    3684 #define TPS65917_ENABLE1_LDO_ASSIGN1_LDO1_SHIFT         0x00
3670                                                  3685 
3671 /* Bit definitions for ENABLE1_LDO_ASSIGN2 */    3686 /* Bit definitions for ENABLE1_LDO_ASSIGN2 */
3672 #define TPS65917_ENABLE1_LDO_ASSIGN2_LDO3        3687 #define TPS65917_ENABLE1_LDO_ASSIGN2_LDO3                       0x04
3673 #define TPS65917_ENABLE1_LDO_ASSIGN2_LDO3_SHI    3688 #define TPS65917_ENABLE1_LDO_ASSIGN2_LDO3_SHIFT         0x02
3674 #define TPS65917_ENABLE1_LDO_ASSIGN2_LDO5        3689 #define TPS65917_ENABLE1_LDO_ASSIGN2_LDO5                       0x02
3675 #define TPS65917_ENABLE1_LDO_ASSIGN2_LDO5_SHI    3690 #define TPS65917_ENABLE1_LDO_ASSIGN2_LDO5_SHIFT         0x01
3676                                                  3691 
3677 /* Bit definitions for ENABLE2_RES_ASSIGN */     3692 /* Bit definitions for ENABLE2_RES_ASSIGN */
3678 #define TPS65917_ENABLE2_RES_ASSIGN_PLLEN        3693 #define TPS65917_ENABLE2_RES_ASSIGN_PLLEN                       0x08
3679 #define TPS65917_ENABLE2_RES_ASSIGN_PLLEN_SHI    3694 #define TPS65917_ENABLE2_RES_ASSIGN_PLLEN_SHIFT         0x03
3680 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN3       3695 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN3                      0x04
3681 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN3_SH    3696 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN3_SHIFT                0x02
3682 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN2       3697 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN2                      0x02
3683 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN2_SH    3698 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN2_SHIFT                0x01
3684 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN1       3699 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN1                      0x01
3685 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN1_SH    3700 #define TPS65917_ENABLE2_RES_ASSIGN_REGEN1_SHIFT                0x00
3686                                                  3701 
3687 /* Bit definitions for ENABLE2_SMPS_ASSIGN */    3702 /* Bit definitions for ENABLE2_SMPS_ASSIGN */
3688 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS5       3703 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS5                      0x40
3689 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS5_SH    3704 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS5_SHIFT                0x06
3690 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS4       3705 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS4                      0x10
3691 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS4_SH    3706 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS4_SHIFT                0x04
3692 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS3       3707 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS3                      0x08
3693 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS3_SH    3708 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS3_SHIFT                0x03
3694 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS2       3709 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS2                      0x02
3695 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS2_SH    3710 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS2_SHIFT                0x01
3696 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS1       3711 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS1                      0x01
3697 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS1_SH    3712 #define TPS65917_ENABLE2_SMPS_ASSIGN_SMPS1_SHIFT                0x00
3698                                                  3713 
3699 /* Bit definitions for ENABLE2_LDO_ASSIGN1 */    3714 /* Bit definitions for ENABLE2_LDO_ASSIGN1 */
3700 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO4        3715 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO4                       0x80
3701 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO4_SHI    3716 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO4_SHIFT         0x07
3702 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO2        3717 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO2                       0x02
3703 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO2_SHI    3718 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO2_SHIFT         0x01
3704 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO1        3719 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO1                       0x01
3705 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO1_SHI    3720 #define TPS65917_ENABLE2_LDO_ASSIGN1_LDO1_SHIFT         0x00
3706                                                  3721 
3707 /* Bit definitions for ENABLE2_LDO_ASSIGN2 */    3722 /* Bit definitions for ENABLE2_LDO_ASSIGN2 */
3708 #define TPS65917_ENABLE2_LDO_ASSIGN2_LDO3        3723 #define TPS65917_ENABLE2_LDO_ASSIGN2_LDO3                       0x04
3709 #define TPS65917_ENABLE2_LDO_ASSIGN2_LDO3_SHI    3724 #define TPS65917_ENABLE2_LDO_ASSIGN2_LDO3_SHIFT         0x02
3710 #define TPS65917_ENABLE2_LDO_ASSIGN2_LDO5        3725 #define TPS65917_ENABLE2_LDO_ASSIGN2_LDO5                       0x02
3711 #define TPS65917_ENABLE2_LDO_ASSIGN2_LDO5_SHI    3726 #define TPS65917_ENABLE2_LDO_ASSIGN2_LDO5_SHIFT         0x01
3712                                                  3727 
3713 /* Bit definitions for REGEN3_CTRL */            3728 /* Bit definitions for REGEN3_CTRL */
3714 #define TPS65917_REGEN3_CTRL_STATUS              3729 #define TPS65917_REGEN3_CTRL_STATUS                             0x10
3715 #define TPS65917_REGEN3_CTRL_STATUS_SHIFT        3730 #define TPS65917_REGEN3_CTRL_STATUS_SHIFT                       0x04
3716 #define TPS65917_REGEN3_CTRL_MODE_SLEEP          3731 #define TPS65917_REGEN3_CTRL_MODE_SLEEP                 0x04
3717 #define TPS65917_REGEN3_CTRL_MODE_SLEEP_SHIFT    3732 #define TPS65917_REGEN3_CTRL_MODE_SLEEP_SHIFT                   0x02
3718 #define TPS65917_REGEN3_CTRL_MODE_ACTIVE         3733 #define TPS65917_REGEN3_CTRL_MODE_ACTIVE                        0x01
3719 #define TPS65917_REGEN3_CTRL_MODE_ACTIVE_SHIF    3734 #define TPS65917_REGEN3_CTRL_MODE_ACTIVE_SHIFT                  0x00
3720                                                  3735 
3721 /* POWERHOLD Mask field for PRIMARY_SECONDARY    3736 /* POWERHOLD Mask field for PRIMARY_SECONDARY_PAD2 register */
3722 #define TPS65917_PRIMARY_SECONDARY_PAD2_GPIO_    3737 #define TPS65917_PRIMARY_SECONDARY_PAD2_GPIO_5_MASK             0xC
3723                                                  3738 
3724 /* Registers for function RESOURCE */            3739 /* Registers for function RESOURCE */
3725 #define TPS65917_REGEN1_CTRL                     3740 #define TPS65917_REGEN1_CTRL                                    0x2
3726 #define TPS65917_PLLEN_CTRL                      3741 #define TPS65917_PLLEN_CTRL                                     0x3
3727 #define TPS65917_NSLEEP_RES_ASSIGN               3742 #define TPS65917_NSLEEP_RES_ASSIGN                              0x6
3728 #define TPS65917_NSLEEP_SMPS_ASSIGN              3743 #define TPS65917_NSLEEP_SMPS_ASSIGN                             0x7
3729 #define TPS65917_NSLEEP_LDO_ASSIGN1              3744 #define TPS65917_NSLEEP_LDO_ASSIGN1                             0x8
3730 #define TPS65917_NSLEEP_LDO_ASSIGN2              3745 #define TPS65917_NSLEEP_LDO_ASSIGN2                             0x9
3731 #define TPS65917_ENABLE1_RES_ASSIGN              3746 #define TPS65917_ENABLE1_RES_ASSIGN                             0xA
3732 #define TPS65917_ENABLE1_SMPS_ASSIGN             3747 #define TPS65917_ENABLE1_SMPS_ASSIGN                            0xB
3733 #define TPS65917_ENABLE1_LDO_ASSIGN1             3748 #define TPS65917_ENABLE1_LDO_ASSIGN1                            0xC
3734 #define TPS65917_ENABLE1_LDO_ASSIGN2             3749 #define TPS65917_ENABLE1_LDO_ASSIGN2                            0xD
3735 #define TPS65917_ENABLE2_RES_ASSIGN              3750 #define TPS65917_ENABLE2_RES_ASSIGN                             0xE
3736 #define TPS65917_ENABLE2_SMPS_ASSIGN             3751 #define TPS65917_ENABLE2_SMPS_ASSIGN                            0xF
3737 #define TPS65917_ENABLE2_LDO_ASSIGN1             3752 #define TPS65917_ENABLE2_LDO_ASSIGN1                            0x10
3738 #define TPS65917_ENABLE2_LDO_ASSIGN2             3753 #define TPS65917_ENABLE2_LDO_ASSIGN2                            0x11
3739 #define TPS65917_REGEN2_CTRL                     3754 #define TPS65917_REGEN2_CTRL                                    0x12
3740 #define TPS65917_REGEN3_CTRL                     3755 #define TPS65917_REGEN3_CTRL                                    0x13
3741                                                  3756 
3742 static inline int palmas_read(struct palmas *    3757 static inline int palmas_read(struct palmas *palmas, unsigned int base,
3743                 unsigned int reg, unsigned in    3758                 unsigned int reg, unsigned int *val)
3744 {                                                3759 {
3745         unsigned int addr = PALMAS_BASE_TO_RE    3760         unsigned int addr = PALMAS_BASE_TO_REG(base, reg);
3746         int slave_id = PALMAS_BASE_TO_SLAVE(b    3761         int slave_id = PALMAS_BASE_TO_SLAVE(base);
3747                                                  3762 
3748         return regmap_read(palmas->regmap[sla    3763         return regmap_read(palmas->regmap[slave_id], addr, val);
3749 }                                                3764 }
3750                                                  3765 
3751 static inline int palmas_write(struct palmas     3766 static inline int palmas_write(struct palmas *palmas, unsigned int base,
3752                 unsigned int reg, unsigned in    3767                 unsigned int reg, unsigned int value)
3753 {                                                3768 {
3754         unsigned int addr = PALMAS_BASE_TO_RE    3769         unsigned int addr = PALMAS_BASE_TO_REG(base, reg);
3755         int slave_id = PALMAS_BASE_TO_SLAVE(b    3770         int slave_id = PALMAS_BASE_TO_SLAVE(base);
3756                                                  3771 
3757         return regmap_write(palmas->regmap[sl    3772         return regmap_write(palmas->regmap[slave_id], addr, value);
3758 }                                                3773 }
3759                                                  3774 
3760 static inline int palmas_bulk_write(struct pa    3775 static inline int palmas_bulk_write(struct palmas *palmas, unsigned int base,
3761         unsigned int reg, const void *val, si    3776         unsigned int reg, const void *val, size_t val_count)
3762 {                                                3777 {
3763         unsigned int addr = PALMAS_BASE_TO_RE    3778         unsigned int addr = PALMAS_BASE_TO_REG(base, reg);
3764         int slave_id = PALMAS_BASE_TO_SLAVE(b    3779         int slave_id = PALMAS_BASE_TO_SLAVE(base);
3765                                                  3780 
3766         return regmap_bulk_write(palmas->regm    3781         return regmap_bulk_write(palmas->regmap[slave_id], addr,
3767                         val, val_count);         3782                         val, val_count);
3768 }                                                3783 }
3769                                                  3784 
3770 static inline int palmas_bulk_read(struct pal    3785 static inline int palmas_bulk_read(struct palmas *palmas, unsigned int base,
3771                 unsigned int reg, void *val,     3786                 unsigned int reg, void *val, size_t val_count)
3772 {                                                3787 {
3773         unsigned int addr = PALMAS_BASE_TO_RE    3788         unsigned int addr = PALMAS_BASE_TO_REG(base, reg);
3774         int slave_id = PALMAS_BASE_TO_SLAVE(b    3789         int slave_id = PALMAS_BASE_TO_SLAVE(base);
3775                                                  3790 
3776         return regmap_bulk_read(palmas->regma    3791         return regmap_bulk_read(palmas->regmap[slave_id], addr,
3777                 val, val_count);                 3792                 val, val_count);
3778 }                                                3793 }
3779                                                  3794 
3780 static inline int palmas_update_bits(struct p    3795 static inline int palmas_update_bits(struct palmas *palmas, unsigned int base,
3781         unsigned int reg, unsigned int mask,     3796         unsigned int reg, unsigned int mask, unsigned int val)
3782 {                                                3797 {
3783         unsigned int addr = PALMAS_BASE_TO_RE    3798         unsigned int addr = PALMAS_BASE_TO_REG(base, reg);
3784         int slave_id = PALMAS_BASE_TO_SLAVE(b    3799         int slave_id = PALMAS_BASE_TO_SLAVE(base);
3785                                                  3800 
3786         return regmap_update_bits(palmas->reg    3801         return regmap_update_bits(palmas->regmap[slave_id], addr, mask, val);
3787 }                                                3802 }
3788                                                  3803 
3789 static inline int palmas_irq_get_virq(struct     3804 static inline int palmas_irq_get_virq(struct palmas *palmas, int irq)
3790 {                                                3805 {
3791         return regmap_irq_get_virq(palmas->ir    3806         return regmap_irq_get_virq(palmas->irq_data, irq);
3792 }                                                3807 }
3793                                                  3808 
3794                                                  3809 
3795 int palmas_ext_control_req_config(struct palm    3810 int palmas_ext_control_req_config(struct palmas *palmas,
3796         enum palmas_external_requestor_id ext    3811         enum palmas_external_requestor_id ext_control_req_id,
3797         int ext_ctrl, bool enable);              3812         int ext_ctrl, bool enable);
3798                                                  3813 
3799 #endif /*  __LINUX_MFD_PALMAS_H */               3814 #endif /*  __LINUX_MFD_PALMAS_H */
3800                                                  3815 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php