0001
0002
0003
0004
0005
0006
0007
0008 #ifndef __LINUX_MFD_WM8400_PRIV_H
0009 #define __LINUX_MFD_WM8400_PRIV_H
0010
0011 #include <linux/mfd/wm8400.h>
0012 #include <linux/mutex.h>
0013 #include <linux/platform_device.h>
0014 #include <linux/regmap.h>
0015
0016 #define WM8400_REGISTER_COUNT 0x55
0017
0018 struct wm8400 {
0019 struct device *dev;
0020 struct regmap *regmap;
0021
0022 struct platform_device regulators[6];
0023 };
0024
0025
0026
0027
0028 #define WM8400_RESET_ID 0x00
0029 #define WM8400_ID 0x01
0030 #define WM8400_POWER_MANAGEMENT_1 0x02
0031 #define WM8400_POWER_MANAGEMENT_2 0x03
0032 #define WM8400_POWER_MANAGEMENT_3 0x04
0033 #define WM8400_AUDIO_INTERFACE_1 0x05
0034 #define WM8400_AUDIO_INTERFACE_2 0x06
0035 #define WM8400_CLOCKING_1 0x07
0036 #define WM8400_CLOCKING_2 0x08
0037 #define WM8400_AUDIO_INTERFACE_3 0x09
0038 #define WM8400_AUDIO_INTERFACE_4 0x0A
0039 #define WM8400_DAC_CTRL 0x0B
0040 #define WM8400_LEFT_DAC_DIGITAL_VOLUME 0x0C
0041 #define WM8400_RIGHT_DAC_DIGITAL_VOLUME 0x0D
0042 #define WM8400_DIGITAL_SIDE_TONE 0x0E
0043 #define WM8400_ADC_CTRL 0x0F
0044 #define WM8400_LEFT_ADC_DIGITAL_VOLUME 0x10
0045 #define WM8400_RIGHT_ADC_DIGITAL_VOLUME 0x11
0046 #define WM8400_GPIO_CTRL_1 0x12
0047 #define WM8400_GPIO1_GPIO2 0x13
0048 #define WM8400_GPIO3_GPIO4 0x14
0049 #define WM8400_GPIO5_GPIO6 0x15
0050 #define WM8400_GPIOCTRL_2 0x16
0051 #define WM8400_GPIO_POL 0x17
0052 #define WM8400_LEFT_LINE_INPUT_1_2_VOLUME 0x18
0053 #define WM8400_LEFT_LINE_INPUT_3_4_VOLUME 0x19
0054 #define WM8400_RIGHT_LINE_INPUT_1_2_VOLUME 0x1A
0055 #define WM8400_RIGHT_LINE_INPUT_3_4_VOLUME 0x1B
0056 #define WM8400_LEFT_OUTPUT_VOLUME 0x1C
0057 #define WM8400_RIGHT_OUTPUT_VOLUME 0x1D
0058 #define WM8400_LINE_OUTPUTS_VOLUME 0x1E
0059 #define WM8400_OUT3_4_VOLUME 0x1F
0060 #define WM8400_LEFT_OPGA_VOLUME 0x20
0061 #define WM8400_RIGHT_OPGA_VOLUME 0x21
0062 #define WM8400_SPEAKER_VOLUME 0x22
0063 #define WM8400_CLASSD1 0x23
0064 #define WM8400_CLASSD3 0x25
0065 #define WM8400_INPUT_MIXER1 0x27
0066 #define WM8400_INPUT_MIXER2 0x28
0067 #define WM8400_INPUT_MIXER3 0x29
0068 #define WM8400_INPUT_MIXER4 0x2A
0069 #define WM8400_INPUT_MIXER5 0x2B
0070 #define WM8400_INPUT_MIXER6 0x2C
0071 #define WM8400_OUTPUT_MIXER1 0x2D
0072 #define WM8400_OUTPUT_MIXER2 0x2E
0073 #define WM8400_OUTPUT_MIXER3 0x2F
0074 #define WM8400_OUTPUT_MIXER4 0x30
0075 #define WM8400_OUTPUT_MIXER5 0x31
0076 #define WM8400_OUTPUT_MIXER6 0x32
0077 #define WM8400_OUT3_4_MIXER 0x33
0078 #define WM8400_LINE_MIXER1 0x34
0079 #define WM8400_LINE_MIXER2 0x35
0080 #define WM8400_SPEAKER_MIXER 0x36
0081 #define WM8400_ADDITIONAL_CONTROL 0x37
0082 #define WM8400_ANTIPOP1 0x38
0083 #define WM8400_ANTIPOP2 0x39
0084 #define WM8400_MICBIAS 0x3A
0085 #define WM8400_FLL_CONTROL_1 0x3C
0086 #define WM8400_FLL_CONTROL_2 0x3D
0087 #define WM8400_FLL_CONTROL_3 0x3E
0088 #define WM8400_FLL_CONTROL_4 0x3F
0089 #define WM8400_LDO1_CONTROL 0x41
0090 #define WM8400_LDO2_CONTROL 0x42
0091 #define WM8400_LDO3_CONTROL 0x43
0092 #define WM8400_LDO4_CONTROL 0x44
0093 #define WM8400_DCDC1_CONTROL_1 0x46
0094 #define WM8400_DCDC1_CONTROL_2 0x47
0095 #define WM8400_DCDC2_CONTROL_1 0x48
0096 #define WM8400_DCDC2_CONTROL_2 0x49
0097 #define WM8400_INTERFACE 0x4B
0098 #define WM8400_PM_GENERAL 0x4C
0099 #define WM8400_PM_SHUTDOWN_CONTROL 0x4E
0100 #define WM8400_INTERRUPT_STATUS_1 0x4F
0101 #define WM8400_INTERRUPT_STATUS_1_MASK 0x50
0102 #define WM8400_INTERRUPT_LEVELS 0x51
0103 #define WM8400_SHUTDOWN_REASON 0x52
0104 #define WM8400_LINE_CIRCUITS 0x54
0105
0106
0107
0108
0109
0110
0111
0112
0113 #define WM8400_SW_RESET_CHIP_ID_MASK 0xFFFF
0114 #define WM8400_SW_RESET_CHIP_ID_SHIFT 0
0115 #define WM8400_SW_RESET_CHIP_ID_WIDTH 16
0116
0117
0118
0119
0120 #define WM8400_CHIP_REV_MASK 0x7000
0121 #define WM8400_CHIP_REV_SHIFT 12
0122 #define WM8400_CHIP_REV_WIDTH 3
0123
0124
0125
0126
0127 #define WM8400_IRQ 0x1000
0128 #define WM8400_IRQ_MASK 0x1000
0129 #define WM8400_IRQ_SHIFT 12
0130 #define WM8400_IRQ_WIDTH 1
0131 #define WM8400_TEMPOK 0x0800
0132 #define WM8400_TEMPOK_MASK 0x0800
0133 #define WM8400_TEMPOK_SHIFT 11
0134 #define WM8400_TEMPOK_WIDTH 1
0135 #define WM8400_MIC1SHRT 0x0400
0136 #define WM8400_MIC1SHRT_MASK 0x0400
0137 #define WM8400_MIC1SHRT_SHIFT 10
0138 #define WM8400_MIC1SHRT_WIDTH 1
0139 #define WM8400_MIC1DET 0x0200
0140 #define WM8400_MIC1DET_MASK 0x0200
0141 #define WM8400_MIC1DET_SHIFT 9
0142 #define WM8400_MIC1DET_WIDTH 1
0143 #define WM8400_FLL_LCK 0x0100
0144 #define WM8400_FLL_LCK_MASK 0x0100
0145 #define WM8400_FLL_LCK_SHIFT 8
0146 #define WM8400_FLL_LCK_WIDTH 1
0147 #define WM8400_GPIO_STATUS_MASK 0x00FF
0148 #define WM8400_GPIO_STATUS_SHIFT 0
0149 #define WM8400_GPIO_STATUS_WIDTH 8
0150
0151
0152
0153
0154 #define WM8400_GPIO2_DEB_ENA 0x8000
0155 #define WM8400_GPIO2_DEB_ENA_MASK 0x8000
0156 #define WM8400_GPIO2_DEB_ENA_SHIFT 15
0157 #define WM8400_GPIO2_DEB_ENA_WIDTH 1
0158 #define WM8400_GPIO2_IRQ_ENA 0x4000
0159 #define WM8400_GPIO2_IRQ_ENA_MASK 0x4000
0160 #define WM8400_GPIO2_IRQ_ENA_SHIFT 14
0161 #define WM8400_GPIO2_IRQ_ENA_WIDTH 1
0162 #define WM8400_GPIO2_PU 0x2000
0163 #define WM8400_GPIO2_PU_MASK 0x2000
0164 #define WM8400_GPIO2_PU_SHIFT 13
0165 #define WM8400_GPIO2_PU_WIDTH 1
0166 #define WM8400_GPIO2_PD 0x1000
0167 #define WM8400_GPIO2_PD_MASK 0x1000
0168 #define WM8400_GPIO2_PD_SHIFT 12
0169 #define WM8400_GPIO2_PD_WIDTH 1
0170 #define WM8400_GPIO2_SEL_MASK 0x0F00
0171 #define WM8400_GPIO2_SEL_SHIFT 8
0172 #define WM8400_GPIO2_SEL_WIDTH 4
0173 #define WM8400_GPIO1_DEB_ENA 0x0080
0174 #define WM8400_GPIO1_DEB_ENA_MASK 0x0080
0175 #define WM8400_GPIO1_DEB_ENA_SHIFT 7
0176 #define WM8400_GPIO1_DEB_ENA_WIDTH 1
0177 #define WM8400_GPIO1_IRQ_ENA 0x0040
0178 #define WM8400_GPIO1_IRQ_ENA_MASK 0x0040
0179 #define WM8400_GPIO1_IRQ_ENA_SHIFT 6
0180 #define WM8400_GPIO1_IRQ_ENA_WIDTH 1
0181 #define WM8400_GPIO1_PU 0x0020
0182 #define WM8400_GPIO1_PU_MASK 0x0020
0183 #define WM8400_GPIO1_PU_SHIFT 5
0184 #define WM8400_GPIO1_PU_WIDTH 1
0185 #define WM8400_GPIO1_PD 0x0010
0186 #define WM8400_GPIO1_PD_MASK 0x0010
0187 #define WM8400_GPIO1_PD_SHIFT 4
0188 #define WM8400_GPIO1_PD_WIDTH 1
0189 #define WM8400_GPIO1_SEL_MASK 0x000F
0190 #define WM8400_GPIO1_SEL_SHIFT 0
0191 #define WM8400_GPIO1_SEL_WIDTH 4
0192
0193
0194
0195
0196 #define WM8400_GPIO4_DEB_ENA 0x8000
0197 #define WM8400_GPIO4_DEB_ENA_MASK 0x8000
0198 #define WM8400_GPIO4_DEB_ENA_SHIFT 15
0199 #define WM8400_GPIO4_DEB_ENA_WIDTH 1
0200 #define WM8400_GPIO4_IRQ_ENA 0x4000
0201 #define WM8400_GPIO4_IRQ_ENA_MASK 0x4000
0202 #define WM8400_GPIO4_IRQ_ENA_SHIFT 14
0203 #define WM8400_GPIO4_IRQ_ENA_WIDTH 1
0204 #define WM8400_GPIO4_PU 0x2000
0205 #define WM8400_GPIO4_PU_MASK 0x2000
0206 #define WM8400_GPIO4_PU_SHIFT 13
0207 #define WM8400_GPIO4_PU_WIDTH 1
0208 #define WM8400_GPIO4_PD 0x1000
0209 #define WM8400_GPIO4_PD_MASK 0x1000
0210 #define WM8400_GPIO4_PD_SHIFT 12
0211 #define WM8400_GPIO4_PD_WIDTH 1
0212 #define WM8400_GPIO4_SEL_MASK 0x0F00
0213 #define WM8400_GPIO4_SEL_SHIFT 8
0214 #define WM8400_GPIO4_SEL_WIDTH 4
0215 #define WM8400_GPIO3_DEB_ENA 0x0080
0216 #define WM8400_GPIO3_DEB_ENA_MASK 0x0080
0217 #define WM8400_GPIO3_DEB_ENA_SHIFT 7
0218 #define WM8400_GPIO3_DEB_ENA_WIDTH 1
0219 #define WM8400_GPIO3_IRQ_ENA 0x0040
0220 #define WM8400_GPIO3_IRQ_ENA_MASK 0x0040
0221 #define WM8400_GPIO3_IRQ_ENA_SHIFT 6
0222 #define WM8400_GPIO3_IRQ_ENA_WIDTH 1
0223 #define WM8400_GPIO3_PU 0x0020
0224 #define WM8400_GPIO3_PU_MASK 0x0020
0225 #define WM8400_GPIO3_PU_SHIFT 5
0226 #define WM8400_GPIO3_PU_WIDTH 1
0227 #define WM8400_GPIO3_PD 0x0010
0228 #define WM8400_GPIO3_PD_MASK 0x0010
0229 #define WM8400_GPIO3_PD_SHIFT 4
0230 #define WM8400_GPIO3_PD_WIDTH 1
0231 #define WM8400_GPIO3_SEL_MASK 0x000F
0232 #define WM8400_GPIO3_SEL_SHIFT 0
0233 #define WM8400_GPIO3_SEL_WIDTH 4
0234
0235
0236
0237
0238 #define WM8400_GPIO6_DEB_ENA 0x8000
0239 #define WM8400_GPIO6_DEB_ENA_MASK 0x8000
0240 #define WM8400_GPIO6_DEB_ENA_SHIFT 15
0241 #define WM8400_GPIO6_DEB_ENA_WIDTH 1
0242 #define WM8400_GPIO6_IRQ_ENA 0x4000
0243 #define WM8400_GPIO6_IRQ_ENA_MASK 0x4000
0244 #define WM8400_GPIO6_IRQ_ENA_SHIFT 14
0245 #define WM8400_GPIO6_IRQ_ENA_WIDTH 1
0246 #define WM8400_GPIO6_PU 0x2000
0247 #define WM8400_GPIO6_PU_MASK 0x2000
0248 #define WM8400_GPIO6_PU_SHIFT 13
0249 #define WM8400_GPIO6_PU_WIDTH 1
0250 #define WM8400_GPIO6_PD 0x1000
0251 #define WM8400_GPIO6_PD_MASK 0x1000
0252 #define WM8400_GPIO6_PD_SHIFT 12
0253 #define WM8400_GPIO6_PD_WIDTH 1
0254 #define WM8400_GPIO6_SEL_MASK 0x0F00
0255 #define WM8400_GPIO6_SEL_SHIFT 8
0256 #define WM8400_GPIO6_SEL_WIDTH 4
0257 #define WM8400_GPIO5_DEB_ENA 0x0080
0258 #define WM8400_GPIO5_DEB_ENA_MASK 0x0080
0259 #define WM8400_GPIO5_DEB_ENA_SHIFT 7
0260 #define WM8400_GPIO5_DEB_ENA_WIDTH 1
0261 #define WM8400_GPIO5_IRQ_ENA 0x0040
0262 #define WM8400_GPIO5_IRQ_ENA_MASK 0x0040
0263 #define WM8400_GPIO5_IRQ_ENA_SHIFT 6
0264 #define WM8400_GPIO5_IRQ_ENA_WIDTH 1
0265 #define WM8400_GPIO5_PU 0x0020
0266 #define WM8400_GPIO5_PU_MASK 0x0020
0267 #define WM8400_GPIO5_PU_SHIFT 5
0268 #define WM8400_GPIO5_PU_WIDTH 1
0269 #define WM8400_GPIO5_PD 0x0010
0270 #define WM8400_GPIO5_PD_MASK 0x0010
0271 #define WM8400_GPIO5_PD_SHIFT 4
0272 #define WM8400_GPIO5_PD_WIDTH 1
0273 #define WM8400_GPIO5_SEL_MASK 0x000F
0274 #define WM8400_GPIO5_SEL_SHIFT 0
0275 #define WM8400_GPIO5_SEL_WIDTH 4
0276
0277
0278
0279
0280 #define WM8400_TEMPOK_IRQ_ENA 0x0800
0281 #define WM8400_TEMPOK_IRQ_ENA_MASK 0x0800
0282 #define WM8400_TEMPOK_IRQ_ENA_SHIFT 11
0283 #define WM8400_TEMPOK_IRQ_ENA_WIDTH 1
0284 #define WM8400_MIC1SHRT_IRQ_ENA 0x0400
0285 #define WM8400_MIC1SHRT_IRQ_ENA_MASK 0x0400
0286 #define WM8400_MIC1SHRT_IRQ_ENA_SHIFT 10
0287 #define WM8400_MIC1SHRT_IRQ_ENA_WIDTH 1
0288 #define WM8400_MIC1DET_IRQ_ENA 0x0200
0289 #define WM8400_MIC1DET_IRQ_ENA_MASK 0x0200
0290 #define WM8400_MIC1DET_IRQ_ENA_SHIFT 9
0291 #define WM8400_MIC1DET_IRQ_ENA_WIDTH 1
0292 #define WM8400_FLL_LCK_IRQ_ENA 0x0100
0293 #define WM8400_FLL_LCK_IRQ_ENA_MASK 0x0100
0294 #define WM8400_FLL_LCK_IRQ_ENA_SHIFT 8
0295 #define WM8400_FLL_LCK_IRQ_ENA_WIDTH 1
0296 #define WM8400_GPI8_DEB_ENA 0x0080
0297 #define WM8400_GPI8_DEB_ENA_MASK 0x0080
0298 #define WM8400_GPI8_DEB_ENA_SHIFT 7
0299 #define WM8400_GPI8_DEB_ENA_WIDTH 1
0300 #define WM8400_GPI8_IRQ_ENA 0x0040
0301 #define WM8400_GPI8_IRQ_ENA_MASK 0x0040
0302 #define WM8400_GPI8_IRQ_ENA_SHIFT 6
0303 #define WM8400_GPI8_IRQ_ENA_WIDTH 1
0304 #define WM8400_GPI8_ENA 0x0010
0305 #define WM8400_GPI8_ENA_MASK 0x0010
0306 #define WM8400_GPI8_ENA_SHIFT 4
0307 #define WM8400_GPI8_ENA_WIDTH 1
0308 #define WM8400_GPI7_DEB_ENA 0x0008
0309 #define WM8400_GPI7_DEB_ENA_MASK 0x0008
0310 #define WM8400_GPI7_DEB_ENA_SHIFT 3
0311 #define WM8400_GPI7_DEB_ENA_WIDTH 1
0312 #define WM8400_GPI7_IRQ_ENA 0x0004
0313 #define WM8400_GPI7_IRQ_ENA_MASK 0x0004
0314 #define WM8400_GPI7_IRQ_ENA_SHIFT 2
0315 #define WM8400_GPI7_IRQ_ENA_WIDTH 1
0316 #define WM8400_GPI7_ENA 0x0001
0317 #define WM8400_GPI7_ENA_MASK 0x0001
0318 #define WM8400_GPI7_ENA_SHIFT 0
0319 #define WM8400_GPI7_ENA_WIDTH 1
0320
0321
0322
0323
0324 #define WM8400_IRQ_INV 0x1000
0325 #define WM8400_IRQ_INV_MASK 0x1000
0326 #define WM8400_IRQ_INV_SHIFT 12
0327 #define WM8400_IRQ_INV_WIDTH 1
0328 #define WM8400_TEMPOK_POL 0x0800
0329 #define WM8400_TEMPOK_POL_MASK 0x0800
0330 #define WM8400_TEMPOK_POL_SHIFT 11
0331 #define WM8400_TEMPOK_POL_WIDTH 1
0332 #define WM8400_MIC1SHRT_POL 0x0400
0333 #define WM8400_MIC1SHRT_POL_MASK 0x0400
0334 #define WM8400_MIC1SHRT_POL_SHIFT 10
0335 #define WM8400_MIC1SHRT_POL_WIDTH 1
0336 #define WM8400_MIC1DET_POL 0x0200
0337 #define WM8400_MIC1DET_POL_MASK 0x0200
0338 #define WM8400_MIC1DET_POL_SHIFT 9
0339 #define WM8400_MIC1DET_POL_WIDTH 1
0340 #define WM8400_FLL_LCK_POL 0x0100
0341 #define WM8400_FLL_LCK_POL_MASK 0x0100
0342 #define WM8400_FLL_LCK_POL_SHIFT 8
0343 #define WM8400_FLL_LCK_POL_WIDTH 1
0344 #define WM8400_GPIO_POL_MASK 0x00FF
0345 #define WM8400_GPIO_POL_SHIFT 0
0346 #define WM8400_GPIO_POL_WIDTH 8
0347
0348
0349
0350
0351 #define WM8400_LDO1_ENA 0x8000
0352 #define WM8400_LDO1_ENA_MASK 0x8000
0353 #define WM8400_LDO1_ENA_SHIFT 15
0354 #define WM8400_LDO1_ENA_WIDTH 1
0355 #define WM8400_LDO1_SWI 0x4000
0356 #define WM8400_LDO1_SWI_MASK 0x4000
0357 #define WM8400_LDO1_SWI_SHIFT 14
0358 #define WM8400_LDO1_SWI_WIDTH 1
0359 #define WM8400_LDO1_OPFLT 0x1000
0360 #define WM8400_LDO1_OPFLT_MASK 0x1000
0361 #define WM8400_LDO1_OPFLT_SHIFT 12
0362 #define WM8400_LDO1_OPFLT_WIDTH 1
0363 #define WM8400_LDO1_ERRACT 0x0800
0364 #define WM8400_LDO1_ERRACT_MASK 0x0800
0365 #define WM8400_LDO1_ERRACT_SHIFT 11
0366 #define WM8400_LDO1_ERRACT_WIDTH 1
0367 #define WM8400_LDO1_HIB_MODE 0x0400
0368 #define WM8400_LDO1_HIB_MODE_MASK 0x0400
0369 #define WM8400_LDO1_HIB_MODE_SHIFT 10
0370 #define WM8400_LDO1_HIB_MODE_WIDTH 1
0371 #define WM8400_LDO1_VIMG_MASK 0x03E0
0372 #define WM8400_LDO1_VIMG_SHIFT 5
0373 #define WM8400_LDO1_VIMG_WIDTH 5
0374 #define WM8400_LDO1_VSEL_MASK 0x001F
0375 #define WM8400_LDO1_VSEL_SHIFT 0
0376 #define WM8400_LDO1_VSEL_WIDTH 5
0377
0378
0379
0380
0381 #define WM8400_LDO2_ENA 0x8000
0382 #define WM8400_LDO2_ENA_MASK 0x8000
0383 #define WM8400_LDO2_ENA_SHIFT 15
0384 #define WM8400_LDO2_ENA_WIDTH 1
0385 #define WM8400_LDO2_SWI 0x4000
0386 #define WM8400_LDO2_SWI_MASK 0x4000
0387 #define WM8400_LDO2_SWI_SHIFT 14
0388 #define WM8400_LDO2_SWI_WIDTH 1
0389 #define WM8400_LDO2_OPFLT 0x1000
0390 #define WM8400_LDO2_OPFLT_MASK 0x1000
0391 #define WM8400_LDO2_OPFLT_SHIFT 12
0392 #define WM8400_LDO2_OPFLT_WIDTH 1
0393 #define WM8400_LDO2_ERRACT 0x0800
0394 #define WM8400_LDO2_ERRACT_MASK 0x0800
0395 #define WM8400_LDO2_ERRACT_SHIFT 11
0396 #define WM8400_LDO2_ERRACT_WIDTH 1
0397 #define WM8400_LDO2_HIB_MODE 0x0400
0398 #define WM8400_LDO2_HIB_MODE_MASK 0x0400
0399 #define WM8400_LDO2_HIB_MODE_SHIFT 10
0400 #define WM8400_LDO2_HIB_MODE_WIDTH 1
0401 #define WM8400_LDO2_VIMG_MASK 0x03E0
0402 #define WM8400_LDO2_VIMG_SHIFT 5
0403 #define WM8400_LDO2_VIMG_WIDTH 5
0404 #define WM8400_LDO2_VSEL_MASK 0x001F
0405 #define WM8400_LDO2_VSEL_SHIFT 0
0406 #define WM8400_LDO2_VSEL_WIDTH 5
0407
0408
0409
0410
0411 #define WM8400_LDO3_ENA 0x8000
0412 #define WM8400_LDO3_ENA_MASK 0x8000
0413 #define WM8400_LDO3_ENA_SHIFT 15
0414 #define WM8400_LDO3_ENA_WIDTH 1
0415 #define WM8400_LDO3_SWI 0x4000
0416 #define WM8400_LDO3_SWI_MASK 0x4000
0417 #define WM8400_LDO3_SWI_SHIFT 14
0418 #define WM8400_LDO3_SWI_WIDTH 1
0419 #define WM8400_LDO3_OPFLT 0x1000
0420 #define WM8400_LDO3_OPFLT_MASK 0x1000
0421 #define WM8400_LDO3_OPFLT_SHIFT 12
0422 #define WM8400_LDO3_OPFLT_WIDTH 1
0423 #define WM8400_LDO3_ERRACT 0x0800
0424 #define WM8400_LDO3_ERRACT_MASK 0x0800
0425 #define WM8400_LDO3_ERRACT_SHIFT 11
0426 #define WM8400_LDO3_ERRACT_WIDTH 1
0427 #define WM8400_LDO3_HIB_MODE 0x0400
0428 #define WM8400_LDO3_HIB_MODE_MASK 0x0400
0429 #define WM8400_LDO3_HIB_MODE_SHIFT 10
0430 #define WM8400_LDO3_HIB_MODE_WIDTH 1
0431 #define WM8400_LDO3_VIMG_MASK 0x03E0
0432 #define WM8400_LDO3_VIMG_SHIFT 5
0433 #define WM8400_LDO3_VIMG_WIDTH 5
0434 #define WM8400_LDO3_VSEL_MASK 0x001F
0435 #define WM8400_LDO3_VSEL_SHIFT 0
0436 #define WM8400_LDO3_VSEL_WIDTH 5
0437
0438
0439
0440
0441 #define WM8400_LDO4_ENA 0x8000
0442 #define WM8400_LDO4_ENA_MASK 0x8000
0443 #define WM8400_LDO4_ENA_SHIFT 15
0444 #define WM8400_LDO4_ENA_WIDTH 1
0445 #define WM8400_LDO4_SWI 0x4000
0446 #define WM8400_LDO4_SWI_MASK 0x4000
0447 #define WM8400_LDO4_SWI_SHIFT 14
0448 #define WM8400_LDO4_SWI_WIDTH 1
0449 #define WM8400_LDO4_OPFLT 0x1000
0450 #define WM8400_LDO4_OPFLT_MASK 0x1000
0451 #define WM8400_LDO4_OPFLT_SHIFT 12
0452 #define WM8400_LDO4_OPFLT_WIDTH 1
0453 #define WM8400_LDO4_ERRACT 0x0800
0454 #define WM8400_LDO4_ERRACT_MASK 0x0800
0455 #define WM8400_LDO4_ERRACT_SHIFT 11
0456 #define WM8400_LDO4_ERRACT_WIDTH 1
0457 #define WM8400_LDO4_HIB_MODE 0x0400
0458 #define WM8400_LDO4_HIB_MODE_MASK 0x0400
0459 #define WM8400_LDO4_HIB_MODE_SHIFT 10
0460 #define WM8400_LDO4_HIB_MODE_WIDTH 1
0461 #define WM8400_LDO4_VIMG_MASK 0x03E0
0462 #define WM8400_LDO4_VIMG_SHIFT 5
0463 #define WM8400_LDO4_VIMG_WIDTH 5
0464 #define WM8400_LDO4_VSEL_MASK 0x001F
0465 #define WM8400_LDO4_VSEL_SHIFT 0
0466 #define WM8400_LDO4_VSEL_WIDTH 5
0467
0468
0469
0470
0471 #define WM8400_DC1_ENA 0x8000
0472 #define WM8400_DC1_ENA_MASK 0x8000
0473 #define WM8400_DC1_ENA_SHIFT 15
0474 #define WM8400_DC1_ENA_WIDTH 1
0475 #define WM8400_DC1_ACTIVE 0x4000
0476 #define WM8400_DC1_ACTIVE_MASK 0x4000
0477 #define WM8400_DC1_ACTIVE_SHIFT 14
0478 #define WM8400_DC1_ACTIVE_WIDTH 1
0479 #define WM8400_DC1_SLEEP 0x2000
0480 #define WM8400_DC1_SLEEP_MASK 0x2000
0481 #define WM8400_DC1_SLEEP_SHIFT 13
0482 #define WM8400_DC1_SLEEP_WIDTH 1
0483 #define WM8400_DC1_OPFLT 0x1000
0484 #define WM8400_DC1_OPFLT_MASK 0x1000
0485 #define WM8400_DC1_OPFLT_SHIFT 12
0486 #define WM8400_DC1_OPFLT_WIDTH 1
0487 #define WM8400_DC1_ERRACT 0x0800
0488 #define WM8400_DC1_ERRACT_MASK 0x0800
0489 #define WM8400_DC1_ERRACT_SHIFT 11
0490 #define WM8400_DC1_ERRACT_WIDTH 1
0491 #define WM8400_DC1_HIB_MODE 0x0400
0492 #define WM8400_DC1_HIB_MODE_MASK 0x0400
0493 #define WM8400_DC1_HIB_MODE_SHIFT 10
0494 #define WM8400_DC1_HIB_MODE_WIDTH 1
0495 #define WM8400_DC1_SOFTST_MASK 0x0300
0496 #define WM8400_DC1_SOFTST_SHIFT 8
0497 #define WM8400_DC1_SOFTST_WIDTH 2
0498 #define WM8400_DC1_OV_PROT 0x0080
0499 #define WM8400_DC1_OV_PROT_MASK 0x0080
0500 #define WM8400_DC1_OV_PROT_SHIFT 7
0501 #define WM8400_DC1_OV_PROT_WIDTH 1
0502 #define WM8400_DC1_VSEL_MASK 0x007F
0503 #define WM8400_DC1_VSEL_SHIFT 0
0504 #define WM8400_DC1_VSEL_WIDTH 7
0505
0506
0507
0508
0509 #define WM8400_DC1_FRC_PWM 0x2000
0510 #define WM8400_DC1_FRC_PWM_MASK 0x2000
0511 #define WM8400_DC1_FRC_PWM_SHIFT 13
0512 #define WM8400_DC1_FRC_PWM_WIDTH 1
0513 #define WM8400_DC1_STBY_LIM_MASK 0x0300
0514 #define WM8400_DC1_STBY_LIM_SHIFT 8
0515 #define WM8400_DC1_STBY_LIM_WIDTH 2
0516 #define WM8400_DC1_ACT_LIM 0x0080
0517 #define WM8400_DC1_ACT_LIM_MASK 0x0080
0518 #define WM8400_DC1_ACT_LIM_SHIFT 7
0519 #define WM8400_DC1_ACT_LIM_WIDTH 1
0520 #define WM8400_DC1_VIMG_MASK 0x007F
0521 #define WM8400_DC1_VIMG_SHIFT 0
0522 #define WM8400_DC1_VIMG_WIDTH 7
0523
0524
0525
0526
0527 #define WM8400_DC2_ENA 0x8000
0528 #define WM8400_DC2_ENA_MASK 0x8000
0529 #define WM8400_DC2_ENA_SHIFT 15
0530 #define WM8400_DC2_ENA_WIDTH 1
0531 #define WM8400_DC2_ACTIVE 0x4000
0532 #define WM8400_DC2_ACTIVE_MASK 0x4000
0533 #define WM8400_DC2_ACTIVE_SHIFT 14
0534 #define WM8400_DC2_ACTIVE_WIDTH 1
0535 #define WM8400_DC2_SLEEP 0x2000
0536 #define WM8400_DC2_SLEEP_MASK 0x2000
0537 #define WM8400_DC2_SLEEP_SHIFT 13
0538 #define WM8400_DC2_SLEEP_WIDTH 1
0539 #define WM8400_DC2_OPFLT 0x1000
0540 #define WM8400_DC2_OPFLT_MASK 0x1000
0541 #define WM8400_DC2_OPFLT_SHIFT 12
0542 #define WM8400_DC2_OPFLT_WIDTH 1
0543 #define WM8400_DC2_ERRACT 0x0800
0544 #define WM8400_DC2_ERRACT_MASK 0x0800
0545 #define WM8400_DC2_ERRACT_SHIFT 11
0546 #define WM8400_DC2_ERRACT_WIDTH 1
0547 #define WM8400_DC2_HIB_MODE 0x0400
0548 #define WM8400_DC2_HIB_MODE_MASK 0x0400
0549 #define WM8400_DC2_HIB_MODE_SHIFT 10
0550 #define WM8400_DC2_HIB_MODE_WIDTH 1
0551 #define WM8400_DC2_SOFTST_MASK 0x0300
0552 #define WM8400_DC2_SOFTST_SHIFT 8
0553 #define WM8400_DC2_SOFTST_WIDTH 2
0554 #define WM8400_DC2_OV_PROT 0x0080
0555 #define WM8400_DC2_OV_PROT_MASK 0x0080
0556 #define WM8400_DC2_OV_PROT_SHIFT 7
0557 #define WM8400_DC2_OV_PROT_WIDTH 1
0558 #define WM8400_DC2_VSEL_MASK 0x007F
0559 #define WM8400_DC2_VSEL_SHIFT 0
0560 #define WM8400_DC2_VSEL_WIDTH 7
0561
0562
0563
0564
0565 #define WM8400_DC2_FRC_PWM 0x2000
0566 #define WM8400_DC2_FRC_PWM_MASK 0x2000
0567 #define WM8400_DC2_FRC_PWM_SHIFT 13
0568 #define WM8400_DC2_FRC_PWM_WIDTH 1
0569 #define WM8400_DC2_STBY_LIM_MASK 0x0300
0570 #define WM8400_DC2_STBY_LIM_SHIFT 8
0571 #define WM8400_DC2_STBY_LIM_WIDTH 2
0572 #define WM8400_DC2_ACT_LIM 0x0080
0573 #define WM8400_DC2_ACT_LIM_MASK 0x0080
0574 #define WM8400_DC2_ACT_LIM_SHIFT 7
0575 #define WM8400_DC2_ACT_LIM_WIDTH 1
0576 #define WM8400_DC2_VIMG_MASK 0x007F
0577 #define WM8400_DC2_VIMG_SHIFT 0
0578 #define WM8400_DC2_VIMG_WIDTH 7
0579
0580
0581
0582
0583 #define WM8400_AUTOINC 0x0008
0584 #define WM8400_AUTOINC_MASK 0x0008
0585 #define WM8400_AUTOINC_SHIFT 3
0586 #define WM8400_AUTOINC_WIDTH 1
0587 #define WM8400_ARA_ENA 0x0004
0588 #define WM8400_ARA_ENA_MASK 0x0004
0589 #define WM8400_ARA_ENA_SHIFT 2
0590 #define WM8400_ARA_ENA_WIDTH 1
0591 #define WM8400_SPI_CFG 0x0002
0592 #define WM8400_SPI_CFG_MASK 0x0002
0593 #define WM8400_SPI_CFG_SHIFT 1
0594 #define WM8400_SPI_CFG_WIDTH 1
0595
0596
0597
0598
0599 #define WM8400_CODEC_SOFTST 0x8000
0600 #define WM8400_CODEC_SOFTST_MASK 0x8000
0601 #define WM8400_CODEC_SOFTST_SHIFT 15
0602 #define WM8400_CODEC_SOFTST_WIDTH 1
0603 #define WM8400_CODEC_SOFTSD 0x4000
0604 #define WM8400_CODEC_SOFTSD_MASK 0x4000
0605 #define WM8400_CODEC_SOFTSD_SHIFT 14
0606 #define WM8400_CODEC_SOFTSD_WIDTH 1
0607 #define WM8400_CHIP_SOFTSD 0x2000
0608 #define WM8400_CHIP_SOFTSD_MASK 0x2000
0609 #define WM8400_CHIP_SOFTSD_SHIFT 13
0610 #define WM8400_CHIP_SOFTSD_WIDTH 1
0611 #define WM8400_DSLEEP1_POL 0x0008
0612 #define WM8400_DSLEEP1_POL_MASK 0x0008
0613 #define WM8400_DSLEEP1_POL_SHIFT 3
0614 #define WM8400_DSLEEP1_POL_WIDTH 1
0615 #define WM8400_DSLEEP2_POL 0x0004
0616 #define WM8400_DSLEEP2_POL_MASK 0x0004
0617 #define WM8400_DSLEEP2_POL_SHIFT 2
0618 #define WM8400_DSLEEP2_POL_WIDTH 1
0619 #define WM8400_PWR_STATE_MASK 0x0003
0620 #define WM8400_PWR_STATE_SHIFT 0
0621 #define WM8400_PWR_STATE_WIDTH 2
0622
0623
0624
0625
0626 #define WM8400_CHIP_GT150_ERRACT 0x0200
0627 #define WM8400_CHIP_GT150_ERRACT_MASK 0x0200
0628 #define WM8400_CHIP_GT150_ERRACT_SHIFT 9
0629 #define WM8400_CHIP_GT150_ERRACT_WIDTH 1
0630 #define WM8400_CHIP_GT115_ERRACT 0x0100
0631 #define WM8400_CHIP_GT115_ERRACT_MASK 0x0100
0632 #define WM8400_CHIP_GT115_ERRACT_SHIFT 8
0633 #define WM8400_CHIP_GT115_ERRACT_WIDTH 1
0634 #define WM8400_LINE_CMP_ERRACT 0x0080
0635 #define WM8400_LINE_CMP_ERRACT_MASK 0x0080
0636 #define WM8400_LINE_CMP_ERRACT_SHIFT 7
0637 #define WM8400_LINE_CMP_ERRACT_WIDTH 1
0638 #define WM8400_UVLO_ERRACT 0x0040
0639 #define WM8400_UVLO_ERRACT_MASK 0x0040
0640 #define WM8400_UVLO_ERRACT_SHIFT 6
0641 #define WM8400_UVLO_ERRACT_WIDTH 1
0642
0643
0644
0645
0646 #define WM8400_MICD_CINT 0x8000
0647 #define WM8400_MICD_CINT_MASK 0x8000
0648 #define WM8400_MICD_CINT_SHIFT 15
0649 #define WM8400_MICD_CINT_WIDTH 1
0650 #define WM8400_MICSCD_CINT 0x4000
0651 #define WM8400_MICSCD_CINT_MASK 0x4000
0652 #define WM8400_MICSCD_CINT_SHIFT 14
0653 #define WM8400_MICSCD_CINT_WIDTH 1
0654 #define WM8400_JDL_CINT 0x2000
0655 #define WM8400_JDL_CINT_MASK 0x2000
0656 #define WM8400_JDL_CINT_SHIFT 13
0657 #define WM8400_JDL_CINT_WIDTH 1
0658 #define WM8400_JDR_CINT 0x1000
0659 #define WM8400_JDR_CINT_MASK 0x1000
0660 #define WM8400_JDR_CINT_SHIFT 12
0661 #define WM8400_JDR_CINT_WIDTH 1
0662 #define WM8400_CODEC_SEQ_END_EINT 0x0800
0663 #define WM8400_CODEC_SEQ_END_EINT_MASK 0x0800
0664 #define WM8400_CODEC_SEQ_END_EINT_SHIFT 11
0665 #define WM8400_CODEC_SEQ_END_EINT_WIDTH 1
0666 #define WM8400_CDEL_TO_EINT 0x0400
0667 #define WM8400_CDEL_TO_EINT_MASK 0x0400
0668 #define WM8400_CDEL_TO_EINT_SHIFT 10
0669 #define WM8400_CDEL_TO_EINT_WIDTH 1
0670 #define WM8400_CHIP_GT150_EINT 0x0200
0671 #define WM8400_CHIP_GT150_EINT_MASK 0x0200
0672 #define WM8400_CHIP_GT150_EINT_SHIFT 9
0673 #define WM8400_CHIP_GT150_EINT_WIDTH 1
0674 #define WM8400_CHIP_GT115_EINT 0x0100
0675 #define WM8400_CHIP_GT115_EINT_MASK 0x0100
0676 #define WM8400_CHIP_GT115_EINT_SHIFT 8
0677 #define WM8400_CHIP_GT115_EINT_WIDTH 1
0678 #define WM8400_LINE_CMP_EINT 0x0080
0679 #define WM8400_LINE_CMP_EINT_MASK 0x0080
0680 #define WM8400_LINE_CMP_EINT_SHIFT 7
0681 #define WM8400_LINE_CMP_EINT_WIDTH 1
0682 #define WM8400_UVLO_EINT 0x0040
0683 #define WM8400_UVLO_EINT_MASK 0x0040
0684 #define WM8400_UVLO_EINT_SHIFT 6
0685 #define WM8400_UVLO_EINT_WIDTH 1
0686 #define WM8400_DC2_UV_EINT 0x0020
0687 #define WM8400_DC2_UV_EINT_MASK 0x0020
0688 #define WM8400_DC2_UV_EINT_SHIFT 5
0689 #define WM8400_DC2_UV_EINT_WIDTH 1
0690 #define WM8400_DC1_UV_EINT 0x0010
0691 #define WM8400_DC1_UV_EINT_MASK 0x0010
0692 #define WM8400_DC1_UV_EINT_SHIFT 4
0693 #define WM8400_DC1_UV_EINT_WIDTH 1
0694 #define WM8400_LDO4_UV_EINT 0x0008
0695 #define WM8400_LDO4_UV_EINT_MASK 0x0008
0696 #define WM8400_LDO4_UV_EINT_SHIFT 3
0697 #define WM8400_LDO4_UV_EINT_WIDTH 1
0698 #define WM8400_LDO3_UV_EINT 0x0004
0699 #define WM8400_LDO3_UV_EINT_MASK 0x0004
0700 #define WM8400_LDO3_UV_EINT_SHIFT 2
0701 #define WM8400_LDO3_UV_EINT_WIDTH 1
0702 #define WM8400_LDO2_UV_EINT 0x0002
0703 #define WM8400_LDO2_UV_EINT_MASK 0x0002
0704 #define WM8400_LDO2_UV_EINT_SHIFT 1
0705 #define WM8400_LDO2_UV_EINT_WIDTH 1
0706 #define WM8400_LDO1_UV_EINT 0x0001
0707 #define WM8400_LDO1_UV_EINT_MASK 0x0001
0708 #define WM8400_LDO1_UV_EINT_SHIFT 0
0709 #define WM8400_LDO1_UV_EINT_WIDTH 1
0710
0711
0712
0713
0714 #define WM8400_IM_MICD_CINT 0x8000
0715 #define WM8400_IM_MICD_CINT_MASK 0x8000
0716 #define WM8400_IM_MICD_CINT_SHIFT 15
0717 #define WM8400_IM_MICD_CINT_WIDTH 1
0718 #define WM8400_IM_MICSCD_CINT 0x4000
0719 #define WM8400_IM_MICSCD_CINT_MASK 0x4000
0720 #define WM8400_IM_MICSCD_CINT_SHIFT 14
0721 #define WM8400_IM_MICSCD_CINT_WIDTH 1
0722 #define WM8400_IM_JDL_CINT 0x2000
0723 #define WM8400_IM_JDL_CINT_MASK 0x2000
0724 #define WM8400_IM_JDL_CINT_SHIFT 13
0725 #define WM8400_IM_JDL_CINT_WIDTH 1
0726 #define WM8400_IM_JDR_CINT 0x1000
0727 #define WM8400_IM_JDR_CINT_MASK 0x1000
0728 #define WM8400_IM_JDR_CINT_SHIFT 12
0729 #define WM8400_IM_JDR_CINT_WIDTH 1
0730 #define WM8400_IM_CODEC_SEQ_END_EINT 0x0800
0731 #define WM8400_IM_CODEC_SEQ_END_EINT_MASK 0x0800
0732 #define WM8400_IM_CODEC_SEQ_END_EINT_SHIFT 11
0733 #define WM8400_IM_CODEC_SEQ_END_EINT_WIDTH 1
0734 #define WM8400_IM_CDEL_TO_EINT 0x0400
0735 #define WM8400_IM_CDEL_TO_EINT_MASK 0x0400
0736 #define WM8400_IM_CDEL_TO_EINT_SHIFT 10
0737 #define WM8400_IM_CDEL_TO_EINT_WIDTH 1
0738 #define WM8400_IM_CHIP_GT150_EINT 0x0200
0739 #define WM8400_IM_CHIP_GT150_EINT_MASK 0x0200
0740 #define WM8400_IM_CHIP_GT150_EINT_SHIFT 9
0741 #define WM8400_IM_CHIP_GT150_EINT_WIDTH 1
0742 #define WM8400_IM_CHIP_GT115_EINT 0x0100
0743 #define WM8400_IM_CHIP_GT115_EINT_MASK 0x0100
0744 #define WM8400_IM_CHIP_GT115_EINT_SHIFT 8
0745 #define WM8400_IM_CHIP_GT115_EINT_WIDTH 1
0746 #define WM8400_IM_LINE_CMP_EINT 0x0080
0747 #define WM8400_IM_LINE_CMP_EINT_MASK 0x0080
0748 #define WM8400_IM_LINE_CMP_EINT_SHIFT 7
0749 #define WM8400_IM_LINE_CMP_EINT_WIDTH 1
0750 #define WM8400_IM_UVLO_EINT 0x0040
0751 #define WM8400_IM_UVLO_EINT_MASK 0x0040
0752 #define WM8400_IM_UVLO_EINT_SHIFT 6
0753 #define WM8400_IM_UVLO_EINT_WIDTH 1
0754 #define WM8400_IM_DC2_UV_EINT 0x0020
0755 #define WM8400_IM_DC2_UV_EINT_MASK 0x0020
0756 #define WM8400_IM_DC2_UV_EINT_SHIFT 5
0757 #define WM8400_IM_DC2_UV_EINT_WIDTH 1
0758 #define WM8400_IM_DC1_UV_EINT 0x0010
0759 #define WM8400_IM_DC1_UV_EINT_MASK 0x0010
0760 #define WM8400_IM_DC1_UV_EINT_SHIFT 4
0761 #define WM8400_IM_DC1_UV_EINT_WIDTH 1
0762 #define WM8400_IM_LDO4_UV_EINT 0x0008
0763 #define WM8400_IM_LDO4_UV_EINT_MASK 0x0008
0764 #define WM8400_IM_LDO4_UV_EINT_SHIFT 3
0765 #define WM8400_IM_LDO4_UV_EINT_WIDTH 1
0766 #define WM8400_IM_LDO3_UV_EINT 0x0004
0767 #define WM8400_IM_LDO3_UV_EINT_MASK 0x0004
0768 #define WM8400_IM_LDO3_UV_EINT_SHIFT 2
0769 #define WM8400_IM_LDO3_UV_EINT_WIDTH 1
0770 #define WM8400_IM_LDO2_UV_EINT 0x0002
0771 #define WM8400_IM_LDO2_UV_EINT_MASK 0x0002
0772 #define WM8400_IM_LDO2_UV_EINT_SHIFT 1
0773 #define WM8400_IM_LDO2_UV_EINT_WIDTH 1
0774 #define WM8400_IM_LDO1_UV_EINT 0x0001
0775 #define WM8400_IM_LDO1_UV_EINT_MASK 0x0001
0776 #define WM8400_IM_LDO1_UV_EINT_SHIFT 0
0777 #define WM8400_IM_LDO1_UV_EINT_WIDTH 1
0778
0779
0780
0781
0782 #define WM8400_MICD_LVL 0x8000
0783 #define WM8400_MICD_LVL_MASK 0x8000
0784 #define WM8400_MICD_LVL_SHIFT 15
0785 #define WM8400_MICD_LVL_WIDTH 1
0786 #define WM8400_MICSCD_LVL 0x4000
0787 #define WM8400_MICSCD_LVL_MASK 0x4000
0788 #define WM8400_MICSCD_LVL_SHIFT 14
0789 #define WM8400_MICSCD_LVL_WIDTH 1
0790 #define WM8400_JDL_LVL 0x2000
0791 #define WM8400_JDL_LVL_MASK 0x2000
0792 #define WM8400_JDL_LVL_SHIFT 13
0793 #define WM8400_JDL_LVL_WIDTH 1
0794 #define WM8400_JDR_LVL 0x1000
0795 #define WM8400_JDR_LVL_MASK 0x1000
0796 #define WM8400_JDR_LVL_SHIFT 12
0797 #define WM8400_JDR_LVL_WIDTH 1
0798 #define WM8400_CODEC_SEQ_END_LVL 0x0800
0799 #define WM8400_CODEC_SEQ_END_LVL_MASK 0x0800
0800 #define WM8400_CODEC_SEQ_END_LVL_SHIFT 11
0801 #define WM8400_CODEC_SEQ_END_LVL_WIDTH 1
0802 #define WM8400_CDEL_TO_LVL 0x0400
0803 #define WM8400_CDEL_TO_LVL_MASK 0x0400
0804 #define WM8400_CDEL_TO_LVL_SHIFT 10
0805 #define WM8400_CDEL_TO_LVL_WIDTH 1
0806 #define WM8400_CHIP_GT150_LVL 0x0200
0807 #define WM8400_CHIP_GT150_LVL_MASK 0x0200
0808 #define WM8400_CHIP_GT150_LVL_SHIFT 9
0809 #define WM8400_CHIP_GT150_LVL_WIDTH 1
0810 #define WM8400_CHIP_GT115_LVL 0x0100
0811 #define WM8400_CHIP_GT115_LVL_MASK 0x0100
0812 #define WM8400_CHIP_GT115_LVL_SHIFT 8
0813 #define WM8400_CHIP_GT115_LVL_WIDTH 1
0814 #define WM8400_LINE_CMP_LVL 0x0080
0815 #define WM8400_LINE_CMP_LVL_MASK 0x0080
0816 #define WM8400_LINE_CMP_LVL_SHIFT 7
0817 #define WM8400_LINE_CMP_LVL_WIDTH 1
0818 #define WM8400_UVLO_LVL 0x0040
0819 #define WM8400_UVLO_LVL_MASK 0x0040
0820 #define WM8400_UVLO_LVL_SHIFT 6
0821 #define WM8400_UVLO_LVL_WIDTH 1
0822 #define WM8400_DC2_UV_LVL 0x0020
0823 #define WM8400_DC2_UV_LVL_MASK 0x0020
0824 #define WM8400_DC2_UV_LVL_SHIFT 5
0825 #define WM8400_DC2_UV_LVL_WIDTH 1
0826 #define WM8400_DC1_UV_LVL 0x0010
0827 #define WM8400_DC1_UV_LVL_MASK 0x0010
0828 #define WM8400_DC1_UV_LVL_SHIFT 4
0829 #define WM8400_DC1_UV_LVL_WIDTH 1
0830 #define WM8400_LDO4_UV_LVL 0x0008
0831 #define WM8400_LDO4_UV_LVL_MASK 0x0008
0832 #define WM8400_LDO4_UV_LVL_SHIFT 3
0833 #define WM8400_LDO4_UV_LVL_WIDTH 1
0834 #define WM8400_LDO3_UV_LVL 0x0004
0835 #define WM8400_LDO3_UV_LVL_MASK 0x0004
0836 #define WM8400_LDO3_UV_LVL_SHIFT 2
0837 #define WM8400_LDO3_UV_LVL_WIDTH 1
0838 #define WM8400_LDO2_UV_LVL 0x0002
0839 #define WM8400_LDO2_UV_LVL_MASK 0x0002
0840 #define WM8400_LDO2_UV_LVL_SHIFT 1
0841 #define WM8400_LDO2_UV_LVL_WIDTH 1
0842 #define WM8400_LDO1_UV_LVL 0x0001
0843 #define WM8400_LDO1_UV_LVL_MASK 0x0001
0844 #define WM8400_LDO1_UV_LVL_SHIFT 0
0845 #define WM8400_LDO1_UV_LVL_WIDTH 1
0846
0847
0848
0849
0850 #define WM8400_SDR_CHIP_SOFTSD 0x2000
0851 #define WM8400_SDR_CHIP_SOFTSD_MASK 0x2000
0852 #define WM8400_SDR_CHIP_SOFTSD_SHIFT 13
0853 #define WM8400_SDR_CHIP_SOFTSD_WIDTH 1
0854 #define WM8400_SDR_NPDN 0x0800
0855 #define WM8400_SDR_NPDN_MASK 0x0800
0856 #define WM8400_SDR_NPDN_SHIFT 11
0857 #define WM8400_SDR_NPDN_WIDTH 1
0858 #define WM8400_SDR_CHIP_GT150 0x0200
0859 #define WM8400_SDR_CHIP_GT150_MASK 0x0200
0860 #define WM8400_SDR_CHIP_GT150_SHIFT 9
0861 #define WM8400_SDR_CHIP_GT150_WIDTH 1
0862 #define WM8400_SDR_CHIP_GT115 0x0100
0863 #define WM8400_SDR_CHIP_GT115_MASK 0x0100
0864 #define WM8400_SDR_CHIP_GT115_SHIFT 8
0865 #define WM8400_SDR_CHIP_GT115_WIDTH 1
0866 #define WM8400_SDR_LINE_CMP 0x0080
0867 #define WM8400_SDR_LINE_CMP_MASK 0x0080
0868 #define WM8400_SDR_LINE_CMP_SHIFT 7
0869 #define WM8400_SDR_LINE_CMP_WIDTH 1
0870 #define WM8400_SDR_UVLO 0x0040
0871 #define WM8400_SDR_UVLO_MASK 0x0040
0872 #define WM8400_SDR_UVLO_SHIFT 6
0873 #define WM8400_SDR_UVLO_WIDTH 1
0874 #define WM8400_SDR_DC2_UV 0x0020
0875 #define WM8400_SDR_DC2_UV_MASK 0x0020
0876 #define WM8400_SDR_DC2_UV_SHIFT 5
0877 #define WM8400_SDR_DC2_UV_WIDTH 1
0878 #define WM8400_SDR_DC1_UV 0x0010
0879 #define WM8400_SDR_DC1_UV_MASK 0x0010
0880 #define WM8400_SDR_DC1_UV_SHIFT 4
0881 #define WM8400_SDR_DC1_UV_WIDTH 1
0882 #define WM8400_SDR_LDO4_UV 0x0008
0883 #define WM8400_SDR_LDO4_UV_MASK 0x0008
0884 #define WM8400_SDR_LDO4_UV_SHIFT 3
0885 #define WM8400_SDR_LDO4_UV_WIDTH 1
0886 #define WM8400_SDR_LDO3_UV 0x0004
0887 #define WM8400_SDR_LDO3_UV_MASK 0x0004
0888 #define WM8400_SDR_LDO3_UV_SHIFT 2
0889 #define WM8400_SDR_LDO3_UV_WIDTH 1
0890 #define WM8400_SDR_LDO2_UV 0x0002
0891 #define WM8400_SDR_LDO2_UV_MASK 0x0002
0892 #define WM8400_SDR_LDO2_UV_SHIFT 1
0893 #define WM8400_SDR_LDO2_UV_WIDTH 1
0894 #define WM8400_SDR_LDO1_UV 0x0001
0895 #define WM8400_SDR_LDO1_UV_MASK 0x0001
0896 #define WM8400_SDR_LDO1_UV_SHIFT 0
0897 #define WM8400_SDR_LDO1_UV_WIDTH 1
0898
0899
0900
0901
0902 #define WM8400_BG_LINE_COMP 0x8000
0903 #define WM8400_BG_LINE_COMP_MASK 0x8000
0904 #define WM8400_BG_LINE_COMP_SHIFT 15
0905 #define WM8400_BG_LINE_COMP_WIDTH 1
0906 #define WM8400_LINE_CMP_VTHI_MASK 0x00F0
0907 #define WM8400_LINE_CMP_VTHI_SHIFT 4
0908 #define WM8400_LINE_CMP_VTHI_WIDTH 4
0909 #define WM8400_LINE_CMP_VTHD_MASK 0x000F
0910 #define WM8400_LINE_CMP_VTHD_SHIFT 0
0911 #define WM8400_LINE_CMP_VTHD_WIDTH 4
0912
0913 #endif