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

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/wm831x/pmu.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/mfd/wm831x/pmu.h (Version linux-6.12-rc7) and /include/linux/mfd/wm831x/pmu.h (Version linux-6.8.12)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*                                                  2 /*
  3  * include/linux/mfd/wm831x/pmu.h -- PMU for W      3  * include/linux/mfd/wm831x/pmu.h -- PMU for WM831x
  4  *                                                  4  *
  5  * Copyright 2009 Wolfson Microelectronics PLC      5  * Copyright 2009 Wolfson Microelectronics PLC.
  6  *                                                  6  *
  7  * Author: Mark Brown <broonie@opensource.wolf      7  * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
  8  */                                                 8  */
  9                                                     9 
 10 #ifndef __MFD_WM831X_PMU_H__                       10 #ifndef __MFD_WM831X_PMU_H__
 11 #define __MFD_WM831X_PMU_H__                       11 #define __MFD_WM831X_PMU_H__
 12                                                    12 
 13 /*                                                 13 /*
 14  * R16387 (0x4003) - Power State                   14  * R16387 (0x4003) - Power State
 15  */                                                15  */
 16 #define WM831X_CHIP_ON                             16 #define WM831X_CHIP_ON                          0x8000  /* CHIP_ON */
 17 #define WM831X_CHIP_ON_MASK                        17 #define WM831X_CHIP_ON_MASK                     0x8000  /* CHIP_ON */
 18 #define WM831X_CHIP_ON_SHIFT                       18 #define WM831X_CHIP_ON_SHIFT                        15  /* CHIP_ON */
 19 #define WM831X_CHIP_ON_WIDTH                       19 #define WM831X_CHIP_ON_WIDTH                         1  /* CHIP_ON */
 20 #define WM831X_CHIP_SLP                            20 #define WM831X_CHIP_SLP                         0x4000  /* CHIP_SLP */
 21 #define WM831X_CHIP_SLP_MASK                       21 #define WM831X_CHIP_SLP_MASK                    0x4000  /* CHIP_SLP */
 22 #define WM831X_CHIP_SLP_SHIFT                      22 #define WM831X_CHIP_SLP_SHIFT                       14  /* CHIP_SLP */
 23 #define WM831X_CHIP_SLP_WIDTH                      23 #define WM831X_CHIP_SLP_WIDTH                        1  /* CHIP_SLP */
 24 #define WM831X_REF_LP                              24 #define WM831X_REF_LP                           0x1000  /* REF_LP */
 25 #define WM831X_REF_LP_MASK                         25 #define WM831X_REF_LP_MASK                      0x1000  /* REF_LP */
 26 #define WM831X_REF_LP_SHIFT                        26 #define WM831X_REF_LP_SHIFT                         12  /* REF_LP */
 27 #define WM831X_REF_LP_WIDTH                        27 #define WM831X_REF_LP_WIDTH                          1  /* REF_LP */
 28 #define WM831X_PWRSTATE_DLY_MASK                   28 #define WM831X_PWRSTATE_DLY_MASK                0x0C00  /* PWRSTATE_DLY - [11:10] */
 29 #define WM831X_PWRSTATE_DLY_SHIFT                  29 #define WM831X_PWRSTATE_DLY_SHIFT                   10  /* PWRSTATE_DLY - [11:10] */
 30 #define WM831X_PWRSTATE_DLY_WIDTH                  30 #define WM831X_PWRSTATE_DLY_WIDTH                    2  /* PWRSTATE_DLY - [11:10] */
 31 #define WM831X_SWRST_DLY                           31 #define WM831X_SWRST_DLY                        0x0200  /* SWRST_DLY */
 32 #define WM831X_SWRST_DLY_MASK                      32 #define WM831X_SWRST_DLY_MASK                   0x0200  /* SWRST_DLY */
 33 #define WM831X_SWRST_DLY_SHIFT                     33 #define WM831X_SWRST_DLY_SHIFT                       9  /* SWRST_DLY */
 34 #define WM831X_SWRST_DLY_WIDTH                     34 #define WM831X_SWRST_DLY_WIDTH                       1  /* SWRST_DLY */
 35 #define WM831X_USB100MA_STARTUP_MASK               35 #define WM831X_USB100MA_STARTUP_MASK            0x0030  /* USB100MA_STARTUP - [5:4] */
 36 #define WM831X_USB100MA_STARTUP_SHIFT              36 #define WM831X_USB100MA_STARTUP_SHIFT                4  /* USB100MA_STARTUP - [5:4] */
 37 #define WM831X_USB100MA_STARTUP_WIDTH              37 #define WM831X_USB100MA_STARTUP_WIDTH                2  /* USB100MA_STARTUP - [5:4] */
 38 #define WM831X_USB_CURR_STS                        38 #define WM831X_USB_CURR_STS                     0x0008  /* USB_CURR_STS */
 39 #define WM831X_USB_CURR_STS_MASK                   39 #define WM831X_USB_CURR_STS_MASK                0x0008  /* USB_CURR_STS */
 40 #define WM831X_USB_CURR_STS_SHIFT                  40 #define WM831X_USB_CURR_STS_SHIFT                    3  /* USB_CURR_STS */
 41 #define WM831X_USB_CURR_STS_WIDTH                  41 #define WM831X_USB_CURR_STS_WIDTH                    1  /* USB_CURR_STS */
 42 #define WM831X_USB_ILIM_MASK                       42 #define WM831X_USB_ILIM_MASK                    0x0007  /* USB_ILIM - [2:0] */
 43 #define WM831X_USB_ILIM_SHIFT                      43 #define WM831X_USB_ILIM_SHIFT                        0  /* USB_ILIM - [2:0] */
 44 #define WM831X_USB_ILIM_WIDTH                      44 #define WM831X_USB_ILIM_WIDTH                        3  /* USB_ILIM - [2:0] */
 45                                                    45 
 46 /*                                                 46 /*
 47  * R16397 (0x400D) - System Status                 47  * R16397 (0x400D) - System Status
 48  */                                                48  */
 49 #define WM831X_THW_STS                             49 #define WM831X_THW_STS                          0x8000  /* THW_STS */
 50 #define WM831X_THW_STS_MASK                        50 #define WM831X_THW_STS_MASK                     0x8000  /* THW_STS */
 51 #define WM831X_THW_STS_SHIFT                       51 #define WM831X_THW_STS_SHIFT                        15  /* THW_STS */
 52 #define WM831X_THW_STS_WIDTH                       52 #define WM831X_THW_STS_WIDTH                         1  /* THW_STS */
 53 #define WM831X_PWR_SRC_BATT                        53 #define WM831X_PWR_SRC_BATT                     0x0400  /* PWR_SRC_BATT */
 54 #define WM831X_PWR_SRC_BATT_MASK                   54 #define WM831X_PWR_SRC_BATT_MASK                0x0400  /* PWR_SRC_BATT */
 55 #define WM831X_PWR_SRC_BATT_SHIFT                  55 #define WM831X_PWR_SRC_BATT_SHIFT                   10  /* PWR_SRC_BATT */
 56 #define WM831X_PWR_SRC_BATT_WIDTH                  56 #define WM831X_PWR_SRC_BATT_WIDTH                    1  /* PWR_SRC_BATT */
 57 #define WM831X_PWR_WALL                            57 #define WM831X_PWR_WALL                         0x0200  /* PWR_WALL */
 58 #define WM831X_PWR_WALL_MASK                       58 #define WM831X_PWR_WALL_MASK                    0x0200  /* PWR_WALL */
 59 #define WM831X_PWR_WALL_SHIFT                      59 #define WM831X_PWR_WALL_SHIFT                        9  /* PWR_WALL */
 60 #define WM831X_PWR_WALL_WIDTH                      60 #define WM831X_PWR_WALL_WIDTH                        1  /* PWR_WALL */
 61 #define WM831X_PWR_USB                             61 #define WM831X_PWR_USB                          0x0100  /* PWR_USB */
 62 #define WM831X_PWR_USB_MASK                        62 #define WM831X_PWR_USB_MASK                     0x0100  /* PWR_USB */
 63 #define WM831X_PWR_USB_SHIFT                       63 #define WM831X_PWR_USB_SHIFT                         8  /* PWR_USB */
 64 #define WM831X_PWR_USB_WIDTH                       64 #define WM831X_PWR_USB_WIDTH                         1  /* PWR_USB */
 65 #define WM831X_MAIN_STATE_MASK                     65 #define WM831X_MAIN_STATE_MASK                  0x001F  /* MAIN_STATE - [4:0] */
 66 #define WM831X_MAIN_STATE_SHIFT                    66 #define WM831X_MAIN_STATE_SHIFT                      0  /* MAIN_STATE - [4:0] */
 67 #define WM831X_MAIN_STATE_WIDTH                    67 #define WM831X_MAIN_STATE_WIDTH                      5  /* MAIN_STATE - [4:0] */
 68                                                    68 
 69 /*                                                 69 /*
 70  * R16456 (0x4048) - Charger Control 1             70  * R16456 (0x4048) - Charger Control 1
 71  */                                                71  */
 72 #define WM831X_CHG_ENA                             72 #define WM831X_CHG_ENA                          0x8000  /* CHG_ENA */
 73 #define WM831X_CHG_ENA_MASK                        73 #define WM831X_CHG_ENA_MASK                     0x8000  /* CHG_ENA */
 74 #define WM831X_CHG_ENA_SHIFT                       74 #define WM831X_CHG_ENA_SHIFT                        15  /* CHG_ENA */
 75 #define WM831X_CHG_ENA_WIDTH                       75 #define WM831X_CHG_ENA_WIDTH                         1  /* CHG_ENA */
 76 #define WM831X_CHG_FRC                             76 #define WM831X_CHG_FRC                          0x4000  /* CHG_FRC */
 77 #define WM831X_CHG_FRC_MASK                        77 #define WM831X_CHG_FRC_MASK                     0x4000  /* CHG_FRC */
 78 #define WM831X_CHG_FRC_SHIFT                       78 #define WM831X_CHG_FRC_SHIFT                        14  /* CHG_FRC */
 79 #define WM831X_CHG_FRC_WIDTH                       79 #define WM831X_CHG_FRC_WIDTH                         1  /* CHG_FRC */
 80 #define WM831X_CHG_ITERM_MASK                      80 #define WM831X_CHG_ITERM_MASK                   0x1C00  /* CHG_ITERM - [12:10] */
 81 #define WM831X_CHG_ITERM_SHIFT                     81 #define WM831X_CHG_ITERM_SHIFT                      10  /* CHG_ITERM - [12:10] */
 82 #define WM831X_CHG_ITERM_WIDTH                     82 #define WM831X_CHG_ITERM_WIDTH                       3  /* CHG_ITERM - [12:10] */
 83 #define WM831X_CHG_FAST                            83 #define WM831X_CHG_FAST                         0x0020  /* CHG_FAST */
 84 #define WM831X_CHG_FAST_MASK                       84 #define WM831X_CHG_FAST_MASK                    0x0020  /* CHG_FAST */
 85 #define WM831X_CHG_FAST_SHIFT                      85 #define WM831X_CHG_FAST_SHIFT                        5  /* CHG_FAST */
 86 #define WM831X_CHG_FAST_WIDTH                      86 #define WM831X_CHG_FAST_WIDTH                        1  /* CHG_FAST */
 87 #define WM831X_CHG_IMON_ENA                        87 #define WM831X_CHG_IMON_ENA                     0x0002  /* CHG_IMON_ENA */
 88 #define WM831X_CHG_IMON_ENA_MASK                   88 #define WM831X_CHG_IMON_ENA_MASK                0x0002  /* CHG_IMON_ENA */
 89 #define WM831X_CHG_IMON_ENA_SHIFT                  89 #define WM831X_CHG_IMON_ENA_SHIFT                    1  /* CHG_IMON_ENA */
 90 #define WM831X_CHG_IMON_ENA_WIDTH                  90 #define WM831X_CHG_IMON_ENA_WIDTH                    1  /* CHG_IMON_ENA */
 91 #define WM831X_CHG_CHIP_TEMP_MON                   91 #define WM831X_CHG_CHIP_TEMP_MON                0x0001  /* CHG_CHIP_TEMP_MON */
 92 #define WM831X_CHG_CHIP_TEMP_MON_MASK              92 #define WM831X_CHG_CHIP_TEMP_MON_MASK           0x0001  /* CHG_CHIP_TEMP_MON */
 93 #define WM831X_CHG_CHIP_TEMP_MON_SHIFT             93 #define WM831X_CHG_CHIP_TEMP_MON_SHIFT               0  /* CHG_CHIP_TEMP_MON */
 94 #define WM831X_CHG_CHIP_TEMP_MON_WIDTH             94 #define WM831X_CHG_CHIP_TEMP_MON_WIDTH               1  /* CHG_CHIP_TEMP_MON */
 95                                                    95 
 96 /*                                                 96 /*
 97  * R16457 (0x4049) - Charger Control 2             97  * R16457 (0x4049) - Charger Control 2
 98  */                                                98  */
 99 #define WM831X_CHG_OFF_MSK                         99 #define WM831X_CHG_OFF_MSK                      0x4000  /* CHG_OFF_MSK */
100 #define WM831X_CHG_OFF_MSK_MASK                   100 #define WM831X_CHG_OFF_MSK_MASK                 0x4000  /* CHG_OFF_MSK */
101 #define WM831X_CHG_OFF_MSK_SHIFT                  101 #define WM831X_CHG_OFF_MSK_SHIFT                    14  /* CHG_OFF_MSK */
102 #define WM831X_CHG_OFF_MSK_WIDTH                  102 #define WM831X_CHG_OFF_MSK_WIDTH                     1  /* CHG_OFF_MSK */
103 #define WM831X_CHG_TIME_MASK                      103 #define WM831X_CHG_TIME_MASK                    0x0F00  /* CHG_TIME - [11:8] */
104 #define WM831X_CHG_TIME_SHIFT                     104 #define WM831X_CHG_TIME_SHIFT                        8  /* CHG_TIME - [11:8] */
105 #define WM831X_CHG_TIME_WIDTH                     105 #define WM831X_CHG_TIME_WIDTH                        4  /* CHG_TIME - [11:8] */
106 #define WM831X_CHG_TRKL_ILIM_MASK                 106 #define WM831X_CHG_TRKL_ILIM_MASK               0x00C0  /* CHG_TRKL_ILIM - [7:6] */
107 #define WM831X_CHG_TRKL_ILIM_SHIFT                107 #define WM831X_CHG_TRKL_ILIM_SHIFT                   6  /* CHG_TRKL_ILIM - [7:6] */
108 #define WM831X_CHG_TRKL_ILIM_WIDTH                108 #define WM831X_CHG_TRKL_ILIM_WIDTH                   2  /* CHG_TRKL_ILIM - [7:6] */
109 #define WM831X_CHG_VSEL_MASK                      109 #define WM831X_CHG_VSEL_MASK                    0x0030  /* CHG_VSEL - [5:4] */
110 #define WM831X_CHG_VSEL_SHIFT                     110 #define WM831X_CHG_VSEL_SHIFT                        4  /* CHG_VSEL - [5:4] */
111 #define WM831X_CHG_VSEL_WIDTH                     111 #define WM831X_CHG_VSEL_WIDTH                        2  /* CHG_VSEL - [5:4] */
112 #define WM831X_CHG_FAST_ILIM_MASK                 112 #define WM831X_CHG_FAST_ILIM_MASK               0x000F  /* CHG_FAST_ILIM - [3:0] */
113 #define WM831X_CHG_FAST_ILIM_SHIFT                113 #define WM831X_CHG_FAST_ILIM_SHIFT                   0  /* CHG_FAST_ILIM - [3:0] */
114 #define WM831X_CHG_FAST_ILIM_WIDTH                114 #define WM831X_CHG_FAST_ILIM_WIDTH                   4  /* CHG_FAST_ILIM - [3:0] */
115                                                   115 
116 /*                                                116 /*
117  * R16458 (0x404A) - Charger Status               117  * R16458 (0x404A) - Charger Status
118  */                                               118  */
119 #define WM831X_BATT_OV_STS                        119 #define WM831X_BATT_OV_STS                      0x8000  /* BATT_OV_STS */
120 #define WM831X_BATT_OV_STS_MASK                   120 #define WM831X_BATT_OV_STS_MASK                 0x8000  /* BATT_OV_STS */
121 #define WM831X_BATT_OV_STS_SHIFT                  121 #define WM831X_BATT_OV_STS_SHIFT                    15  /* BATT_OV_STS */
122 #define WM831X_BATT_OV_STS_WIDTH                  122 #define WM831X_BATT_OV_STS_WIDTH                     1  /* BATT_OV_STS */
123 #define WM831X_CHG_STATE_MASK                     123 #define WM831X_CHG_STATE_MASK                   0x7000  /* CHG_STATE - [14:12] */
124 #define WM831X_CHG_STATE_SHIFT                    124 #define WM831X_CHG_STATE_SHIFT                      12  /* CHG_STATE - [14:12] */
125 #define WM831X_CHG_STATE_WIDTH                    125 #define WM831X_CHG_STATE_WIDTH                       3  /* CHG_STATE - [14:12] */
126 #define WM831X_BATT_HOT_STS                       126 #define WM831X_BATT_HOT_STS                     0x0800  /* BATT_HOT_STS */
127 #define WM831X_BATT_HOT_STS_MASK                  127 #define WM831X_BATT_HOT_STS_MASK                0x0800  /* BATT_HOT_STS */
128 #define WM831X_BATT_HOT_STS_SHIFT                 128 #define WM831X_BATT_HOT_STS_SHIFT                   11  /* BATT_HOT_STS */
129 #define WM831X_BATT_HOT_STS_WIDTH                 129 #define WM831X_BATT_HOT_STS_WIDTH                    1  /* BATT_HOT_STS */
130 #define WM831X_BATT_COLD_STS                      130 #define WM831X_BATT_COLD_STS                    0x0400  /* BATT_COLD_STS */
131 #define WM831X_BATT_COLD_STS_MASK                 131 #define WM831X_BATT_COLD_STS_MASK               0x0400  /* BATT_COLD_STS */
132 #define WM831X_BATT_COLD_STS_SHIFT                132 #define WM831X_BATT_COLD_STS_SHIFT                  10  /* BATT_COLD_STS */
133 #define WM831X_BATT_COLD_STS_WIDTH                133 #define WM831X_BATT_COLD_STS_WIDTH                   1  /* BATT_COLD_STS */
134 #define WM831X_CHG_TOPOFF                         134 #define WM831X_CHG_TOPOFF                       0x0200  /* CHG_TOPOFF */
135 #define WM831X_CHG_TOPOFF_MASK                    135 #define WM831X_CHG_TOPOFF_MASK                  0x0200  /* CHG_TOPOFF */
136 #define WM831X_CHG_TOPOFF_SHIFT                   136 #define WM831X_CHG_TOPOFF_SHIFT                      9  /* CHG_TOPOFF */
137 #define WM831X_CHG_TOPOFF_WIDTH                   137 #define WM831X_CHG_TOPOFF_WIDTH                      1  /* CHG_TOPOFF */
138 #define WM831X_CHG_ACTIVE                         138 #define WM831X_CHG_ACTIVE                       0x0100  /* CHG_ACTIVE */
139 #define WM831X_CHG_ACTIVE_MASK                    139 #define WM831X_CHG_ACTIVE_MASK                  0x0100  /* CHG_ACTIVE */
140 #define WM831X_CHG_ACTIVE_SHIFT                   140 #define WM831X_CHG_ACTIVE_SHIFT                      8  /* CHG_ACTIVE */
141 #define WM831X_CHG_ACTIVE_WIDTH                   141 #define WM831X_CHG_ACTIVE_WIDTH                      1  /* CHG_ACTIVE */
142 #define WM831X_CHG_TIME_ELAPSED_MASK              142 #define WM831X_CHG_TIME_ELAPSED_MASK            0x00FF  /* CHG_TIME_ELAPSED - [7:0] */
143 #define WM831X_CHG_TIME_ELAPSED_SHIFT             143 #define WM831X_CHG_TIME_ELAPSED_SHIFT                0  /* CHG_TIME_ELAPSED - [7:0] */
144 #define WM831X_CHG_TIME_ELAPSED_WIDTH             144 #define WM831X_CHG_TIME_ELAPSED_WIDTH                8  /* CHG_TIME_ELAPSED - [7:0] */
145                                                   145 
146 #define WM831X_CHG_STATE_OFF         (0 << WM8    146 #define WM831X_CHG_STATE_OFF         (0 << WM831X_CHG_STATE_SHIFT)
147 #define WM831X_CHG_STATE_TRICKLE     (1 << WM8    147 #define WM831X_CHG_STATE_TRICKLE     (1 << WM831X_CHG_STATE_SHIFT)
148 #define WM831X_CHG_STATE_FAST        (2 << WM8    148 #define WM831X_CHG_STATE_FAST        (2 << WM831X_CHG_STATE_SHIFT)
149 #define WM831X_CHG_STATE_TRICKLE_OT  (3 << WM8    149 #define WM831X_CHG_STATE_TRICKLE_OT  (3 << WM831X_CHG_STATE_SHIFT)
150 #define WM831X_CHG_STATE_FAST_OT     (4 << WM8    150 #define WM831X_CHG_STATE_FAST_OT     (4 << WM831X_CHG_STATE_SHIFT)
151 #define WM831X_CHG_STATE_DEFECTIVE   (5 << WM8    151 #define WM831X_CHG_STATE_DEFECTIVE   (5 << WM831X_CHG_STATE_SHIFT)
152                                                   152 
153 /*                                                153 /*
154  * R16459 (0x404B) - Backup Charger Control       154  * R16459 (0x404B) - Backup Charger Control
155  */                                               155  */
156 #define WM831X_BKUP_CHG_ENA                       156 #define WM831X_BKUP_CHG_ENA                     0x8000  /* BKUP_CHG_ENA */
157 #define WM831X_BKUP_CHG_ENA_MASK                  157 #define WM831X_BKUP_CHG_ENA_MASK                0x8000  /* BKUP_CHG_ENA */
158 #define WM831X_BKUP_CHG_ENA_SHIFT                 158 #define WM831X_BKUP_CHG_ENA_SHIFT                   15  /* BKUP_CHG_ENA */
159 #define WM831X_BKUP_CHG_ENA_WIDTH                 159 #define WM831X_BKUP_CHG_ENA_WIDTH                    1  /* BKUP_CHG_ENA */
160 #define WM831X_BKUP_CHG_STS                       160 #define WM831X_BKUP_CHG_STS                     0x4000  /* BKUP_CHG_STS */
161 #define WM831X_BKUP_CHG_STS_MASK                  161 #define WM831X_BKUP_CHG_STS_MASK                0x4000  /* BKUP_CHG_STS */
162 #define WM831X_BKUP_CHG_STS_SHIFT                 162 #define WM831X_BKUP_CHG_STS_SHIFT                   14  /* BKUP_CHG_STS */
163 #define WM831X_BKUP_CHG_STS_WIDTH                 163 #define WM831X_BKUP_CHG_STS_WIDTH                    1  /* BKUP_CHG_STS */
164 #define WM831X_BKUP_CHG_MODE                      164 #define WM831X_BKUP_CHG_MODE                    0x1000  /* BKUP_CHG_MODE */
165 #define WM831X_BKUP_CHG_MODE_MASK                 165 #define WM831X_BKUP_CHG_MODE_MASK               0x1000  /* BKUP_CHG_MODE */
166 #define WM831X_BKUP_CHG_MODE_SHIFT                166 #define WM831X_BKUP_CHG_MODE_SHIFT                  12  /* BKUP_CHG_MODE */
167 #define WM831X_BKUP_CHG_MODE_WIDTH                167 #define WM831X_BKUP_CHG_MODE_WIDTH                   1  /* BKUP_CHG_MODE */
168 #define WM831X_BKUP_BATT_DET_ENA                  168 #define WM831X_BKUP_BATT_DET_ENA                0x0800  /* BKUP_BATT_DET_ENA */
169 #define WM831X_BKUP_BATT_DET_ENA_MASK             169 #define WM831X_BKUP_BATT_DET_ENA_MASK           0x0800  /* BKUP_BATT_DET_ENA */
170 #define WM831X_BKUP_BATT_DET_ENA_SHIFT            170 #define WM831X_BKUP_BATT_DET_ENA_SHIFT              11  /* BKUP_BATT_DET_ENA */
171 #define WM831X_BKUP_BATT_DET_ENA_WIDTH            171 #define WM831X_BKUP_BATT_DET_ENA_WIDTH               1  /* BKUP_BATT_DET_ENA */
172 #define WM831X_BKUP_BATT_STS                      172 #define WM831X_BKUP_BATT_STS                    0x0400  /* BKUP_BATT_STS */
173 #define WM831X_BKUP_BATT_STS_MASK                 173 #define WM831X_BKUP_BATT_STS_MASK               0x0400  /* BKUP_BATT_STS */
174 #define WM831X_BKUP_BATT_STS_SHIFT                174 #define WM831X_BKUP_BATT_STS_SHIFT                  10  /* BKUP_BATT_STS */
175 #define WM831X_BKUP_BATT_STS_WIDTH                175 #define WM831X_BKUP_BATT_STS_WIDTH                   1  /* BKUP_BATT_STS */
176 #define WM831X_BKUP_CHG_VLIM                      176 #define WM831X_BKUP_CHG_VLIM                    0x0010  /* BKUP_CHG_VLIM */
177 #define WM831X_BKUP_CHG_VLIM_MASK                 177 #define WM831X_BKUP_CHG_VLIM_MASK               0x0010  /* BKUP_CHG_VLIM */
178 #define WM831X_BKUP_CHG_VLIM_SHIFT                178 #define WM831X_BKUP_CHG_VLIM_SHIFT                   4  /* BKUP_CHG_VLIM */
179 #define WM831X_BKUP_CHG_VLIM_WIDTH                179 #define WM831X_BKUP_CHG_VLIM_WIDTH                   1  /* BKUP_CHG_VLIM */
180 #define WM831X_BKUP_CHG_ILIM_MASK                 180 #define WM831X_BKUP_CHG_ILIM_MASK               0x0003  /* BKUP_CHG_ILIM - [1:0] */
181 #define WM831X_BKUP_CHG_ILIM_SHIFT                181 #define WM831X_BKUP_CHG_ILIM_SHIFT                   0  /* BKUP_CHG_ILIM - [1:0] */
182 #define WM831X_BKUP_CHG_ILIM_WIDTH                182 #define WM831X_BKUP_CHG_ILIM_WIDTH                   2  /* BKUP_CHG_ILIM - [1:0] */
183                                                   183 
184 #endif                                            184 #endif
185                                                   185 

~ [ 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