xref: /linux/drivers/mfd/wm8994-regmap.c (revision 51990e825431089747f8896244b5c17d3a6423f1)
101ed260fSMark Brown /*
201ed260fSMark Brown  * wm8994-regmap.c  --  Register map data for WM8994 series devices
301ed260fSMark Brown  *
401ed260fSMark Brown  * Copyright 2011 Wolfson Microelectronics PLC.
501ed260fSMark Brown  *
601ed260fSMark Brown  * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
701ed260fSMark Brown  *
801ed260fSMark Brown  *  This program is free software; you can redistribute  it and/or modify it
901ed260fSMark Brown  *  under  the terms of  the GNU General  Public License as published by the
1001ed260fSMark Brown  *  Free Software Foundation;  either version 2 of the  License, or (at your
1101ed260fSMark Brown  *  option) any later version.
1201ed260fSMark Brown  *
1301ed260fSMark Brown  */
1401ed260fSMark Brown 
157ed5849cSMark Brown #include <linux/mfd/wm8994/core.h>
1601ed260fSMark Brown #include <linux/mfd/wm8994/registers.h>
1701ed260fSMark Brown #include <linux/regmap.h>
18*51990e82SPaul Gortmaker #include <linux/device.h>
1901ed260fSMark Brown 
2001ed260fSMark Brown #include "wm8994.h"
2101ed260fSMark Brown 
2201ed260fSMark Brown static struct reg_default wm1811_defaults[] = {
2301ed260fSMark Brown 	{ 0x0000, 0x1811 },    /* R0    - Software Reset */
2401ed260fSMark Brown 	{ 0x0001, 0x0000 },    /* R1    - Power Management (1) */
2501ed260fSMark Brown 	{ 0x0002, 0x6000 },    /* R2    - Power Management (2) */
2601ed260fSMark Brown 	{ 0x0003, 0x0000 },    /* R3    - Power Management (3) */
2701ed260fSMark Brown 	{ 0x0004, 0x0000 },    /* R4    - Power Management (4) */
2801ed260fSMark Brown 	{ 0x0005, 0x0000 },    /* R5    - Power Management (5) */
2901ed260fSMark Brown 	{ 0x0006, 0x0000 },    /* R6    - Power Management (6) */
3001ed260fSMark Brown 	{ 0x0015, 0x0000 },    /* R21   - Input Mixer (1) */
3101ed260fSMark Brown 	{ 0x0018, 0x008B },    /* R24   - Left Line Input 1&2 Volume */
3201ed260fSMark Brown 	{ 0x0019, 0x008B },    /* R25   - Left Line Input 3&4 Volume */
3301ed260fSMark Brown 	{ 0x001A, 0x008B },    /* R26   - Right Line Input 1&2 Volume */
3401ed260fSMark Brown 	{ 0x001B, 0x008B },    /* R27   - Right Line Input 3&4 Volume */
3501ed260fSMark Brown 	{ 0x001C, 0x006D },    /* R28   - Left Output Volume */
3601ed260fSMark Brown 	{ 0x001D, 0x006D },    /* R29   - Right Output Volume */
3701ed260fSMark Brown 	{ 0x001E, 0x0066 },    /* R30   - Line Outputs Volume */
3801ed260fSMark Brown 	{ 0x001F, 0x0020 },    /* R31   - HPOUT2 Volume */
3901ed260fSMark Brown 	{ 0x0020, 0x0079 },    /* R32   - Left OPGA Volume */
4001ed260fSMark Brown 	{ 0x0021, 0x0079 },    /* R33   - Right OPGA Volume */
4101ed260fSMark Brown 	{ 0x0022, 0x0003 },    /* R34   - SPKMIXL Attenuation */
4201ed260fSMark Brown 	{ 0x0023, 0x0003 },    /* R35   - SPKMIXR Attenuation */
4301ed260fSMark Brown 	{ 0x0024, 0x0011 },    /* R36   - SPKOUT Mixers */
4401ed260fSMark Brown 	{ 0x0025, 0x0140 },    /* R37   - ClassD */
4501ed260fSMark Brown 	{ 0x0026, 0x0079 },    /* R38   - Speaker Volume Left */
4601ed260fSMark Brown 	{ 0x0027, 0x0079 },    /* R39   - Speaker Volume Right */
4701ed260fSMark Brown 	{ 0x0028, 0x0000 },    /* R40   - Input Mixer (2) */
4801ed260fSMark Brown 	{ 0x0029, 0x0000 },    /* R41   - Input Mixer (3) */
4901ed260fSMark Brown 	{ 0x002A, 0x0000 },    /* R42   - Input Mixer (4) */
5001ed260fSMark Brown 	{ 0x002B, 0x0000 },    /* R43   - Input Mixer (5) */
5101ed260fSMark Brown 	{ 0x002C, 0x0000 },    /* R44   - Input Mixer (6) */
5201ed260fSMark Brown 	{ 0x002D, 0x0000 },    /* R45   - Output Mixer (1) */
5301ed260fSMark Brown 	{ 0x002E, 0x0000 },    /* R46   - Output Mixer (2) */
5401ed260fSMark Brown 	{ 0x002F, 0x0000 },    /* R47   - Output Mixer (3) */
5501ed260fSMark Brown 	{ 0x0030, 0x0000 },    /* R48   - Output Mixer (4) */
5601ed260fSMark Brown 	{ 0x0031, 0x0000 },    /* R49   - Output Mixer (5) */
5701ed260fSMark Brown 	{ 0x0032, 0x0000 },    /* R50   - Output Mixer (6) */
5801ed260fSMark Brown 	{ 0x0033, 0x0000 },    /* R51   - HPOUT2 Mixer */
5901ed260fSMark Brown 	{ 0x0034, 0x0000 },    /* R52   - Line Mixer (1) */
6001ed260fSMark Brown 	{ 0x0035, 0x0000 },    /* R53   - Line Mixer (2) */
6101ed260fSMark Brown 	{ 0x0036, 0x0000 },    /* R54   - Speaker Mixer */
6201ed260fSMark Brown 	{ 0x0037, 0x0000 },    /* R55   - Additional Control */
6301ed260fSMark Brown 	{ 0x0038, 0x0000 },    /* R56   - AntiPOP (1) */
6401ed260fSMark Brown 	{ 0x0039, 0x0180 },    /* R57   - AntiPOP (2) */
6501ed260fSMark Brown 	{ 0x003B, 0x000D },    /* R59   - LDO 1 */
6601ed260fSMark Brown 	{ 0x003C, 0x0003 },    /* R60   - LDO 2 */
6701ed260fSMark Brown 	{ 0x003D, 0x0039 },    /* R61   - MICBIAS1 */
6801ed260fSMark Brown 	{ 0x003E, 0x0039 },    /* R62   - MICBIAS2 */
6901ed260fSMark Brown 	{ 0x004C, 0x1F25 },    /* R76   - Charge Pump (1) */
7001ed260fSMark Brown 	{ 0x004D, 0xAB19 },    /* R77   - Charge Pump (2) */
7101ed260fSMark Brown 	{ 0x0051, 0x0004 },    /* R81   - Class W (1) */
7201ed260fSMark Brown 	{ 0x0054, 0x0000 },    /* R84   - DC Servo (1) */
7301ed260fSMark Brown 	{ 0x0055, 0x054A },    /* R85   - DC Servo (2) */
7401ed260fSMark Brown 	{ 0x0058, 0x0000 },    /* R88   - DC Servo Readback */
7501ed260fSMark Brown 	{ 0x0059, 0x0000 },    /* R89   - DC Servo (4) */
7601ed260fSMark Brown 	{ 0x0060, 0x0000 },    /* R96   - Analogue HP (1) */
7701ed260fSMark Brown 	{ 0x00C5, 0x0000 },    /* R197  - Class D Test (5) */
7801ed260fSMark Brown 	{ 0x00D0, 0x7600 },    /* R208  - Mic Detect 1 */
7901ed260fSMark Brown 	{ 0x00D1, 0x007F },    /* R209  - Mic Detect 2 */
8001ed260fSMark Brown 	{ 0x00D2, 0x0000 },    /* R210  - Mic Detect 3 */
8101ed260fSMark Brown 	{ 0x0100, 0x0100 },    /* R256  - Chip Revision */
8201ed260fSMark Brown 	{ 0x0101, 0x8004 },    /* R257  - Control Interface */
8301ed260fSMark Brown 	{ 0x0200, 0x0000 },    /* R512  - AIF1 Clocking (1) */
8401ed260fSMark Brown 	{ 0x0201, 0x0000 },    /* R513  - AIF1 Clocking (2) */
8501ed260fSMark Brown 	{ 0x0204, 0x0000 },    /* R516  - AIF2 Clocking (1) */
8601ed260fSMark Brown 	{ 0x0205, 0x0000 },    /* R517  - AIF2 Clocking (2) */
8701ed260fSMark Brown 	{ 0x0208, 0x0000 },    /* R520  - Clocking (1) */
8801ed260fSMark Brown 	{ 0x0209, 0x0000 },    /* R521  - Clocking (2) */
8901ed260fSMark Brown 	{ 0x0210, 0x0083 },    /* R528  - AIF1 Rate */
9001ed260fSMark Brown 	{ 0x0211, 0x0083 },    /* R529  - AIF2 Rate */
9101ed260fSMark Brown 	{ 0x0212, 0x0000 },    /* R530  - Rate Status */
9201ed260fSMark Brown 	{ 0x0220, 0x0000 },    /* R544  - FLL1 Control (1) */
9301ed260fSMark Brown 	{ 0x0221, 0x0000 },    /* R545  - FLL1 Control (2) */
9401ed260fSMark Brown 	{ 0x0222, 0x0000 },    /* R546  - FLL1 Control (3) */
9501ed260fSMark Brown 	{ 0x0223, 0x0000 },    /* R547  - FLL1 Control (4) */
9601ed260fSMark Brown 	{ 0x0224, 0x0C80 },    /* R548  - FLL1 Control (5) */
9701ed260fSMark Brown 	{ 0x0226, 0x0000 },    /* R550  - FLL1 EFS 1 */
9801ed260fSMark Brown 	{ 0x0227, 0x0006 },    /* R551  - FLL1 EFS 2 */
9901ed260fSMark Brown 	{ 0x0240, 0x0000 },    /* R576  - FLL2Control (1) */
10001ed260fSMark Brown 	{ 0x0241, 0x0000 },    /* R577  - FLL2Control (2) */
10101ed260fSMark Brown 	{ 0x0242, 0x0000 },    /* R578  - FLL2Control (3) */
10201ed260fSMark Brown 	{ 0x0243, 0x0000 },    /* R579  - FLL2 Control (4) */
10301ed260fSMark Brown 	{ 0x0244, 0x0C80 },    /* R580  - FLL2Control (5) */
10401ed260fSMark Brown 	{ 0x0246, 0x0000 },    /* R582  - FLL2 EFS 1 */
10501ed260fSMark Brown 	{ 0x0247, 0x0006 },    /* R583  - FLL2 EFS 2 */
10601ed260fSMark Brown 	{ 0x0300, 0x4050 },    /* R768  - AIF1 Control (1) */
10701ed260fSMark Brown 	{ 0x0301, 0x4000 },    /* R769  - AIF1 Control (2) */
10801ed260fSMark Brown 	{ 0x0302, 0x0000 },    /* R770  - AIF1 Master/Slave */
10901ed260fSMark Brown 	{ 0x0303, 0x0040 },    /* R771  - AIF1 BCLK */
11001ed260fSMark Brown 	{ 0x0304, 0x0040 },    /* R772  - AIF1ADC LRCLK */
11101ed260fSMark Brown 	{ 0x0305, 0x0040 },    /* R773  - AIF1DAC LRCLK */
11201ed260fSMark Brown 	{ 0x0306, 0x0004 },    /* R774  - AIF1DAC Data */
11301ed260fSMark Brown 	{ 0x0307, 0x0100 },    /* R775  - AIF1ADC Data */
11401ed260fSMark Brown 	{ 0x0310, 0x4050 },    /* R784  - AIF2 Control (1) */
11501ed260fSMark Brown 	{ 0x0311, 0x4000 },    /* R785  - AIF2 Control (2) */
11601ed260fSMark Brown 	{ 0x0312, 0x0000 },    /* R786  - AIF2 Master/Slave */
11701ed260fSMark Brown 	{ 0x0313, 0x0040 },    /* R787  - AIF2 BCLK */
11801ed260fSMark Brown 	{ 0x0314, 0x0040 },    /* R788  - AIF2ADC LRCLK */
11901ed260fSMark Brown 	{ 0x0315, 0x0040 },    /* R789  - AIF2DAC LRCLK */
12001ed260fSMark Brown 	{ 0x0316, 0x0000 },    /* R790  - AIF2DAC Data */
12101ed260fSMark Brown 	{ 0x0317, 0x0000 },    /* R791  - AIF2ADC Data */
12201ed260fSMark Brown 	{ 0x0318, 0x0003 },    /* R792  - AIF2TX Control */
12301ed260fSMark Brown 	{ 0x0320, 0x0040 },    /* R800  - AIF3 Control (1) */
12401ed260fSMark Brown 	{ 0x0321, 0x0000 },    /* R801  - AIF3 Control (2) */
12501ed260fSMark Brown 	{ 0x0322, 0x0000 },    /* R802  - AIF3DAC Data */
12601ed260fSMark Brown 	{ 0x0323, 0x0000 },    /* R803  - AIF3ADC Data */
12701ed260fSMark Brown 	{ 0x0400, 0x00C0 },    /* R1024 - AIF1 ADC1 Left Volume */
12801ed260fSMark Brown 	{ 0x0401, 0x00C0 },    /* R1025 - AIF1 ADC1 Right Volume */
12901ed260fSMark Brown 	{ 0x0402, 0x00C0 },    /* R1026 - AIF1 DAC1 Left Volume */
13001ed260fSMark Brown 	{ 0x0403, 0x00C0 },    /* R1027 - AIF1 DAC1 Right Volume */
13101ed260fSMark Brown 	{ 0x0410, 0x0000 },    /* R1040 - AIF1 ADC1 Filters */
13201ed260fSMark Brown 	{ 0x0420, 0x0200 },    /* R1056 - AIF1 DAC1 Filters (1) */
13301ed260fSMark Brown 	{ 0x0421, 0x0010 },    /* R1057 - AIF1 DAC1 Filters (2) */
13401ed260fSMark Brown 	{ 0x0430, 0x0068 },    /* R1072 - AIF1 DAC1 Noise Gate */
13501ed260fSMark Brown 	{ 0x0440, 0x0098 },    /* R1088 - AIF1 DRC1 (1) */
13601ed260fSMark Brown 	{ 0x0441, 0x0845 },    /* R1089 - AIF1 DRC1 (2) */
13701ed260fSMark Brown 	{ 0x0442, 0x0000 },    /* R1090 - AIF1 DRC1 (3) */
13801ed260fSMark Brown 	{ 0x0443, 0x0000 },    /* R1091 - AIF1 DRC1 (4) */
13901ed260fSMark Brown 	{ 0x0444, 0x0000 },    /* R1092 - AIF1 DRC1 (5) */
14001ed260fSMark Brown 	{ 0x0480, 0x6318 },    /* R1152 - AIF1 DAC1 EQ Gains (1) */
14101ed260fSMark Brown 	{ 0x0481, 0x6300 },    /* R1153 - AIF1 DAC1 EQ Gains (2) */
14201ed260fSMark Brown 	{ 0x0482, 0x0FCA },    /* R1154 - AIF1 DAC1 EQ Band 1 A */
14301ed260fSMark Brown 	{ 0x0483, 0x0400 },    /* R1155 - AIF1 DAC1 EQ Band 1 B */
14401ed260fSMark Brown 	{ 0x0484, 0x00D8 },    /* R1156 - AIF1 DAC1 EQ Band 1 PG */
14501ed260fSMark Brown 	{ 0x0485, 0x1EB5 },    /* R1157 - AIF1 DAC1 EQ Band 2 A */
14601ed260fSMark Brown 	{ 0x0486, 0xF145 },    /* R1158 - AIF1 DAC1 EQ Band 2 B */
14701ed260fSMark Brown 	{ 0x0487, 0x0B75 },    /* R1159 - AIF1 DAC1 EQ Band 2 C */
14801ed260fSMark Brown 	{ 0x0488, 0x01C5 },    /* R1160 - AIF1 DAC1 EQ Band 2 PG */
14901ed260fSMark Brown 	{ 0x0489, 0x1C58 },    /* R1161 - AIF1 DAC1 EQ Band 3 A */
15001ed260fSMark Brown 	{ 0x048A, 0xF373 },    /* R1162 - AIF1 DAC1 EQ Band 3 B */
15101ed260fSMark Brown 	{ 0x048B, 0x0A54 },    /* R1163 - AIF1 DAC1 EQ Band 3 C */
15201ed260fSMark Brown 	{ 0x048C, 0x0558 },    /* R1164 - AIF1 DAC1 EQ Band 3 PG */
15301ed260fSMark Brown 	{ 0x048D, 0x168E },    /* R1165 - AIF1 DAC1 EQ Band 4 A */
15401ed260fSMark Brown 	{ 0x048E, 0xF829 },    /* R1166 - AIF1 DAC1 EQ Band 4 B */
15501ed260fSMark Brown 	{ 0x048F, 0x07AD },    /* R1167 - AIF1 DAC1 EQ Band 4 C */
15601ed260fSMark Brown 	{ 0x0490, 0x1103 },    /* R1168 - AIF1 DAC1 EQ Band 4 PG */
15701ed260fSMark Brown 	{ 0x0491, 0x0564 },    /* R1169 - AIF1 DAC1 EQ Band 5 A */
15801ed260fSMark Brown 	{ 0x0492, 0x0559 },    /* R1170 - AIF1 DAC1 EQ Band 5 B */
15901ed260fSMark Brown 	{ 0x0493, 0x4000 },    /* R1171 - AIF1 DAC1 EQ Band 5 PG */
16001ed260fSMark Brown 	{ 0x0494, 0x0000 },    /* R1172 - AIF1 DAC1 EQ Band 1 C */
16101ed260fSMark Brown 	{ 0x0500, 0x00C0 },    /* R1280 - AIF2 ADC Left Volume */
16201ed260fSMark Brown 	{ 0x0501, 0x00C0 },    /* R1281 - AIF2 ADC Right Volume */
16301ed260fSMark Brown 	{ 0x0502, 0x00C0 },    /* R1282 - AIF2 DAC Left Volume */
16401ed260fSMark Brown 	{ 0x0503, 0x00C0 },    /* R1283 - AIF2 DAC Right Volume */
16501ed260fSMark Brown 	{ 0x0510, 0x0000 },    /* R1296 - AIF2 ADC Filters */
16601ed260fSMark Brown 	{ 0x0520, 0x0200 },    /* R1312 - AIF2 DAC Filters (1) */
16701ed260fSMark Brown 	{ 0x0521, 0x0010 },    /* R1313 - AIF2 DAC Filters (2) */
16801ed260fSMark Brown 	{ 0x0530, 0x0068 },    /* R1328 - AIF2 DAC Noise Gate */
16901ed260fSMark Brown 	{ 0x0540, 0x0098 },    /* R1344 - AIF2 DRC (1) */
17001ed260fSMark Brown 	{ 0x0541, 0x0845 },    /* R1345 - AIF2 DRC (2) */
17101ed260fSMark Brown 	{ 0x0542, 0x0000 },    /* R1346 - AIF2 DRC (3) */
17201ed260fSMark Brown 	{ 0x0543, 0x0000 },    /* R1347 - AIF2 DRC (4) */
17301ed260fSMark Brown 	{ 0x0544, 0x0000 },    /* R1348 - AIF2 DRC (5) */
17401ed260fSMark Brown 	{ 0x0580, 0x6318 },    /* R1408 - AIF2 EQ Gains (1) */
17501ed260fSMark Brown 	{ 0x0581, 0x6300 },    /* R1409 - AIF2 EQ Gains (2) */
17601ed260fSMark Brown 	{ 0x0582, 0x0FCA },    /* R1410 - AIF2 EQ Band 1 A */
17701ed260fSMark Brown 	{ 0x0583, 0x0400 },    /* R1411 - AIF2 EQ Band 1 B */
17801ed260fSMark Brown 	{ 0x0584, 0x00D8 },    /* R1412 - AIF2 EQ Band 1 PG */
17901ed260fSMark Brown 	{ 0x0585, 0x1EB5 },    /* R1413 - AIF2 EQ Band 2 A */
18001ed260fSMark Brown 	{ 0x0586, 0xF145 },    /* R1414 - AIF2 EQ Band 2 B */
18101ed260fSMark Brown 	{ 0x0587, 0x0B75 },    /* R1415 - AIF2 EQ Band 2 C */
18201ed260fSMark Brown 	{ 0x0588, 0x01C5 },    /* R1416 - AIF2 EQ Band 2 PG */
18301ed260fSMark Brown 	{ 0x0589, 0x1C58 },    /* R1417 - AIF2 EQ Band 3 A */
18401ed260fSMark Brown 	{ 0x058A, 0xF373 },    /* R1418 - AIF2 EQ Band 3 B */
18501ed260fSMark Brown 	{ 0x058B, 0x0A54 },    /* R1419 - AIF2 EQ Band 3 C */
18601ed260fSMark Brown 	{ 0x058C, 0x0558 },    /* R1420 - AIF2 EQ Band 3 PG */
18701ed260fSMark Brown 	{ 0x058D, 0x168E },    /* R1421 - AIF2 EQ Band 4 A */
18801ed260fSMark Brown 	{ 0x058E, 0xF829 },    /* R1422 - AIF2 EQ Band 4 B */
18901ed260fSMark Brown 	{ 0x058F, 0x07AD },    /* R1423 - AIF2 EQ Band 4 C */
19001ed260fSMark Brown 	{ 0x0590, 0x1103 },    /* R1424 - AIF2 EQ Band 4 PG */
19101ed260fSMark Brown 	{ 0x0591, 0x0564 },    /* R1425 - AIF2 EQ Band 5 A */
19201ed260fSMark Brown 	{ 0x0592, 0x0559 },    /* R1426 - AIF2 EQ Band 5 B */
19301ed260fSMark Brown 	{ 0x0593, 0x4000 },    /* R1427 - AIF2 EQ Band 5 PG */
19401ed260fSMark Brown 	{ 0x0594, 0x0000 },    /* R1428 - AIF2 EQ Band 1 C */
19501ed260fSMark Brown 	{ 0x0600, 0x0000 },    /* R1536 - DAC1 Mixer Volumes */
19601ed260fSMark Brown 	{ 0x0601, 0x0000 },    /* R1537 - DAC1 Left Mixer Routing */
19701ed260fSMark Brown 	{ 0x0602, 0x0000 },    /* R1538 - DAC1 Right Mixer Routing */
19801ed260fSMark Brown 	{ 0x0603, 0x0000 },    /* R1539 - AIF2ADC Mixer Volumes */
19901ed260fSMark Brown 	{ 0x0604, 0x0000 },    /* R1540 - AIF2ADC Left Mixer Routing */
20001ed260fSMark Brown 	{ 0x0605, 0x0000 },    /* R1541 - AIF2ADC Right Mixer Routing */
20101ed260fSMark Brown 	{ 0x0606, 0x0000 },    /* R1542 - AIF1 ADC1 Left Mixer Routing */
20201ed260fSMark Brown 	{ 0x0607, 0x0000 },    /* R1543 - AIF1 ADC1 Right Mixer Routing */
20301ed260fSMark Brown 	{ 0x0610, 0x02C0 },    /* R1552 - DAC1 Left Volume */
20401ed260fSMark Brown 	{ 0x0611, 0x02C0 },    /* R1553 - DAC1 Right Volume */
20501ed260fSMark Brown 	{ 0x0612, 0x02C0 },    /* R1554 - AIF2TX Left Volume */
20601ed260fSMark Brown 	{ 0x0613, 0x02C0 },    /* R1555 - AIF2TX Right Volume */
20701ed260fSMark Brown 	{ 0x0614, 0x0000 },    /* R1556 - DAC Softmute */
20801ed260fSMark Brown 	{ 0x0620, 0x0002 },    /* R1568 - Oversampling */
20901ed260fSMark Brown 	{ 0x0621, 0x0000 },    /* R1569 - Sidetone */
21001ed260fSMark Brown 	{ 0x0700, 0x8100 },    /* R1792 - GPIO 1 */
21101ed260fSMark Brown 	{ 0x0701, 0xA101 },    /* R1793 - Pull Control (MCLK2) */
21201ed260fSMark Brown 	{ 0x0702, 0xA101 },    /* R1794 - Pull Control (BCLK2) */
21301ed260fSMark Brown 	{ 0x0703, 0xA101 },    /* R1795 - Pull Control (DACLRCLK2) */
21401ed260fSMark Brown 	{ 0x0704, 0xA101 },    /* R1796 - Pull Control (DACDAT2) */
21501ed260fSMark Brown 	{ 0x0707, 0xA101 },    /* R1799 - GPIO 8 */
21601ed260fSMark Brown 	{ 0x0708, 0xA101 },    /* R1800 - GPIO 9 */
21701ed260fSMark Brown 	{ 0x0709, 0xA101 },    /* R1801 - GPIO 10 */
21801ed260fSMark Brown 	{ 0x070A, 0xA101 },    /* R1802 - GPIO 11 */
21901ed260fSMark Brown 	{ 0x0720, 0x0000 },    /* R1824 - Pull Control (1) */
22001ed260fSMark Brown 	{ 0x0721, 0x0156 },    /* R1825 - Pull Control (2) */
22101ed260fSMark Brown 	{ 0x0730, 0x0000 },    /* R1840 - Interrupt Status 1 */
22201ed260fSMark Brown 	{ 0x0731, 0x0000 },    /* R1841 - Interrupt Status 2 */
22301ed260fSMark Brown 	{ 0x0732, 0x0000 },    /* R1842 - Interrupt Raw Status 2 */
22401ed260fSMark Brown 	{ 0x0738, 0x07FF },    /* R1848 - Interrupt Status 1 Mask */
22501ed260fSMark Brown 	{ 0x0739, 0xDFEF },    /* R1849 - Interrupt Status 2 Mask */
22601ed260fSMark Brown 	{ 0x0740, 0x0000 },    /* R1856 - Interrupt Control */
22701ed260fSMark Brown 	{ 0x0748, 0x003F },    /* R1864 - IRQ Debounce */
22801ed260fSMark Brown };
22901ed260fSMark Brown 
23001ed260fSMark Brown static struct reg_default wm8994_defaults[] = {
23101ed260fSMark Brown 	{ 0x0000, 0x8994 },    /* R0     - Software Reset */
23201ed260fSMark Brown 	{ 0x0001, 0x0000 },    /* R1     - Power Management (1) */
23301ed260fSMark Brown 	{ 0x0002, 0x6000 },    /* R2     - Power Management (2) */
23401ed260fSMark Brown 	{ 0x0003, 0x0000 },    /* R3     - Power Management (3) */
23501ed260fSMark Brown 	{ 0x0004, 0x0000 },    /* R4     - Power Management (4) */
23601ed260fSMark Brown 	{ 0x0005, 0x0000 },    /* R5     - Power Management (5) */
23701ed260fSMark Brown 	{ 0x0006, 0x0000 },    /* R6     - Power Management (6) */
23801ed260fSMark Brown 	{ 0x0015, 0x0000 },    /* R21    - Input Mixer (1) */
23901ed260fSMark Brown 	{ 0x0018, 0x008B },    /* R24    - Left Line Input 1&2 Volume */
24001ed260fSMark Brown 	{ 0x0019, 0x008B },    /* R25    - Left Line Input 3&4 Volume */
24101ed260fSMark Brown 	{ 0x001A, 0x008B },    /* R26    - Right Line Input 1&2 Volume */
24201ed260fSMark Brown 	{ 0x001B, 0x008B },    /* R27    - Right Line Input 3&4 Volume */
24301ed260fSMark Brown 	{ 0x001C, 0x006D },    /* R28    - Left Output Volume */
24401ed260fSMark Brown 	{ 0x001D, 0x006D },    /* R29    - Right Output Volume */
24501ed260fSMark Brown 	{ 0x001E, 0x0066 },    /* R30    - Line Outputs Volume */
24601ed260fSMark Brown 	{ 0x001F, 0x0020 },    /* R31    - HPOUT2 Volume */
24701ed260fSMark Brown 	{ 0x0020, 0x0079 },    /* R32    - Left OPGA Volume */
24801ed260fSMark Brown 	{ 0x0021, 0x0079 },    /* R33    - Right OPGA Volume */
24901ed260fSMark Brown 	{ 0x0022, 0x0003 },    /* R34    - SPKMIXL Attenuation */
25001ed260fSMark Brown 	{ 0x0023, 0x0003 },    /* R35    - SPKMIXR Attenuation */
25101ed260fSMark Brown 	{ 0x0024, 0x0011 },    /* R36    - SPKOUT Mixers */
25201ed260fSMark Brown 	{ 0x0025, 0x0140 },    /* R37    - ClassD */
25301ed260fSMark Brown 	{ 0x0026, 0x0079 },    /* R38    - Speaker Volume Left */
25401ed260fSMark Brown 	{ 0x0027, 0x0079 },    /* R39    - Speaker Volume Right */
25501ed260fSMark Brown 	{ 0x0028, 0x0000 },    /* R40    - Input Mixer (2) */
25601ed260fSMark Brown 	{ 0x0029, 0x0000 },    /* R41    - Input Mixer (3) */
25701ed260fSMark Brown 	{ 0x002A, 0x0000 },    /* R42    - Input Mixer (4) */
25801ed260fSMark Brown 	{ 0x002B, 0x0000 },    /* R43    - Input Mixer (5) */
25901ed260fSMark Brown 	{ 0x002C, 0x0000 },    /* R44    - Input Mixer (6) */
26001ed260fSMark Brown 	{ 0x002D, 0x0000 },    /* R45    - Output Mixer (1) */
26101ed260fSMark Brown 	{ 0x002E, 0x0000 },    /* R46    - Output Mixer (2) */
26201ed260fSMark Brown 	{ 0x002F, 0x0000 },    /* R47    - Output Mixer (3) */
26301ed260fSMark Brown 	{ 0x0030, 0x0000 },    /* R48    - Output Mixer (4) */
26401ed260fSMark Brown 	{ 0x0031, 0x0000 },    /* R49    - Output Mixer (5) */
26501ed260fSMark Brown 	{ 0x0032, 0x0000 },    /* R50    - Output Mixer (6) */
26601ed260fSMark Brown 	{ 0x0033, 0x0000 },    /* R51    - HPOUT2 Mixer */
26701ed260fSMark Brown 	{ 0x0034, 0x0000 },    /* R52    - Line Mixer (1) */
26801ed260fSMark Brown 	{ 0x0035, 0x0000 },    /* R53    - Line Mixer (2) */
26901ed260fSMark Brown 	{ 0x0036, 0x0000 },    /* R54    - Speaker Mixer */
27001ed260fSMark Brown 	{ 0x0037, 0x0000 },    /* R55    - Additional Control */
27101ed260fSMark Brown 	{ 0x0038, 0x0000 },    /* R56    - AntiPOP (1) */
27201ed260fSMark Brown 	{ 0x0039, 0x0000 },    /* R57    - AntiPOP (2) */
27301ed260fSMark Brown 	{ 0x003A, 0x0000 },    /* R58    - MICBIAS */
27401ed260fSMark Brown 	{ 0x003B, 0x000D },    /* R59    - LDO 1 */
27501ed260fSMark Brown 	{ 0x003C, 0x0003 },    /* R60    - LDO 2 */
27601ed260fSMark Brown 	{ 0x004C, 0x1F25 },    /* R76    - Charge Pump (1) */
27701ed260fSMark Brown 	{ 0x0051, 0x0004 },    /* R81    - Class W (1) */
27801ed260fSMark Brown 	{ 0x0054, 0x0000 },    /* R84    - DC Servo (1) */
27901ed260fSMark Brown 	{ 0x0055, 0x054A },    /* R85    - DC Servo (2) */
28001ed260fSMark Brown 	{ 0x0057, 0x0000 },    /* R87    - DC Servo (4) */
28101ed260fSMark Brown 	{ 0x0058, 0x0000 },    /* R88    - DC Servo Readback */
28201ed260fSMark Brown 	{ 0x0060, 0x0000 },    /* R96    - Analogue HP (1) */
28301ed260fSMark Brown 	{ 0x0100, 0x0003 },    /* R256   - Chip Revision */
28401ed260fSMark Brown 	{ 0x0101, 0x8004 },    /* R257   - Control Interface */
28501ed260fSMark Brown 	{ 0x0110, 0x0000 },    /* R272   - Write Sequencer Ctrl (1) */
28601ed260fSMark Brown 	{ 0x0111, 0x0000 },    /* R273   - Write Sequencer Ctrl (2) */
28701ed260fSMark Brown 	{ 0x0200, 0x0000 },    /* R512   - AIF1 Clocking (1) */
28801ed260fSMark Brown 	{ 0x0201, 0x0000 },    /* R513   - AIF1 Clocking (2) */
28901ed260fSMark Brown 	{ 0x0204, 0x0000 },    /* R516   - AIF2 Clocking (1) */
29001ed260fSMark Brown 	{ 0x0205, 0x0000 },    /* R517   - AIF2 Clocking (2) */
29101ed260fSMark Brown 	{ 0x0208, 0x0000 },    /* R520   - Clocking (1) */
29201ed260fSMark Brown 	{ 0x0209, 0x0000 },    /* R521   - Clocking (2) */
29301ed260fSMark Brown 	{ 0x0210, 0x0083 },    /* R528   - AIF1 Rate */
29401ed260fSMark Brown 	{ 0x0211, 0x0083 },    /* R529   - AIF2 Rate */
29501ed260fSMark Brown 	{ 0x0212, 0x0000 },    /* R530   - Rate Status */
29601ed260fSMark Brown 	{ 0x0220, 0x0000 },    /* R544   - FLL1 Control (1) */
29701ed260fSMark Brown 	{ 0x0221, 0x0000 },    /* R545   - FLL1 Control (2) */
29801ed260fSMark Brown 	{ 0x0222, 0x0000 },    /* R546   - FLL1 Control (3) */
29901ed260fSMark Brown 	{ 0x0223, 0x0000 },    /* R547   - FLL1 Control (4) */
30001ed260fSMark Brown 	{ 0x0224, 0x0C80 },    /* R548   - FLL1 Control (5) */
30101ed260fSMark Brown 	{ 0x0240, 0x0000 },    /* R576   - FLL2 Control (1) */
30201ed260fSMark Brown 	{ 0x0241, 0x0000 },    /* R577   - FLL2 Control (2) */
30301ed260fSMark Brown 	{ 0x0242, 0x0000 },    /* R578   - FLL2 Control (3) */
30401ed260fSMark Brown 	{ 0x0243, 0x0000 },    /* R579   - FLL2 Control (4) */
30501ed260fSMark Brown 	{ 0x0244, 0x0C80 },    /* R580   - FLL2 Control (5) */
30601ed260fSMark Brown 	{ 0x0300, 0x4050 },    /* R768   - AIF1 Control (1) */
30701ed260fSMark Brown 	{ 0x0301, 0x4000 },    /* R769   - AIF1 Control (2) */
30801ed260fSMark Brown 	{ 0x0302, 0x0000 },    /* R770   - AIF1 Master/Slave */
30901ed260fSMark Brown 	{ 0x0303, 0x0040 },    /* R771   - AIF1 BCLK */
31001ed260fSMark Brown 	{ 0x0304, 0x0040 },    /* R772   - AIF1ADC LRCLK */
31101ed260fSMark Brown 	{ 0x0305, 0x0040 },    /* R773   - AIF1DAC LRCLK */
31201ed260fSMark Brown 	{ 0x0306, 0x0004 },    /* R774   - AIF1DAC Data */
31301ed260fSMark Brown 	{ 0x0307, 0x0100 },    /* R775   - AIF1ADC Data */
31401ed260fSMark Brown 	{ 0x0310, 0x4050 },    /* R784   - AIF2 Control (1) */
31501ed260fSMark Brown 	{ 0x0311, 0x4000 },    /* R785   - AIF2 Control (2) */
31601ed260fSMark Brown 	{ 0x0312, 0x0000 },    /* R786   - AIF2 Master/Slave */
31701ed260fSMark Brown 	{ 0x0313, 0x0040 },    /* R787   - AIF2 BCLK */
31801ed260fSMark Brown 	{ 0x0314, 0x0040 },    /* R788   - AIF2ADC LRCLK */
31901ed260fSMark Brown 	{ 0x0315, 0x0040 },    /* R789   - AIF2DAC LRCLK */
32001ed260fSMark Brown 	{ 0x0316, 0x0000 },    /* R790   - AIF2DAC Data */
32101ed260fSMark Brown 	{ 0x0317, 0x0000 },    /* R791   - AIF2ADC Data */
32201ed260fSMark Brown 	{ 0x0400, 0x00C0 },    /* R1024  - AIF1 ADC1 Left Volume */
32301ed260fSMark Brown 	{ 0x0401, 0x00C0 },    /* R1025  - AIF1 ADC1 Right Volume */
32401ed260fSMark Brown 	{ 0x0402, 0x00C0 },    /* R1026  - AIF1 DAC1 Left Volume */
32501ed260fSMark Brown 	{ 0x0403, 0x00C0 },    /* R1027  - AIF1 DAC1 Right Volume */
32601ed260fSMark Brown 	{ 0x0404, 0x00C0 },    /* R1028  - AIF1 ADC2 Left Volume */
32701ed260fSMark Brown 	{ 0x0405, 0x00C0 },    /* R1029  - AIF1 ADC2 Right Volume */
32801ed260fSMark Brown 	{ 0x0406, 0x00C0 },    /* R1030  - AIF1 DAC2 Left Volume */
32901ed260fSMark Brown 	{ 0x0407, 0x00C0 },    /* R1031  - AIF1 DAC2 Right Volume */
33001ed260fSMark Brown 	{ 0x0410, 0x0000 },    /* R1040  - AIF1 ADC1 Filters */
33101ed260fSMark Brown 	{ 0x0411, 0x0000 },    /* R1041  - AIF1 ADC2 Filters */
33201ed260fSMark Brown 	{ 0x0420, 0x0200 },    /* R1056  - AIF1 DAC1 Filters (1) */
33301ed260fSMark Brown 	{ 0x0421, 0x0010 },    /* R1057  - AIF1 DAC1 Filters (2) */
33401ed260fSMark Brown 	{ 0x0422, 0x0200 },    /* R1058  - AIF1 DAC2 Filters (1) */
33501ed260fSMark Brown 	{ 0x0423, 0x0010 },    /* R1059  - AIF1 DAC2 Filters (2) */
33601ed260fSMark Brown 	{ 0x0440, 0x0098 },    /* R1088  - AIF1 DRC1 (1) */
33701ed260fSMark Brown 	{ 0x0441, 0x0845 },    /* R1089  - AIF1 DRC1 (2) */
33801ed260fSMark Brown 	{ 0x0442, 0x0000 },    /* R1090  - AIF1 DRC1 (3) */
33901ed260fSMark Brown 	{ 0x0443, 0x0000 },    /* R1091  - AIF1 DRC1 (4) */
34001ed260fSMark Brown 	{ 0x0444, 0x0000 },    /* R1092  - AIF1 DRC1 (5) */
34101ed260fSMark Brown 	{ 0x0450, 0x0098 },    /* R1104  - AIF1 DRC2 (1) */
34201ed260fSMark Brown 	{ 0x0451, 0x0845 },    /* R1105  - AIF1 DRC2 (2) */
34301ed260fSMark Brown 	{ 0x0452, 0x0000 },    /* R1106  - AIF1 DRC2 (3) */
34401ed260fSMark Brown 	{ 0x0453, 0x0000 },    /* R1107  - AIF1 DRC2 (4) */
34501ed260fSMark Brown 	{ 0x0454, 0x0000 },    /* R1108  - AIF1 DRC2 (5) */
34601ed260fSMark Brown 	{ 0x0480, 0x6318 },    /* R1152  - AIF1 DAC1 EQ Gains (1) */
34701ed260fSMark Brown 	{ 0x0481, 0x6300 },    /* R1153  - AIF1 DAC1 EQ Gains (2) */
34801ed260fSMark Brown 	{ 0x0482, 0x0FCA },    /* R1154  - AIF1 DAC1 EQ Band 1 A */
34901ed260fSMark Brown 	{ 0x0483, 0x0400 },    /* R1155  - AIF1 DAC1 EQ Band 1 B */
35001ed260fSMark Brown 	{ 0x0484, 0x00D8 },    /* R1156  - AIF1 DAC1 EQ Band 1 PG */
35101ed260fSMark Brown 	{ 0x0485, 0x1EB5 },    /* R1157  - AIF1 DAC1 EQ Band 2 A */
35201ed260fSMark Brown 	{ 0x0486, 0xF145 },    /* R1158  - AIF1 DAC1 EQ Band 2 B */
35301ed260fSMark Brown 	{ 0x0487, 0x0B75 },    /* R1159  - AIF1 DAC1 EQ Band 2 C */
35401ed260fSMark Brown 	{ 0x0488, 0x01C5 },    /* R1160  - AIF1 DAC1 EQ Band 2 PG */
35501ed260fSMark Brown 	{ 0x0489, 0x1C58 },    /* R1161  - AIF1 DAC1 EQ Band 3 A */
35601ed260fSMark Brown 	{ 0x048A, 0xF373 },    /* R1162  - AIF1 DAC1 EQ Band 3 B */
35701ed260fSMark Brown 	{ 0x048B, 0x0A54 },    /* R1163  - AIF1 DAC1 EQ Band 3 C */
35801ed260fSMark Brown 	{ 0x048C, 0x0558 },    /* R1164  - AIF1 DAC1 EQ Band 3 PG */
35901ed260fSMark Brown 	{ 0x048D, 0x168E },    /* R1165  - AIF1 DAC1 EQ Band 4 A */
36001ed260fSMark Brown 	{ 0x048E, 0xF829 },    /* R1166  - AIF1 DAC1 EQ Band 4 B */
36101ed260fSMark Brown 	{ 0x048F, 0x07AD },    /* R1167  - AIF1 DAC1 EQ Band 4 C */
36201ed260fSMark Brown 	{ 0x0490, 0x1103 },    /* R1168  - AIF1 DAC1 EQ Band 4 PG */
36301ed260fSMark Brown 	{ 0x0491, 0x0564 },    /* R1169  - AIF1 DAC1 EQ Band 5 A */
36401ed260fSMark Brown 	{ 0x0492, 0x0559 },    /* R1170  - AIF1 DAC1 EQ Band 5 B */
36501ed260fSMark Brown 	{ 0x0493, 0x4000 },    /* R1171  - AIF1 DAC1 EQ Band 5 PG */
36601ed260fSMark Brown 	{ 0x04A0, 0x6318 },    /* R1184  - AIF1 DAC2 EQ Gains (1) */
36701ed260fSMark Brown 	{ 0x04A1, 0x6300 },    /* R1185  - AIF1 DAC2 EQ Gains (2) */
36801ed260fSMark Brown 	{ 0x04A2, 0x0FCA },    /* R1186  - AIF1 DAC2 EQ Band 1 A */
36901ed260fSMark Brown 	{ 0x04A3, 0x0400 },    /* R1187  - AIF1 DAC2 EQ Band 1 B */
37001ed260fSMark Brown 	{ 0x04A4, 0x00D8 },    /* R1188  - AIF1 DAC2 EQ Band 1 PG */
37101ed260fSMark Brown 	{ 0x04A5, 0x1EB5 },    /* R1189  - AIF1 DAC2 EQ Band 2 A */
37201ed260fSMark Brown 	{ 0x04A6, 0xF145 },    /* R1190  - AIF1 DAC2 EQ Band 2 B */
37301ed260fSMark Brown 	{ 0x04A7, 0x0B75 },    /* R1191  - AIF1 DAC2 EQ Band 2 C */
37401ed260fSMark Brown 	{ 0x04A8, 0x01C5 },    /* R1192  - AIF1 DAC2 EQ Band 2 PG */
37501ed260fSMark Brown 	{ 0x04A9, 0x1C58 },    /* R1193  - AIF1 DAC2 EQ Band 3 A */
37601ed260fSMark Brown 	{ 0x04AA, 0xF373 },    /* R1194  - AIF1 DAC2 EQ Band 3 B */
37701ed260fSMark Brown 	{ 0x04AB, 0x0A54 },    /* R1195  - AIF1 DAC2 EQ Band 3 C */
37801ed260fSMark Brown 	{ 0x04AC, 0x0558 },    /* R1196  - AIF1 DAC2 EQ Band 3 PG */
37901ed260fSMark Brown 	{ 0x04AD, 0x168E },    /* R1197  - AIF1 DAC2 EQ Band 4 A */
38001ed260fSMark Brown 	{ 0x04AE, 0xF829 },    /* R1198  - AIF1 DAC2 EQ Band 4 B */
38101ed260fSMark Brown 	{ 0x04AF, 0x07AD },    /* R1199  - AIF1 DAC2 EQ Band 4 C */
38201ed260fSMark Brown 	{ 0x04B0, 0x1103 },    /* R1200  - AIF1 DAC2 EQ Band 4 PG */
38301ed260fSMark Brown 	{ 0x04B1, 0x0564 },    /* R1201  - AIF1 DAC2 EQ Band 5 A */
38401ed260fSMark Brown 	{ 0x04B2, 0x0559 },    /* R1202  - AIF1 DAC2 EQ Band 5 B */
38501ed260fSMark Brown 	{ 0x04B3, 0x4000 },    /* R1203  - AIF1 DAC2 EQ Band 5 PG */
38601ed260fSMark Brown 	{ 0x0500, 0x00C0 },    /* R1280  - AIF2 ADC Left Volume */
38701ed260fSMark Brown 	{ 0x0501, 0x00C0 },    /* R1281  - AIF2 ADC Right Volume */
38801ed260fSMark Brown 	{ 0x0502, 0x00C0 },    /* R1282  - AIF2 DAC Left Volume */
38901ed260fSMark Brown 	{ 0x0503, 0x00C0 },    /* R1283  - AIF2 DAC Right Volume */
39001ed260fSMark Brown 	{ 0x0510, 0x0000 },    /* R1296  - AIF2 ADC Filters */
39101ed260fSMark Brown 	{ 0x0520, 0x0200 },    /* R1312  - AIF2 DAC Filters (1) */
39201ed260fSMark Brown 	{ 0x0521, 0x0010 },    /* R1313  - AIF2 DAC Filters (2) */
39301ed260fSMark Brown 	{ 0x0540, 0x0098 },    /* R1344  - AIF2 DRC (1) */
39401ed260fSMark Brown 	{ 0x0541, 0x0845 },    /* R1345  - AIF2 DRC (2) */
39501ed260fSMark Brown 	{ 0x0542, 0x0000 },    /* R1346  - AIF2 DRC (3) */
39601ed260fSMark Brown 	{ 0x0543, 0x0000 },    /* R1347  - AIF2 DRC (4) */
39701ed260fSMark Brown 	{ 0x0544, 0x0000 },    /* R1348  - AIF2 DRC (5) */
39801ed260fSMark Brown 	{ 0x0580, 0x6318 },    /* R1408  - AIF2 EQ Gains (1) */
39901ed260fSMark Brown 	{ 0x0581, 0x6300 },    /* R1409  - AIF2 EQ Gains (2) */
40001ed260fSMark Brown 	{ 0x0582, 0x0FCA },    /* R1410  - AIF2 EQ Band 1 A */
40101ed260fSMark Brown 	{ 0x0583, 0x0400 },    /* R1411  - AIF2 EQ Band 1 B */
40201ed260fSMark Brown 	{ 0x0584, 0x00D8 },    /* R1412  - AIF2 EQ Band 1 PG */
40301ed260fSMark Brown 	{ 0x0585, 0x1EB5 },    /* R1413  - AIF2 EQ Band 2 A */
40401ed260fSMark Brown 	{ 0x0586, 0xF145 },    /* R1414  - AIF2 EQ Band 2 B */
40501ed260fSMark Brown 	{ 0x0587, 0x0B75 },    /* R1415  - AIF2 EQ Band 2 C */
40601ed260fSMark Brown 	{ 0x0588, 0x01C5 },    /* R1416  - AIF2 EQ Band 2 PG */
40701ed260fSMark Brown 	{ 0x0589, 0x1C58 },    /* R1417  - AIF2 EQ Band 3 A */
40801ed260fSMark Brown 	{ 0x058A, 0xF373 },    /* R1418  - AIF2 EQ Band 3 B */
40901ed260fSMark Brown 	{ 0x058B, 0x0A54 },    /* R1419  - AIF2 EQ Band 3 C */
41001ed260fSMark Brown 	{ 0x058C, 0x0558 },    /* R1420  - AIF2 EQ Band 3 PG */
41101ed260fSMark Brown 	{ 0x058D, 0x168E },    /* R1421  - AIF2 EQ Band 4 A */
41201ed260fSMark Brown 	{ 0x058E, 0xF829 },    /* R1422  - AIF2 EQ Band 4 B */
41301ed260fSMark Brown 	{ 0x058F, 0x07AD },    /* R1423  - AIF2 EQ Band 4 C */
41401ed260fSMark Brown 	{ 0x0590, 0x1103 },    /* R1424  - AIF2 EQ Band 4 PG */
41501ed260fSMark Brown 	{ 0x0591, 0x0564 },    /* R1425  - AIF2 EQ Band 5 A */
41601ed260fSMark Brown 	{ 0x0592, 0x0559 },    /* R1426  - AIF2 EQ Band 5 B */
41701ed260fSMark Brown 	{ 0x0593, 0x4000 },    /* R1427  - AIF2 EQ Band 5 PG */
41801ed260fSMark Brown 	{ 0x0600, 0x0000 },    /* R1536  - DAC1 Mixer Volumes */
41901ed260fSMark Brown 	{ 0x0601, 0x0000 },    /* R1537  - DAC1 Left Mixer Routing */
42001ed260fSMark Brown 	{ 0x0602, 0x0000 },    /* R1538  - DAC1 Right Mixer Routing */
42101ed260fSMark Brown 	{ 0x0603, 0x0000 },    /* R1539  - DAC2 Mixer Volumes */
42201ed260fSMark Brown 	{ 0x0604, 0x0000 },    /* R1540  - DAC2 Left Mixer Routing */
42301ed260fSMark Brown 	{ 0x0605, 0x0000 },    /* R1541  - DAC2 Right Mixer Routing */
42401ed260fSMark Brown 	{ 0x0606, 0x0000 },    /* R1542  - AIF1 ADC1 Left Mixer Routing */
42501ed260fSMark Brown 	{ 0x0607, 0x0000 },    /* R1543  - AIF1 ADC1 Right Mixer Routing */
42601ed260fSMark Brown 	{ 0x0608, 0x0000 },    /* R1544  - AIF1 ADC2 Left Mixer Routing */
42701ed260fSMark Brown 	{ 0x0609, 0x0000 },    /* R1545  - AIF1 ADC2 Right mixer Routing */
42801ed260fSMark Brown 	{ 0x0610, 0x02C0 },    /* R1552  - DAC1 Left Volume */
42901ed260fSMark Brown 	{ 0x0611, 0x02C0 },    /* R1553  - DAC1 Right Volume */
43001ed260fSMark Brown 	{ 0x0612, 0x02C0 },    /* R1554  - DAC2 Left Volume */
43101ed260fSMark Brown 	{ 0x0613, 0x02C0 },    /* R1555  - DAC2 Right Volume */
43201ed260fSMark Brown 	{ 0x0614, 0x0000 },    /* R1556  - DAC Softmute */
43301ed260fSMark Brown 	{ 0x0620, 0x0002 },    /* R1568  - Oversampling */
43401ed260fSMark Brown 	{ 0x0621, 0x0000 },    /* R1569  - Sidetone */
43501ed260fSMark Brown 	{ 0x0700, 0x8100 },    /* R1792  - GPIO 1 */
43601ed260fSMark Brown 	{ 0x0701, 0xA101 },    /* R1793  - GPIO 2 */
43701ed260fSMark Brown 	{ 0x0702, 0xA101 },    /* R1794  - GPIO 3 */
43801ed260fSMark Brown 	{ 0x0703, 0xA101 },    /* R1795  - GPIO 4 */
43901ed260fSMark Brown 	{ 0x0704, 0xA101 },    /* R1796  - GPIO 5 */
44001ed260fSMark Brown 	{ 0x0705, 0xA101 },    /* R1797  - GPIO 6 */
44101ed260fSMark Brown 	{ 0x0706, 0xA101 },    /* R1798  - GPIO 7 */
44201ed260fSMark Brown 	{ 0x0707, 0xA101 },    /* R1799  - GPIO 8 */
44301ed260fSMark Brown 	{ 0x0708, 0xA101 },    /* R1800  - GPIO 9 */
44401ed260fSMark Brown 	{ 0x0709, 0xA101 },    /* R1801  - GPIO 10 */
44501ed260fSMark Brown 	{ 0x070A, 0xA101 },    /* R1802  - GPIO 11 */
44601ed260fSMark Brown 	{ 0x0720, 0x0000 },    /* R1824  - Pull Control (1) */
44701ed260fSMark Brown 	{ 0x0721, 0x0156 },    /* R1825  - Pull Control (2) */
44801ed260fSMark Brown 	{ 0x0730, 0x0000 },    /* R1840  - Interrupt Status 1 */
44901ed260fSMark Brown 	{ 0x0731, 0x0000 },    /* R1841  - Interrupt Status 2 */
45001ed260fSMark Brown 	{ 0x0732, 0x0000 },    /* R1842  - Interrupt Raw Status 2 */
45101ed260fSMark Brown 	{ 0x0738, 0x07FF },    /* R1848  - Interrupt Status 1 Mask */
45201ed260fSMark Brown 	{ 0x0739, 0xFFFF },    /* R1849  - Interrupt Status 2 Mask */
45301ed260fSMark Brown 	{ 0x0740, 0x0000 },    /* R1856  - Interrupt Control */
45401ed260fSMark Brown 	{ 0x0748, 0x003F },    /* R1864  - IRQ Debounce */
45501ed260fSMark Brown };
45601ed260fSMark Brown 
45701ed260fSMark Brown static struct reg_default wm8958_defaults[] = {
45801ed260fSMark Brown 	{ 0x0000, 0x8958 },    /* R0     - Software Reset */
45901ed260fSMark Brown 	{ 0x0001, 0x0000 },    /* R1     - Power Management (1) */
46001ed260fSMark Brown 	{ 0x0002, 0x6000 },    /* R2     - Power Management (2) */
46101ed260fSMark Brown 	{ 0x0003, 0x0000 },    /* R3     - Power Management (3) */
46201ed260fSMark Brown 	{ 0x0004, 0x0000 },    /* R4     - Power Management (4) */
46301ed260fSMark Brown 	{ 0x0005, 0x0000 },    /* R5     - Power Management (5) */
46401ed260fSMark Brown 	{ 0x0006, 0x0000 },    /* R6     - Power Management (6) */
46501ed260fSMark Brown 	{ 0x0015, 0x0000 },    /* R21    - Input Mixer (1) */
46601ed260fSMark Brown 	{ 0x0018, 0x008B },    /* R24    - Left Line Input 1&2 Volume */
46701ed260fSMark Brown 	{ 0x0019, 0x008B },    /* R25    - Left Line Input 3&4 Volume */
46801ed260fSMark Brown 	{ 0x001A, 0x008B },    /* R26    - Right Line Input 1&2 Volume */
46901ed260fSMark Brown 	{ 0x001B, 0x008B },    /* R27    - Right Line Input 3&4 Volume */
47001ed260fSMark Brown 	{ 0x001C, 0x006D },    /* R28    - Left Output Volume */
47101ed260fSMark Brown 	{ 0x001D, 0x006D },    /* R29    - Right Output Volume */
47201ed260fSMark Brown 	{ 0x001E, 0x0066 },    /* R30    - Line Outputs Volume */
47301ed260fSMark Brown 	{ 0x001F, 0x0020 },    /* R31    - HPOUT2 Volume */
47401ed260fSMark Brown 	{ 0x0020, 0x0079 },    /* R32    - Left OPGA Volume */
47501ed260fSMark Brown 	{ 0x0021, 0x0079 },    /* R33    - Right OPGA Volume */
47601ed260fSMark Brown 	{ 0x0022, 0x0003 },    /* R34    - SPKMIXL Attenuation */
47701ed260fSMark Brown 	{ 0x0023, 0x0003 },    /* R35    - SPKMIXR Attenuation */
47801ed260fSMark Brown 	{ 0x0024, 0x0011 },    /* R36    - SPKOUT Mixers */
47901ed260fSMark Brown 	{ 0x0025, 0x0140 },    /* R37    - ClassD */
48001ed260fSMark Brown 	{ 0x0026, 0x0079 },    /* R38    - Speaker Volume Left */
48101ed260fSMark Brown 	{ 0x0027, 0x0079 },    /* R39    - Speaker Volume Right */
48201ed260fSMark Brown 	{ 0x0028, 0x0000 },    /* R40    - Input Mixer (2) */
48301ed260fSMark Brown 	{ 0x0029, 0x0000 },    /* R41    - Input Mixer (3) */
48401ed260fSMark Brown 	{ 0x002A, 0x0000 },    /* R42    - Input Mixer (4) */
48501ed260fSMark Brown 	{ 0x002B, 0x0000 },    /* R43    - Input Mixer (5) */
48601ed260fSMark Brown 	{ 0x002C, 0x0000 },    /* R44    - Input Mixer (6) */
48701ed260fSMark Brown 	{ 0x002D, 0x0000 },    /* R45    - Output Mixer (1) */
48801ed260fSMark Brown 	{ 0x002E, 0x0000 },    /* R46    - Output Mixer (2) */
48901ed260fSMark Brown 	{ 0x002F, 0x0000 },    /* R47    - Output Mixer (3) */
49001ed260fSMark Brown 	{ 0x0030, 0x0000 },    /* R48    - Output Mixer (4) */
49101ed260fSMark Brown 	{ 0x0031, 0x0000 },    /* R49    - Output Mixer (5) */
49201ed260fSMark Brown 	{ 0x0032, 0x0000 },    /* R50    - Output Mixer (6) */
49301ed260fSMark Brown 	{ 0x0033, 0x0000 },    /* R51    - HPOUT2 Mixer */
49401ed260fSMark Brown 	{ 0x0034, 0x0000 },    /* R52    - Line Mixer (1) */
49501ed260fSMark Brown 	{ 0x0035, 0x0000 },    /* R53    - Line Mixer (2) */
49601ed260fSMark Brown 	{ 0x0036, 0x0000 },    /* R54    - Speaker Mixer */
49701ed260fSMark Brown 	{ 0x0037, 0x0000 },    /* R55    - Additional Control */
49801ed260fSMark Brown 	{ 0x0038, 0x0000 },    /* R56    - AntiPOP (1) */
49901ed260fSMark Brown 	{ 0x0039, 0x0180 },    /* R57    - AntiPOP (2) */
50001ed260fSMark Brown 	{ 0x003B, 0x000D },    /* R59    - LDO 1 */
50101ed260fSMark Brown 	{ 0x003C, 0x0005 },    /* R60    - LDO 2 */
50201ed260fSMark Brown 	{ 0x003D, 0x0039 },    /* R61    - MICBIAS1 */
50301ed260fSMark Brown 	{ 0x003E, 0x0039 },    /* R62    - MICBIAS2 */
50401ed260fSMark Brown 	{ 0x004C, 0x1F25 },    /* R76    - Charge Pump (1) */
50501ed260fSMark Brown 	{ 0x004D, 0xAB19 },    /* R77    - Charge Pump (2) */
50601ed260fSMark Brown 	{ 0x0051, 0x0004 },    /* R81    - Class W (1) */
50701ed260fSMark Brown 	{ 0x0055, 0x054A },    /* R85    - DC Servo (2) */
50801ed260fSMark Brown 	{ 0x0057, 0x0000 },    /* R87    - DC Servo (4) */
50901ed260fSMark Brown 	{ 0x0060, 0x0000 },    /* R96    - Analogue HP (1) */
51001ed260fSMark Brown 	{ 0x00C5, 0x0000 },    /* R197   - Class D Test (5) */
51101ed260fSMark Brown 	{ 0x00D0, 0x5600 },    /* R208   - Mic Detect 1 */
51201ed260fSMark Brown 	{ 0x00D1, 0x007F },    /* R209   - Mic Detect 2 */
51301ed260fSMark Brown 	{ 0x0101, 0x8004 },    /* R257   - Control Interface */
51401ed260fSMark Brown 	{ 0x0110, 0x0000 },    /* R272   - Write Sequencer Ctrl (1) */
51501ed260fSMark Brown 	{ 0x0111, 0x0000 },    /* R273   - Write Sequencer Ctrl (2) */
51601ed260fSMark Brown 	{ 0x0200, 0x0000 },    /* R512   - AIF1 Clocking (1) */
51701ed260fSMark Brown 	{ 0x0201, 0x0000 },    /* R513   - AIF1 Clocking (2) */
51801ed260fSMark Brown 	{ 0x0204, 0x0000 },    /* R516   - AIF2 Clocking (1) */
51901ed260fSMark Brown 	{ 0x0205, 0x0000 },    /* R517   - AIF2 Clocking (2) */
52001ed260fSMark Brown 	{ 0x0208, 0x0000 },    /* R520   - Clocking (1) */
52101ed260fSMark Brown 	{ 0x0209, 0x0000 },    /* R521   - Clocking (2) */
52201ed260fSMark Brown 	{ 0x0210, 0x0083 },    /* R528   - AIF1 Rate */
52301ed260fSMark Brown 	{ 0x0211, 0x0083 },    /* R529   - AIF2 Rate */
52401ed260fSMark Brown 	{ 0x0220, 0x0000 },    /* R544   - FLL1 Control (1) */
52501ed260fSMark Brown 	{ 0x0221, 0x0000 },    /* R545   - FLL1 Control (2) */
52601ed260fSMark Brown 	{ 0x0222, 0x0000 },    /* R546   - FLL1 Control (3) */
52701ed260fSMark Brown 	{ 0x0223, 0x0000 },    /* R547   - FLL1 Control (4) */
52801ed260fSMark Brown 	{ 0x0224, 0x0C80 },    /* R548   - FLL1 Control (5) */
52901ed260fSMark Brown 	{ 0x0226, 0x0000 },    /* R550   - FLL1 EFS 1 */
53001ed260fSMark Brown 	{ 0x0227, 0x0006 },    /* R551   - FLL1 EFS 2 */
53101ed260fSMark Brown 	{ 0x0240, 0x0000 },    /* R576   - FLL2Control (1) */
53201ed260fSMark Brown 	{ 0x0241, 0x0000 },    /* R577   - FLL2Control (2) */
53301ed260fSMark Brown 	{ 0x0242, 0x0000 },    /* R578   - FLL2Control (3) */
53401ed260fSMark Brown 	{ 0x0243, 0x0000 },    /* R579   - FLL2 Control (4) */
53501ed260fSMark Brown 	{ 0x0244, 0x0C80 },    /* R580   - FLL2Control (5) */
53601ed260fSMark Brown 	{ 0x0246, 0x0000 },    /* R582   - FLL2 EFS 1 */
53701ed260fSMark Brown 	{ 0x0247, 0x0006 },    /* R583   - FLL2 EFS 2 */
53801ed260fSMark Brown 	{ 0x0300, 0x4050 },    /* R768   - AIF1 Control (1) */
53901ed260fSMark Brown 	{ 0x0301, 0x4000 },    /* R769   - AIF1 Control (2) */
54001ed260fSMark Brown 	{ 0x0302, 0x0000 },    /* R770   - AIF1 Master/Slave */
54101ed260fSMark Brown 	{ 0x0303, 0x0040 },    /* R771   - AIF1 BCLK */
54201ed260fSMark Brown 	{ 0x0304, 0x0040 },    /* R772   - AIF1ADC LRCLK */
54301ed260fSMark Brown 	{ 0x0305, 0x0040 },    /* R773   - AIF1DAC LRCLK */
54401ed260fSMark Brown 	{ 0x0306, 0x0004 },    /* R774   - AIF1DAC Data */
54501ed260fSMark Brown 	{ 0x0307, 0x0100 },    /* R775   - AIF1ADC Data */
54601ed260fSMark Brown 	{ 0x0310, 0x4053 },    /* R784   - AIF2 Control (1) */
54701ed260fSMark Brown 	{ 0x0311, 0x4000 },    /* R785   - AIF2 Control (2) */
54801ed260fSMark Brown 	{ 0x0312, 0x0000 },    /* R786   - AIF2 Master/Slave */
54901ed260fSMark Brown 	{ 0x0313, 0x0040 },    /* R787   - AIF2 BCLK */
55001ed260fSMark Brown 	{ 0x0314, 0x0040 },    /* R788   - AIF2ADC LRCLK */
55101ed260fSMark Brown 	{ 0x0315, 0x0040 },    /* R789   - AIF2DAC LRCLK */
55201ed260fSMark Brown 	{ 0x0316, 0x0000 },    /* R790   - AIF2DAC Data */
55301ed260fSMark Brown 	{ 0x0317, 0x0000 },    /* R791   - AIF2ADC Data */
55401ed260fSMark Brown 	{ 0x0320, 0x0040 },    /* R800   - AIF3 Control (1) */
55501ed260fSMark Brown 	{ 0x0321, 0x0000 },    /* R801   - AIF3 Control (2) */
55601ed260fSMark Brown 	{ 0x0322, 0x0000 },    /* R802   - AIF3DAC Data */
55701ed260fSMark Brown 	{ 0x0323, 0x0000 },    /* R803   - AIF3ADC Data */
55801ed260fSMark Brown 	{ 0x0400, 0x00C0 },    /* R1024  - AIF1 ADC1 Left Volume */
55901ed260fSMark Brown 	{ 0x0401, 0x00C0 },    /* R1025  - AIF1 ADC1 Right Volume */
56001ed260fSMark Brown 	{ 0x0402, 0x00C0 },    /* R1026  - AIF1 DAC1 Left Volume */
56101ed260fSMark Brown 	{ 0x0403, 0x00C0 },    /* R1027  - AIF1 DAC1 Right Volume */
56201ed260fSMark Brown 	{ 0x0404, 0x00C0 },    /* R1028  - AIF1 ADC2 Left Volume */
56301ed260fSMark Brown 	{ 0x0405, 0x00C0 },    /* R1029  - AIF1 ADC2 Right Volume */
56401ed260fSMark Brown 	{ 0x0406, 0x00C0 },    /* R1030  - AIF1 DAC2 Left Volume */
56501ed260fSMark Brown 	{ 0x0407, 0x00C0 },    /* R1031  - AIF1 DAC2 Right Volume */
56601ed260fSMark Brown 	{ 0x0410, 0x0000 },    /* R1040  - AIF1 ADC1 Filters */
56701ed260fSMark Brown 	{ 0x0411, 0x0000 },    /* R1041  - AIF1 ADC2 Filters */
56801ed260fSMark Brown 	{ 0x0420, 0x0200 },    /* R1056  - AIF1 DAC1 Filters (1) */
56901ed260fSMark Brown 	{ 0x0421, 0x0010 },    /* R1057  - AIF1 DAC1 Filters (2) */
57001ed260fSMark Brown 	{ 0x0422, 0x0200 },    /* R1058  - AIF1 DAC2 Filters (1) */
57101ed260fSMark Brown 	{ 0x0423, 0x0010 },    /* R1059  - AIF1 DAC2 Filters (2) */
57201ed260fSMark Brown 	{ 0x0430, 0x0068 },    /* R1072  - AIF1 DAC1 Noise Gate */
57301ed260fSMark Brown 	{ 0x0431, 0x0068 },    /* R1073  - AIF1 DAC2 Noise Gate */
57401ed260fSMark Brown 	{ 0x0440, 0x0098 },    /* R1088  - AIF1 DRC1 (1) */
57501ed260fSMark Brown 	{ 0x0441, 0x0845 },    /* R1089  - AIF1 DRC1 (2) */
57601ed260fSMark Brown 	{ 0x0442, 0x0000 },    /* R1090  - AIF1 DRC1 (3) */
57701ed260fSMark Brown 	{ 0x0443, 0x0000 },    /* R1091  - AIF1 DRC1 (4) */
57801ed260fSMark Brown 	{ 0x0444, 0x0000 },    /* R1092  - AIF1 DRC1 (5) */
57901ed260fSMark Brown 	{ 0x0450, 0x0098 },    /* R1104  - AIF1 DRC2 (1) */
58001ed260fSMark Brown 	{ 0x0451, 0x0845 },    /* R1105  - AIF1 DRC2 (2) */
58101ed260fSMark Brown 	{ 0x0452, 0x0000 },    /* R1106  - AIF1 DRC2 (3) */
58201ed260fSMark Brown 	{ 0x0453, 0x0000 },    /* R1107  - AIF1 DRC2 (4) */
58301ed260fSMark Brown 	{ 0x0454, 0x0000 },    /* R1108  - AIF1 DRC2 (5) */
58401ed260fSMark Brown 	{ 0x0480, 0x6318 },    /* R1152  - AIF1 DAC1 EQ Gains (1) */
58501ed260fSMark Brown 	{ 0x0481, 0x6300 },    /* R1153  - AIF1 DAC1 EQ Gains (2) */
58601ed260fSMark Brown 	{ 0x0482, 0x0FCA },    /* R1154  - AIF1 DAC1 EQ Band 1 A */
58701ed260fSMark Brown 	{ 0x0483, 0x0400 },    /* R1155  - AIF1 DAC1 EQ Band 1 B */
58801ed260fSMark Brown 	{ 0x0484, 0x00D8 },    /* R1156  - AIF1 DAC1 EQ Band 1 PG */
58901ed260fSMark Brown 	{ 0x0485, 0x1EB5 },    /* R1157  - AIF1 DAC1 EQ Band 2 A */
59001ed260fSMark Brown 	{ 0x0486, 0xF145 },    /* R1158  - AIF1 DAC1 EQ Band 2 B */
59101ed260fSMark Brown 	{ 0x0487, 0x0B75 },    /* R1159  - AIF1 DAC1 EQ Band 2 C */
59201ed260fSMark Brown 	{ 0x0488, 0x01C5 },    /* R1160  - AIF1 DAC1 EQ Band 2 PG */
59301ed260fSMark Brown 	{ 0x0489, 0x1C58 },    /* R1161  - AIF1 DAC1 EQ Band 3 A */
59401ed260fSMark Brown 	{ 0x048A, 0xF373 },    /* R1162  - AIF1 DAC1 EQ Band 3 B */
59501ed260fSMark Brown 	{ 0x048B, 0x0A54 },    /* R1163  - AIF1 DAC1 EQ Band 3 C */
59601ed260fSMark Brown 	{ 0x048C, 0x0558 },    /* R1164  - AIF1 DAC1 EQ Band 3 PG */
59701ed260fSMark Brown 	{ 0x048D, 0x168E },    /* R1165  - AIF1 DAC1 EQ Band 4 A */
59801ed260fSMark Brown 	{ 0x048E, 0xF829 },    /* R1166  - AIF1 DAC1 EQ Band 4 B */
59901ed260fSMark Brown 	{ 0x048F, 0x07AD },    /* R1167  - AIF1 DAC1 EQ Band 4 C */
60001ed260fSMark Brown 	{ 0x0490, 0x1103 },    /* R1168  - AIF1 DAC1 EQ Band 4 PG */
60101ed260fSMark Brown 	{ 0x0491, 0x0564 },    /* R1169  - AIF1 DAC1 EQ Band 5 A */
60201ed260fSMark Brown 	{ 0x0492, 0x0559 },    /* R1170  - AIF1 DAC1 EQ Band 5 B */
60301ed260fSMark Brown 	{ 0x0493, 0x4000 },    /* R1171  - AIF1 DAC1 EQ Band 5 PG */
60401ed260fSMark Brown 	{ 0x0494, 0x0000 },    /* R1172  - AIF1 DAC1 EQ Band 1 C */
60501ed260fSMark Brown 	{ 0x04A0, 0x6318 },    /* R1184  - AIF1 DAC2 EQ Gains (1) */
60601ed260fSMark Brown 	{ 0x04A1, 0x6300 },    /* R1185  - AIF1 DAC2 EQ Gains (2) */
60701ed260fSMark Brown 	{ 0x04A2, 0x0FCA },    /* R1186  - AIF1 DAC2 EQ Band 1 A */
60801ed260fSMark Brown 	{ 0x04A3, 0x0400 },    /* R1187  - AIF1 DAC2 EQ Band 1 B */
60901ed260fSMark Brown 	{ 0x04A4, 0x00D8 },    /* R1188  - AIF1 DAC2 EQ Band 1 PG */
61001ed260fSMark Brown 	{ 0x04A5, 0x1EB5 },    /* R1189  - AIF1 DAC2 EQ Band 2 A */
61101ed260fSMark Brown 	{ 0x04A6, 0xF145 },    /* R1190  - AIF1 DAC2 EQ Band 2 B */
61201ed260fSMark Brown 	{ 0x04A7, 0x0B75 },    /* R1191  - AIF1 DAC2 EQ Band 2 C */
61301ed260fSMark Brown 	{ 0x04A8, 0x01C5 },    /* R1192  - AIF1 DAC2 EQ Band 2 PG */
61401ed260fSMark Brown 	{ 0x04A9, 0x1C58 },    /* R1193  - AIF1 DAC2 EQ Band 3 A */
61501ed260fSMark Brown 	{ 0x04AA, 0xF373 },    /* R1194  - AIF1 DAC2 EQ Band 3 B */
61601ed260fSMark Brown 	{ 0x04AB, 0x0A54 },    /* R1195  - AIF1 DAC2 EQ Band 3 C */
61701ed260fSMark Brown 	{ 0x04AC, 0x0558 },    /* R1196  - AIF1 DAC2 EQ Band 3 PG */
61801ed260fSMark Brown 	{ 0x04AD, 0x168E },    /* R1197  - AIF1 DAC2 EQ Band 4 A */
61901ed260fSMark Brown 	{ 0x04AE, 0xF829 },    /* R1198  - AIF1 DAC2 EQ Band 4 B */
62001ed260fSMark Brown 	{ 0x04AF, 0x07AD },    /* R1199  - AIF1 DAC2 EQ Band 4 C */
62101ed260fSMark Brown 	{ 0x04B0, 0x1103 },    /* R1200  - AIF1 DAC2 EQ Band 4 PG */
62201ed260fSMark Brown 	{ 0x04B1, 0x0564 },    /* R1201  - AIF1 DAC2 EQ Band 5 A */
62301ed260fSMark Brown 	{ 0x04B2, 0x0559 },    /* R1202  - AIF1 DAC2 EQ Band 5 B */
62401ed260fSMark Brown 	{ 0x04B3, 0x4000 },    /* R1203  - AIF1 DAC2 EQ Band 5 PG */
62501ed260fSMark Brown 	{ 0x04B4, 0x0000 },    /* R1204  - AIF1 DAC2EQ Band 1 C */
62601ed260fSMark Brown 	{ 0x0500, 0x00C0 },    /* R1280  - AIF2 ADC Left Volume */
62701ed260fSMark Brown 	{ 0x0501, 0x00C0 },    /* R1281  - AIF2 ADC Right Volume */
62801ed260fSMark Brown 	{ 0x0502, 0x00C0 },    /* R1282  - AIF2 DAC Left Volume */
62901ed260fSMark Brown 	{ 0x0503, 0x00C0 },    /* R1283  - AIF2 DAC Right Volume */
63001ed260fSMark Brown 	{ 0x0510, 0x0000 },    /* R1296  - AIF2 ADC Filters */
63101ed260fSMark Brown 	{ 0x0520, 0x0200 },    /* R1312  - AIF2 DAC Filters (1) */
63201ed260fSMark Brown 	{ 0x0521, 0x0010 },    /* R1313  - AIF2 DAC Filters (2) */
63301ed260fSMark Brown 	{ 0x0530, 0x0068 },    /* R1328  - AIF2 DAC Noise Gate */
63401ed260fSMark Brown 	{ 0x0540, 0x0098 },    /* R1344  - AIF2 DRC (1) */
63501ed260fSMark Brown 	{ 0x0541, 0x0845 },    /* R1345  - AIF2 DRC (2) */
63601ed260fSMark Brown 	{ 0x0542, 0x0000 },    /* R1346  - AIF2 DRC (3) */
63701ed260fSMark Brown 	{ 0x0543, 0x0000 },    /* R1347  - AIF2 DRC (4) */
63801ed260fSMark Brown 	{ 0x0544, 0x0000 },    /* R1348  - AIF2 DRC (5) */
63901ed260fSMark Brown 	{ 0x0580, 0x6318 },    /* R1408  - AIF2 EQ Gains (1) */
64001ed260fSMark Brown 	{ 0x0581, 0x6300 },    /* R1409  - AIF2 EQ Gains (2) */
64101ed260fSMark Brown 	{ 0x0582, 0x0FCA },    /* R1410  - AIF2 EQ Band 1 A */
64201ed260fSMark Brown 	{ 0x0583, 0x0400 },    /* R1411  - AIF2 EQ Band 1 B */
64301ed260fSMark Brown 	{ 0x0584, 0x00D8 },    /* R1412  - AIF2 EQ Band 1 PG */
64401ed260fSMark Brown 	{ 0x0585, 0x1EB5 },    /* R1413  - AIF2 EQ Band 2 A */
64501ed260fSMark Brown 	{ 0x0586, 0xF145 },    /* R1414  - AIF2 EQ Band 2 B */
64601ed260fSMark Brown 	{ 0x0587, 0x0B75 },    /* R1415  - AIF2 EQ Band 2 C */
64701ed260fSMark Brown 	{ 0x0588, 0x01C5 },    /* R1416  - AIF2 EQ Band 2 PG */
64801ed260fSMark Brown 	{ 0x0589, 0x1C58 },    /* R1417  - AIF2 EQ Band 3 A */
64901ed260fSMark Brown 	{ 0x058A, 0xF373 },    /* R1418  - AIF2 EQ Band 3 B */
65001ed260fSMark Brown 	{ 0x058B, 0x0A54 },    /* R1419  - AIF2 EQ Band 3 C */
65101ed260fSMark Brown 	{ 0x058C, 0x0558 },    /* R1420  - AIF2 EQ Band 3 PG */
65201ed260fSMark Brown 	{ 0x058D, 0x168E },    /* R1421  - AIF2 EQ Band 4 A */
65301ed260fSMark Brown 	{ 0x058E, 0xF829 },    /* R1422  - AIF2 EQ Band 4 B */
65401ed260fSMark Brown 	{ 0x058F, 0x07AD },    /* R1423  - AIF2 EQ Band 4 C */
65501ed260fSMark Brown 	{ 0x0590, 0x1103 },    /* R1424  - AIF2 EQ Band 4 PG */
65601ed260fSMark Brown 	{ 0x0591, 0x0564 },    /* R1425  - AIF2 EQ Band 5 A */
65701ed260fSMark Brown 	{ 0x0592, 0x0559 },    /* R1426  - AIF2 EQ Band 5 B */
65801ed260fSMark Brown 	{ 0x0593, 0x4000 },    /* R1427  - AIF2 EQ Band 5 PG */
65901ed260fSMark Brown 	{ 0x0594, 0x0000 },    /* R1428  - AIF2 EQ Band 1 C */
66001ed260fSMark Brown 	{ 0x0600, 0x0000 },    /* R1536  - DAC1 Mixer Volumes */
66101ed260fSMark Brown 	{ 0x0601, 0x0000 },    /* R1537  - DAC1 Left Mixer Routing */
66201ed260fSMark Brown 	{ 0x0602, 0x0000 },    /* R1538  - DAC1 Right Mixer Routing */
66301ed260fSMark Brown 	{ 0x0603, 0x0000 },    /* R1539  - DAC2 Mixer Volumes */
66401ed260fSMark Brown 	{ 0x0604, 0x0000 },    /* R1540  - DAC2 Left Mixer Routing */
66501ed260fSMark Brown 	{ 0x0605, 0x0000 },    /* R1541  - DAC2 Right Mixer Routing */
66601ed260fSMark Brown 	{ 0x0606, 0x0000 },    /* R1542  - AIF1 ADC1 Left Mixer Routing */
66701ed260fSMark Brown 	{ 0x0607, 0x0000 },    /* R1543  - AIF1 ADC1 Right Mixer Routing */
66801ed260fSMark Brown 	{ 0x0608, 0x0000 },    /* R1544  - AIF1 ADC2 Left Mixer Routing */
66901ed260fSMark Brown 	{ 0x0609, 0x0000 },    /* R1545  - AIF1 ADC2 Right mixer Routing */
67001ed260fSMark Brown 	{ 0x0610, 0x02C0 },    /* R1552  - DAC1 Left Volume */
67101ed260fSMark Brown 	{ 0x0611, 0x02C0 },    /* R1553  - DAC1 Right Volume */
67201ed260fSMark Brown 	{ 0x0612, 0x02C0 },    /* R1554  - DAC2 Left Volume */
67301ed260fSMark Brown 	{ 0x0613, 0x02C0 },    /* R1555  - DAC2 Right Volume */
67401ed260fSMark Brown 	{ 0x0614, 0x0000 },    /* R1556  - DAC Softmute */
67501ed260fSMark Brown 	{ 0x0620, 0x0002 },    /* R1568  - Oversampling */
67601ed260fSMark Brown 	{ 0x0621, 0x0000 },    /* R1569  - Sidetone */
67701ed260fSMark Brown 	{ 0x0700, 0x8100 },    /* R1792  - GPIO 1 */
67801ed260fSMark Brown 	{ 0x0701, 0xA101 },    /* R1793  - Pull Control (MCLK2) */
67901ed260fSMark Brown 	{ 0x0702, 0xA101 },    /* R1794  - Pull Control (BCLK2) */
68001ed260fSMark Brown 	{ 0x0703, 0xA101 },    /* R1795  - Pull Control (DACLRCLK2) */
68101ed260fSMark Brown 	{ 0x0704, 0xA101 },    /* R1796  - Pull Control (DACDAT2) */
68201ed260fSMark Brown 	{ 0x0705, 0xA101 },    /* R1797  - GPIO 6 */
68301ed260fSMark Brown 	{ 0x0707, 0xA101 },    /* R1799  - GPIO 8 */
68401ed260fSMark Brown 	{ 0x0708, 0xA101 },    /* R1800  - GPIO 9 */
68501ed260fSMark Brown 	{ 0x0709, 0xA101 },    /* R1801  - GPIO 10 */
68601ed260fSMark Brown 	{ 0x070A, 0xA101 },    /* R1802  - GPIO 11 */
68701ed260fSMark Brown 	{ 0x0720, 0x0000 },    /* R1824  - Pull Control (1) */
68801ed260fSMark Brown 	{ 0x0721, 0x0156 },    /* R1825  - Pull Control (2) */
68901ed260fSMark Brown 	{ 0x0738, 0x07FF },    /* R1848  - Interrupt Status 1 Mask */
69001ed260fSMark Brown 	{ 0x0739, 0xFFEF },    /* R1849  - Interrupt Status 2 Mask */
69101ed260fSMark Brown 	{ 0x0740, 0x0000 },    /* R1856  - Interrupt Control */
69201ed260fSMark Brown 	{ 0x0748, 0x003F },    /* R1864  - IRQ Debounce */
69301ed260fSMark Brown 	{ 0x0900, 0x1C00 },    /* R2304  - DSP2_Program */
69401ed260fSMark Brown 	{ 0x0901, 0x0000 },    /* R2305  - DSP2_Config */
69501ed260fSMark Brown 	{ 0x0A0D, 0x0000 },    /* R2573  - DSP2_ExecControl */
69601ed260fSMark Brown 	{ 0x2400, 0x003F },    /* R9216  - MBC Band 1 K (1) */
69701ed260fSMark Brown 	{ 0x2401, 0x8BD8 },    /* R9217  - MBC Band 1 K (2) */
69801ed260fSMark Brown 	{ 0x2402, 0x0032 },    /* R9218  - MBC Band 1 N1 (1) */
69901ed260fSMark Brown 	{ 0x2403, 0xF52D },    /* R9219  - MBC Band 1 N1 (2) */
70001ed260fSMark Brown 	{ 0x2404, 0x0065 },    /* R9220  - MBC Band 1 N2 (1) */
70101ed260fSMark Brown 	{ 0x2405, 0xAC8C },    /* R9221  - MBC Band 1 N2 (2) */
70201ed260fSMark Brown 	{ 0x2406, 0x006B },    /* R9222  - MBC Band 1 N3 (1) */
70301ed260fSMark Brown 	{ 0x2407, 0xE087 },    /* R9223  - MBC Band 1 N3 (2) */
70401ed260fSMark Brown 	{ 0x2408, 0x0072 },    /* R9224  - MBC Band 1 N4 (1) */
70501ed260fSMark Brown 	{ 0x2409, 0x1483 },    /* R9225  - MBC Band 1 N4 (2) */
70601ed260fSMark Brown 	{ 0x240A, 0x0072 },    /* R9226  - MBC Band 1 N5 (1) */
70701ed260fSMark Brown 	{ 0x240B, 0x1483 },    /* R9227  - MBC Band 1 N5 (2) */
70801ed260fSMark Brown 	{ 0x240C, 0x0043 },    /* R9228  - MBC Band 1 X1 (1) */
70901ed260fSMark Brown 	{ 0x240D, 0x3525 },    /* R9229  - MBC Band 1 X1 (2) */
71001ed260fSMark Brown 	{ 0x240E, 0x0006 },    /* R9230  - MBC Band 1 X2 (1) */
71101ed260fSMark Brown 	{ 0x240F, 0x6A4A },    /* R9231  - MBC Band 1 X2 (2) */
71201ed260fSMark Brown 	{ 0x2410, 0x0043 },    /* R9232  - MBC Band 1 X3 (1) */
71301ed260fSMark Brown 	{ 0x2411, 0x6079 },    /* R9233  - MBC Band 1 X3 (2) */
71401ed260fSMark Brown 	{ 0x2412, 0x000C },    /* R9234  - MBC Band 1 Attack (1) */
71501ed260fSMark Brown 	{ 0x2413, 0xCCCD },    /* R9235  - MBC Band 1 Attack (2) */
71601ed260fSMark Brown 	{ 0x2414, 0x0000 },    /* R9236  - MBC Band 1 Decay (1) */
71701ed260fSMark Brown 	{ 0x2415, 0x0800 },    /* R9237  - MBC Band 1 Decay (2) */
71801ed260fSMark Brown 	{ 0x2416, 0x003F },    /* R9238  - MBC Band 2 K (1) */
71901ed260fSMark Brown 	{ 0x2417, 0x8BD8 },    /* R9239  - MBC Band 2 K (2) */
72001ed260fSMark Brown 	{ 0x2418, 0x0032 },    /* R9240  - MBC Band 2 N1 (1) */
72101ed260fSMark Brown 	{ 0x2419, 0xF52D },    /* R9241  - MBC Band 2 N1 (2) */
72201ed260fSMark Brown 	{ 0x241A, 0x0065 },    /* R9242  - MBC Band 2 N2 (1) */
72301ed260fSMark Brown 	{ 0x241B, 0xAC8C },    /* R9243  - MBC Band 2 N2 (2) */
72401ed260fSMark Brown 	{ 0x241C, 0x006B },    /* R9244  - MBC Band 2 N3 (1) */
72501ed260fSMark Brown 	{ 0x241D, 0xE087 },    /* R9245  - MBC Band 2 N3 (2) */
72601ed260fSMark Brown 	{ 0x241E, 0x0072 },    /* R9246  - MBC Band 2 N4 (1) */
72701ed260fSMark Brown 	{ 0x241F, 0x1483 },    /* R9247  - MBC Band 2 N4 (2) */
72801ed260fSMark Brown 	{ 0x2420, 0x0072 },    /* R9248  - MBC Band 2 N5 (1) */
72901ed260fSMark Brown 	{ 0x2421, 0x1483 },    /* R9249  - MBC Band 2 N5 (2) */
73001ed260fSMark Brown 	{ 0x2422, 0x0043 },    /* R9250  - MBC Band 2 X1 (1) */
73101ed260fSMark Brown 	{ 0x2423, 0x3525 },    /* R9251  - MBC Band 2 X1 (2) */
73201ed260fSMark Brown 	{ 0x2424, 0x0006 },    /* R9252  - MBC Band 2 X2 (1) */
73301ed260fSMark Brown 	{ 0x2425, 0x6A4A },    /* R9253  - MBC Band 2 X2 (2) */
73401ed260fSMark Brown 	{ 0x2426, 0x0043 },    /* R9254  - MBC Band 2 X3 (1) */
73501ed260fSMark Brown 	{ 0x2427, 0x6079 },    /* R9255  - MBC Band 2 X3 (2) */
73601ed260fSMark Brown 	{ 0x2428, 0x000C },    /* R9256  - MBC Band 2 Attack (1) */
73701ed260fSMark Brown 	{ 0x2429, 0xCCCD },    /* R9257  - MBC Band 2 Attack (2) */
73801ed260fSMark Brown 	{ 0x242A, 0x0000 },    /* R9258  - MBC Band 2 Decay (1) */
73901ed260fSMark Brown 	{ 0x242B, 0x0800 },    /* R9259  - MBC Band 2 Decay (2) */
74001ed260fSMark Brown 	{ 0x242C, 0x005A },    /* R9260  - MBC_B2_PG2 (1) */
74101ed260fSMark Brown 	{ 0x242D, 0x7EFA },    /* R9261  - MBC_B2_PG2 (2) */
74201ed260fSMark Brown 	{ 0x242E, 0x005A },    /* R9262  - MBC_B1_PG2 (1) */
74301ed260fSMark Brown 	{ 0x242F, 0x7EFA },    /* R9263  - MBC_B1_PG2 (2) */
74401ed260fSMark Brown 	{ 0x2600, 0x00A7 },    /* R9728  - MBC Crossover (1) */
74501ed260fSMark Brown 	{ 0x2601, 0x0D1C },    /* R9729  - MBC Crossover (2) */
74601ed260fSMark Brown 	{ 0x2602, 0x0083 },    /* R9730  - MBC HPF (1) */
74701ed260fSMark Brown 	{ 0x2603, 0x98AD },    /* R9731  - MBC HPF (2) */
74801ed260fSMark Brown 	{ 0x2606, 0x0008 },    /* R9734  - MBC LPF (1) */
74901ed260fSMark Brown 	{ 0x2607, 0xE7A2 },    /* R9735  - MBC LPF (2) */
75001ed260fSMark Brown 	{ 0x260A, 0x0055 },    /* R9738  - MBC RMS Limit (1) */
75101ed260fSMark Brown 	{ 0x260B, 0x8C4B },    /* R9739  - MBC RMS Limit (2) */
75201ed260fSMark Brown };
75301ed260fSMark Brown 
75401ed260fSMark Brown static bool wm1811_readable_register(struct device *dev, unsigned int reg)
75501ed260fSMark Brown {
75601ed260fSMark Brown 	switch (reg) {
75701ed260fSMark Brown 	case WM8994_SOFTWARE_RESET:
75801ed260fSMark Brown 	case WM8994_POWER_MANAGEMENT_1:
75901ed260fSMark Brown 	case WM8994_POWER_MANAGEMENT_2:
76001ed260fSMark Brown 	case WM8994_POWER_MANAGEMENT_3:
76101ed260fSMark Brown 	case WM8994_POWER_MANAGEMENT_4:
76201ed260fSMark Brown 	case WM8994_POWER_MANAGEMENT_5:
76301ed260fSMark Brown 	case WM8994_POWER_MANAGEMENT_6:
76401ed260fSMark Brown 	case WM8994_INPUT_MIXER_1:
76501ed260fSMark Brown 	case WM8994_LEFT_LINE_INPUT_1_2_VOLUME:
76601ed260fSMark Brown 	case WM8994_LEFT_LINE_INPUT_3_4_VOLUME:
76701ed260fSMark Brown 	case WM8994_RIGHT_LINE_INPUT_1_2_VOLUME:
76801ed260fSMark Brown 	case WM8994_RIGHT_LINE_INPUT_3_4_VOLUME:
76901ed260fSMark Brown 	case WM8994_LEFT_OUTPUT_VOLUME:
77001ed260fSMark Brown 	case WM8994_RIGHT_OUTPUT_VOLUME:
77101ed260fSMark Brown 	case WM8994_LINE_OUTPUTS_VOLUME:
77201ed260fSMark Brown 	case WM8994_HPOUT2_VOLUME:
77301ed260fSMark Brown 	case WM8994_LEFT_OPGA_VOLUME:
77401ed260fSMark Brown 	case WM8994_RIGHT_OPGA_VOLUME:
77501ed260fSMark Brown 	case WM8994_SPKMIXL_ATTENUATION:
77601ed260fSMark Brown 	case WM8994_SPKMIXR_ATTENUATION:
77701ed260fSMark Brown 	case WM8994_SPKOUT_MIXERS:
77801ed260fSMark Brown 	case WM8994_CLASSD:
77901ed260fSMark Brown 	case WM8994_SPEAKER_VOLUME_LEFT:
78001ed260fSMark Brown 	case WM8994_SPEAKER_VOLUME_RIGHT:
78101ed260fSMark Brown 	case WM8994_INPUT_MIXER_2:
78201ed260fSMark Brown 	case WM8994_INPUT_MIXER_3:
78301ed260fSMark Brown 	case WM8994_INPUT_MIXER_4:
78401ed260fSMark Brown 	case WM8994_INPUT_MIXER_5:
78501ed260fSMark Brown 	case WM8994_INPUT_MIXER_6:
78601ed260fSMark Brown 	case WM8994_OUTPUT_MIXER_1:
78701ed260fSMark Brown 	case WM8994_OUTPUT_MIXER_2:
78801ed260fSMark Brown 	case WM8994_OUTPUT_MIXER_3:
78901ed260fSMark Brown 	case WM8994_OUTPUT_MIXER_4:
79001ed260fSMark Brown 	case WM8994_OUTPUT_MIXER_5:
79101ed260fSMark Brown 	case WM8994_OUTPUT_MIXER_6:
79201ed260fSMark Brown 	case WM8994_HPOUT2_MIXER:
79301ed260fSMark Brown 	case WM8994_LINE_MIXER_1:
79401ed260fSMark Brown 	case WM8994_LINE_MIXER_2:
79501ed260fSMark Brown 	case WM8994_SPEAKER_MIXER:
79601ed260fSMark Brown 	case WM8994_ADDITIONAL_CONTROL:
79701ed260fSMark Brown 	case WM8994_ANTIPOP_1:
79801ed260fSMark Brown 	case WM8994_ANTIPOP_2:
79901ed260fSMark Brown 	case WM8994_LDO_1:
80001ed260fSMark Brown 	case WM8994_LDO_2:
80101ed260fSMark Brown 	case WM8958_MICBIAS1:
80201ed260fSMark Brown 	case WM8958_MICBIAS2:
80301ed260fSMark Brown 	case WM8994_CHARGE_PUMP_1:
80401ed260fSMark Brown 	case WM8958_CHARGE_PUMP_2:
80501ed260fSMark Brown 	case WM8994_CLASS_W_1:
80601ed260fSMark Brown 	case WM8994_DC_SERVO_1:
80701ed260fSMark Brown 	case WM8994_DC_SERVO_2:
80801ed260fSMark Brown 	case WM8994_DC_SERVO_READBACK:
80901ed260fSMark Brown 	case WM8994_DC_SERVO_4:
81001ed260fSMark Brown 	case WM8994_ANALOGUE_HP_1:
81101ed260fSMark Brown 	case WM8958_MIC_DETECT_1:
81201ed260fSMark Brown 	case WM8958_MIC_DETECT_2:
81301ed260fSMark Brown 	case WM8958_MIC_DETECT_3:
81401ed260fSMark Brown 	case WM8994_CHIP_REVISION:
81501ed260fSMark Brown 	case WM8994_CONTROL_INTERFACE:
81601ed260fSMark Brown 	case WM8994_AIF1_CLOCKING_1:
81701ed260fSMark Brown 	case WM8994_AIF1_CLOCKING_2:
81801ed260fSMark Brown 	case WM8994_AIF2_CLOCKING_1:
81901ed260fSMark Brown 	case WM8994_AIF2_CLOCKING_2:
82001ed260fSMark Brown 	case WM8994_CLOCKING_1:
82101ed260fSMark Brown 	case WM8994_CLOCKING_2:
82201ed260fSMark Brown 	case WM8994_AIF1_RATE:
82301ed260fSMark Brown 	case WM8994_AIF2_RATE:
82401ed260fSMark Brown 	case WM8994_RATE_STATUS:
82501ed260fSMark Brown 	case WM8994_FLL1_CONTROL_1:
82601ed260fSMark Brown 	case WM8994_FLL1_CONTROL_2:
82701ed260fSMark Brown 	case WM8994_FLL1_CONTROL_3:
82801ed260fSMark Brown 	case WM8994_FLL1_CONTROL_4:
82901ed260fSMark Brown 	case WM8994_FLL1_CONTROL_5:
83001ed260fSMark Brown 	case WM8958_FLL1_EFS_1:
83101ed260fSMark Brown 	case WM8958_FLL1_EFS_2:
83201ed260fSMark Brown 	case WM8994_FLL2_CONTROL_1:
83301ed260fSMark Brown 	case WM8994_FLL2_CONTROL_2:
83401ed260fSMark Brown 	case WM8994_FLL2_CONTROL_3:
83501ed260fSMark Brown 	case WM8994_FLL2_CONTROL_4:
83601ed260fSMark Brown 	case WM8994_FLL2_CONTROL_5:
83701ed260fSMark Brown 	case WM8958_FLL2_EFS_1:
83801ed260fSMark Brown 	case WM8958_FLL2_EFS_2:
83901ed260fSMark Brown 	case WM8994_AIF1_CONTROL_1:
84001ed260fSMark Brown 	case WM8994_AIF1_CONTROL_2:
84101ed260fSMark Brown 	case WM8994_AIF1_MASTER_SLAVE:
84201ed260fSMark Brown 	case WM8994_AIF1_BCLK:
84301ed260fSMark Brown 	case WM8994_AIF1ADC_LRCLK:
84401ed260fSMark Brown 	case WM8994_AIF1DAC_LRCLK:
84501ed260fSMark Brown 	case WM8994_AIF1DAC_DATA:
84601ed260fSMark Brown 	case WM8994_AIF1ADC_DATA:
84701ed260fSMark Brown 	case WM8994_AIF2_CONTROL_1:
84801ed260fSMark Brown 	case WM8994_AIF2_CONTROL_2:
84901ed260fSMark Brown 	case WM8994_AIF2_MASTER_SLAVE:
85001ed260fSMark Brown 	case WM8994_AIF2_BCLK:
85101ed260fSMark Brown 	case WM8994_AIF2ADC_LRCLK:
85201ed260fSMark Brown 	case WM8994_AIF2DAC_LRCLK:
85301ed260fSMark Brown 	case WM8994_AIF2DAC_DATA:
85401ed260fSMark Brown 	case WM8994_AIF2ADC_DATA:
85501ed260fSMark Brown 	case WM1811_AIF2TX_CONTROL:
85601ed260fSMark Brown 	case WM8958_AIF3_CONTROL_1:
85701ed260fSMark Brown 	case WM8958_AIF3_CONTROL_2:
85801ed260fSMark Brown 	case WM8958_AIF3DAC_DATA:
85901ed260fSMark Brown 	case WM8958_AIF3ADC_DATA:
86001ed260fSMark Brown 	case WM8994_AIF1_ADC1_LEFT_VOLUME:
86101ed260fSMark Brown 	case WM8994_AIF1_ADC1_RIGHT_VOLUME:
86201ed260fSMark Brown 	case WM8994_AIF1_DAC1_LEFT_VOLUME:
86301ed260fSMark Brown 	case WM8994_AIF1_DAC1_RIGHT_VOLUME:
86401ed260fSMark Brown 	case WM8994_AIF1_ADC1_FILTERS:
86501ed260fSMark Brown 	case WM8994_AIF1_DAC1_FILTERS_1:
86601ed260fSMark Brown 	case WM8994_AIF1_DAC1_FILTERS_2:
86701ed260fSMark Brown 	case WM8958_AIF1_DAC1_NOISE_GATE:
86801ed260fSMark Brown 	case WM8994_AIF1_DRC1_1:
86901ed260fSMark Brown 	case WM8994_AIF1_DRC1_2:
87001ed260fSMark Brown 	case WM8994_AIF1_DRC1_3:
87101ed260fSMark Brown 	case WM8994_AIF1_DRC1_4:
87201ed260fSMark Brown 	case WM8994_AIF1_DRC1_5:
87301ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_GAINS_1:
87401ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_GAINS_2:
87501ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_1_A:
87601ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_1_B:
87701ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_1_PG:
87801ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_2_A:
87901ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_2_B:
88001ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_2_C:
88101ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_2_PG:
88201ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_3_A:
88301ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_3_B:
88401ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_3_C:
88501ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_3_PG:
88601ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_4_A:
88701ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_4_B:
88801ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_4_C:
88901ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_4_PG:
89001ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_5_A:
89101ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_5_B:
89201ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_5_PG:
89301ed260fSMark Brown 	case WM8994_AIF1_DAC1_EQ_BAND_1_C:
89401ed260fSMark Brown 	case WM8994_AIF2_ADC_LEFT_VOLUME:
89501ed260fSMark Brown 	case WM8994_AIF2_ADC_RIGHT_VOLUME:
89601ed260fSMark Brown 	case WM8994_AIF2_DAC_LEFT_VOLUME:
89701ed260fSMark Brown 	case WM8994_AIF2_DAC_RIGHT_VOLUME:
89801ed260fSMark Brown 	case WM8994_AIF2_ADC_FILTERS:
89901ed260fSMark Brown 	case WM8994_AIF2_DAC_FILTERS_1:
90001ed260fSMark Brown 	case WM8994_AIF2_DAC_FILTERS_2:
90101ed260fSMark Brown 	case WM8958_AIF2_DAC_NOISE_GATE:
90201ed260fSMark Brown 	case WM8994_AIF2_DRC_1:
90301ed260fSMark Brown 	case WM8994_AIF2_DRC_2:
90401ed260fSMark Brown 	case WM8994_AIF2_DRC_3:
90501ed260fSMark Brown 	case WM8994_AIF2_DRC_4:
90601ed260fSMark Brown 	case WM8994_AIF2_DRC_5:
90701ed260fSMark Brown 	case WM8994_AIF2_EQ_GAINS_1:
90801ed260fSMark Brown 	case WM8994_AIF2_EQ_GAINS_2:
90901ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_1_A:
91001ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_1_B:
91101ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_1_PG:
91201ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_2_A:
91301ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_2_B:
91401ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_2_C:
91501ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_2_PG:
91601ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_3_A:
91701ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_3_B:
91801ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_3_C:
91901ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_3_PG:
92001ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_4_A:
92101ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_4_B:
92201ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_4_C:
92301ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_4_PG:
92401ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_5_A:
92501ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_5_B:
92601ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_5_PG:
92701ed260fSMark Brown 	case WM8994_AIF2_EQ_BAND_1_C:
92801ed260fSMark Brown 	case WM8994_DAC1_MIXER_VOLUMES:
92901ed260fSMark Brown 	case WM8994_DAC1_LEFT_MIXER_ROUTING:
93001ed260fSMark Brown 	case WM8994_DAC1_RIGHT_MIXER_ROUTING:
93101ed260fSMark Brown 	case WM8994_DAC2_MIXER_VOLUMES:
93201ed260fSMark Brown 	case WM8994_DAC2_LEFT_MIXER_ROUTING:
93301ed260fSMark Brown 	case WM8994_DAC2_RIGHT_MIXER_ROUTING:
93401ed260fSMark Brown 	case WM8994_AIF1_ADC1_LEFT_MIXER_ROUTING:
93501ed260fSMark Brown 	case WM8994_AIF1_ADC1_RIGHT_MIXER_ROUTING:
93601ed260fSMark Brown 	case WM8994_DAC1_LEFT_VOLUME:
93701ed260fSMark Brown 	case WM8994_DAC1_RIGHT_VOLUME:
93801ed260fSMark Brown 	case WM8994_DAC2_LEFT_VOLUME:
93901ed260fSMark Brown 	case WM8994_DAC2_RIGHT_VOLUME:
94001ed260fSMark Brown 	case WM8994_DAC_SOFTMUTE:
94101ed260fSMark Brown 	case WM8994_OVERSAMPLING:
94201ed260fSMark Brown 	case WM8994_SIDETONE:
94301ed260fSMark Brown 	case WM8994_GPIO_1:
94401ed260fSMark Brown 	case WM8994_GPIO_2:
94501ed260fSMark Brown 	case WM8994_GPIO_3:
94601ed260fSMark Brown 	case WM8994_GPIO_4:
94701ed260fSMark Brown 	case WM8994_GPIO_5:
94801ed260fSMark Brown 	case WM8994_GPIO_6:
94901ed260fSMark Brown 	case WM8994_GPIO_8:
95001ed260fSMark Brown 	case WM8994_GPIO_9:
95101ed260fSMark Brown 	case WM8994_GPIO_10:
95201ed260fSMark Brown 	case WM8994_GPIO_11:
95301ed260fSMark Brown 	case WM8994_PULL_CONTROL_1:
95401ed260fSMark Brown 	case WM8994_PULL_CONTROL_2:
95501ed260fSMark Brown 	case WM8994_INTERRUPT_STATUS_1:
95601ed260fSMark Brown 	case WM8994_INTERRUPT_STATUS_2:
95701ed260fSMark Brown 	case WM8994_INTERRUPT_RAW_STATUS_2:
95801ed260fSMark Brown 	case WM8994_INTERRUPT_STATUS_1_MASK:
95901ed260fSMark Brown 	case WM8994_INTERRUPT_STATUS_2_MASK:
96001ed260fSMark Brown 	case WM8994_INTERRUPT_CONTROL:
96101ed260fSMark Brown 	case WM8994_IRQ_DEBOUNCE:
96201ed260fSMark Brown 		return true;
96301ed260fSMark Brown 	default:
96401ed260fSMark Brown 		return false;
96501ed260fSMark Brown 	}
96601ed260fSMark Brown }
96701ed260fSMark Brown 
96801ed260fSMark Brown static bool wm8994_readable_register(struct device *dev, unsigned int reg)
96901ed260fSMark Brown {
97001ed260fSMark Brown 	switch (reg) {
97101ed260fSMark Brown 	case WM8994_DC_SERVO_READBACK:
97201ed260fSMark Brown 	case WM8994_WRITE_SEQUENCER_CTRL_1:
97301ed260fSMark Brown 	case WM8994_WRITE_SEQUENCER_CTRL_2:
97401ed260fSMark Brown 	case WM8994_AIF1_ADC2_LEFT_VOLUME:
97501ed260fSMark Brown 	case WM8994_AIF1_ADC2_RIGHT_VOLUME:
97601ed260fSMark Brown 	case WM8994_AIF1_DAC2_LEFT_VOLUME:
97701ed260fSMark Brown 	case WM8994_AIF1_DAC2_RIGHT_VOLUME:
97801ed260fSMark Brown 	case WM8994_AIF1_ADC2_FILTERS:
97901ed260fSMark Brown 	case WM8994_AIF1_DAC2_FILTERS_1:
98001ed260fSMark Brown 	case WM8994_AIF1_DAC2_FILTERS_2:
98101ed260fSMark Brown 	case WM8958_AIF1_DAC2_NOISE_GATE:
98201ed260fSMark Brown 	case WM8994_AIF1_DRC2_1:
98301ed260fSMark Brown 	case WM8994_AIF1_DRC2_2:
98401ed260fSMark Brown 	case WM8994_AIF1_DRC2_3:
98501ed260fSMark Brown 	case WM8994_AIF1_DRC2_4:
98601ed260fSMark Brown 	case WM8994_AIF1_DRC2_5:
98701ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_GAINS_1:
98801ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_GAINS_2:
98901ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_1_A:
99001ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_1_B:
99101ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_1_PG:
99201ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_2_A:
99301ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_2_B:
99401ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_2_C:
99501ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_2_PG:
99601ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_3_A:
99701ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_3_B:
99801ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_3_C:
99901ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_3_PG:
100001ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_4_A:
100101ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_4_B:
100201ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_4_C:
100301ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_4_PG:
100401ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_5_A:
100501ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_5_B:
100601ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_5_PG:
100701ed260fSMark Brown 	case WM8994_AIF1_DAC2_EQ_BAND_1_C:
100801ed260fSMark Brown 	case WM8994_DAC2_MIXER_VOLUMES:
100901ed260fSMark Brown 	case WM8994_DAC2_LEFT_MIXER_ROUTING:
101001ed260fSMark Brown 	case WM8994_DAC2_RIGHT_MIXER_ROUTING:
101101ed260fSMark Brown 	case WM8994_AIF1_ADC2_LEFT_MIXER_ROUTING:
101201ed260fSMark Brown 	case WM8994_AIF1_ADC2_RIGHT_MIXER_ROUTING:
101301ed260fSMark Brown 	case WM8994_DAC2_LEFT_VOLUME:
101401ed260fSMark Brown 	case WM8994_DAC2_RIGHT_VOLUME:
101501ed260fSMark Brown 		return true;
101601ed260fSMark Brown 	default:
101701ed260fSMark Brown 		return wm1811_readable_register(dev, reg);
101801ed260fSMark Brown 	}
101901ed260fSMark Brown }
102001ed260fSMark Brown 
102101ed260fSMark Brown static bool wm8958_readable_register(struct device *dev, unsigned int reg)
102201ed260fSMark Brown {
102301ed260fSMark Brown 	switch (reg) {
102401ed260fSMark Brown 	case WM8958_DSP2_PROGRAM:
102501ed260fSMark Brown 	case WM8958_DSP2_CONFIG:
102601ed260fSMark Brown 	case WM8958_DSP2_MAGICNUM:
102701ed260fSMark Brown 	case WM8958_DSP2_RELEASEYEAR:
102801ed260fSMark Brown 	case WM8958_DSP2_RELEASEMONTHDAY:
102901ed260fSMark Brown 	case WM8958_DSP2_RELEASETIME:
103001ed260fSMark Brown 	case WM8958_DSP2_VERMAJMIN:
103101ed260fSMark Brown 	case WM8958_DSP2_VERBUILD:
103201ed260fSMark Brown 	case WM8958_DSP2_TESTREG:
103301ed260fSMark Brown 	case WM8958_DSP2_XORREG:
103401ed260fSMark Brown 	case WM8958_DSP2_SHIFTMAXX:
103501ed260fSMark Brown 	case WM8958_DSP2_SHIFTMAXY:
103601ed260fSMark Brown 	case WM8958_DSP2_SHIFTMAXZ:
103701ed260fSMark Brown 	case WM8958_DSP2_SHIFTMAXEXTLO:
103801ed260fSMark Brown 	case WM8958_DSP2_AESSELECT:
103901ed260fSMark Brown 	case WM8958_DSP2_EXECCONTROL:
104001ed260fSMark Brown 	case WM8958_DSP2_SAMPLEBREAK:
104101ed260fSMark Brown 	case WM8958_DSP2_COUNTBREAK:
104201ed260fSMark Brown 	case WM8958_DSP2_INTSTATUS:
104301ed260fSMark Brown 	case WM8958_DSP2_EVENTSTATUS:
104401ed260fSMark Brown 	case WM8958_DSP2_INTMASK:
104501ed260fSMark Brown 	case WM8958_DSP2_CONFIGDWIDTH:
104601ed260fSMark Brown 	case WM8958_DSP2_CONFIGINSTR:
104701ed260fSMark Brown 	case WM8958_DSP2_CONFIGDMEM:
104801ed260fSMark Brown 	case WM8958_DSP2_CONFIGDELAYS:
104901ed260fSMark Brown 	case WM8958_DSP2_CONFIGNUMIO:
105001ed260fSMark Brown 	case WM8958_DSP2_CONFIGEXTDEPTH:
105101ed260fSMark Brown 	case WM8958_DSP2_CONFIGMULTIPLIER:
105201ed260fSMark Brown 	case WM8958_DSP2_CONFIGCTRLDWIDTH:
105301ed260fSMark Brown 	case WM8958_DSP2_CONFIGPIPELINE:
105401ed260fSMark Brown 	case WM8958_DSP2_SHIFTMAXEXTHI:
105501ed260fSMark Brown 	case WM8958_DSP2_SWVERSIONREG:
105601ed260fSMark Brown 	case WM8958_DSP2_CONFIGXMEM:
105701ed260fSMark Brown 	case WM8958_DSP2_CONFIGYMEM:
105801ed260fSMark Brown 	case WM8958_DSP2_CONFIGZMEM:
105901ed260fSMark Brown 	case WM8958_FW_BUILD_1:
106001ed260fSMark Brown 	case WM8958_FW_BUILD_0:
106101ed260fSMark Brown 	case WM8958_FW_ID_1:
106201ed260fSMark Brown 	case WM8958_FW_ID_0:
106301ed260fSMark Brown 	case WM8958_FW_MAJOR_1:
106401ed260fSMark Brown 	case WM8958_FW_MAJOR_0:
106501ed260fSMark Brown 	case WM8958_FW_MINOR_1:
106601ed260fSMark Brown 	case WM8958_FW_MINOR_0:
106701ed260fSMark Brown 	case WM8958_FW_PATCH_1:
106801ed260fSMark Brown 	case WM8958_FW_PATCH_0:
106901ed260fSMark Brown 	case WM8958_MBC_BAND_1_K_1:
107001ed260fSMark Brown 	case WM8958_MBC_BAND_1_K_2:
107101ed260fSMark Brown 	case WM8958_MBC_BAND_1_N1_1:
107201ed260fSMark Brown 	case WM8958_MBC_BAND_1_N1_2:
107301ed260fSMark Brown 	case WM8958_MBC_BAND_1_N2_1:
107401ed260fSMark Brown 	case WM8958_MBC_BAND_1_N2_2:
107501ed260fSMark Brown 	case WM8958_MBC_BAND_1_N3_1:
107601ed260fSMark Brown 	case WM8958_MBC_BAND_1_N3_2:
107701ed260fSMark Brown 	case WM8958_MBC_BAND_1_N4_1:
107801ed260fSMark Brown 	case WM8958_MBC_BAND_1_N4_2:
107901ed260fSMark Brown 	case WM8958_MBC_BAND_1_N5_1:
108001ed260fSMark Brown 	case WM8958_MBC_BAND_1_N5_2:
108101ed260fSMark Brown 	case WM8958_MBC_BAND_1_X1_1:
108201ed260fSMark Brown 	case WM8958_MBC_BAND_1_X1_2:
108301ed260fSMark Brown 	case WM8958_MBC_BAND_1_X2_1:
108401ed260fSMark Brown 	case WM8958_MBC_BAND_1_X2_2:
108501ed260fSMark Brown 	case WM8958_MBC_BAND_1_X3_1:
108601ed260fSMark Brown 	case WM8958_MBC_BAND_1_X3_2:
108701ed260fSMark Brown 	case WM8958_MBC_BAND_1_ATTACK_1:
108801ed260fSMark Brown 	case WM8958_MBC_BAND_1_ATTACK_2:
108901ed260fSMark Brown 	case WM8958_MBC_BAND_1_DECAY_1:
109001ed260fSMark Brown 	case WM8958_MBC_BAND_1_DECAY_2:
109101ed260fSMark Brown 	case WM8958_MBC_BAND_2_K_1:
109201ed260fSMark Brown 	case WM8958_MBC_BAND_2_K_2:
109301ed260fSMark Brown 	case WM8958_MBC_BAND_2_N1_1:
109401ed260fSMark Brown 	case WM8958_MBC_BAND_2_N1_2:
109501ed260fSMark Brown 	case WM8958_MBC_BAND_2_N2_1:
109601ed260fSMark Brown 	case WM8958_MBC_BAND_2_N2_2:
109701ed260fSMark Brown 	case WM8958_MBC_BAND_2_N3_1:
109801ed260fSMark Brown 	case WM8958_MBC_BAND_2_N3_2:
109901ed260fSMark Brown 	case WM8958_MBC_BAND_2_N4_1:
110001ed260fSMark Brown 	case WM8958_MBC_BAND_2_N4_2:
110101ed260fSMark Brown 	case WM8958_MBC_BAND_2_N5_1:
110201ed260fSMark Brown 	case WM8958_MBC_BAND_2_N5_2:
110301ed260fSMark Brown 	case WM8958_MBC_BAND_2_X1_1:
110401ed260fSMark Brown 	case WM8958_MBC_BAND_2_X1_2:
110501ed260fSMark Brown 	case WM8958_MBC_BAND_2_X2_1:
110601ed260fSMark Brown 	case WM8958_MBC_BAND_2_X2_2:
110701ed260fSMark Brown 	case WM8958_MBC_BAND_2_X3_1:
110801ed260fSMark Brown 	case WM8958_MBC_BAND_2_X3_2:
110901ed260fSMark Brown 	case WM8958_MBC_BAND_2_ATTACK_1:
111001ed260fSMark Brown 	case WM8958_MBC_BAND_2_ATTACK_2:
111101ed260fSMark Brown 	case WM8958_MBC_BAND_2_DECAY_1:
111201ed260fSMark Brown 	case WM8958_MBC_BAND_2_DECAY_2:
111301ed260fSMark Brown 	case WM8958_MBC_B2_PG2_1:
111401ed260fSMark Brown 	case WM8958_MBC_B2_PG2_2:
111501ed260fSMark Brown 	case WM8958_MBC_B1_PG2_1:
111601ed260fSMark Brown 	case WM8958_MBC_B1_PG2_2:
111701ed260fSMark Brown 	case WM8958_MBC_CROSSOVER_1:
111801ed260fSMark Brown 	case WM8958_MBC_CROSSOVER_2:
111901ed260fSMark Brown 	case WM8958_MBC_HPF_1:
112001ed260fSMark Brown 	case WM8958_MBC_HPF_2:
112101ed260fSMark Brown 	case WM8958_MBC_LPF_1:
112201ed260fSMark Brown 	case WM8958_MBC_LPF_2:
112301ed260fSMark Brown 	case WM8958_MBC_RMS_LIMIT_1:
112401ed260fSMark Brown 	case WM8958_MBC_RMS_LIMIT_2:
112501ed260fSMark Brown 		return true;
112601ed260fSMark Brown 	default:
112701ed260fSMark Brown 		return wm8994_readable_register(dev, reg);
112801ed260fSMark Brown 	}
112901ed260fSMark Brown }
113001ed260fSMark Brown 
113101ed260fSMark Brown static bool wm8994_volatile_register(struct device *dev, unsigned int reg)
113201ed260fSMark Brown {
113301ed260fSMark Brown 	switch (reg) {
113401ed260fSMark Brown 	case WM8994_SOFTWARE_RESET:
113501ed260fSMark Brown 	case WM8994_DC_SERVO_1:
113601ed260fSMark Brown 	case WM8994_DC_SERVO_READBACK:
113701ed260fSMark Brown 	case WM8994_RATE_STATUS:
113801ed260fSMark Brown 	case WM8958_MIC_DETECT_3:
113901ed260fSMark Brown 	case WM8994_DC_SERVO_4E:
114001ed260fSMark Brown 	case WM8994_CHIP_REVISION:
114101ed260fSMark Brown 	case WM8994_INTERRUPT_STATUS_1:
114201ed260fSMark Brown 	case WM8994_INTERRUPT_STATUS_2:
114301ed260fSMark Brown 		return true;
114401ed260fSMark Brown 	default:
114501ed260fSMark Brown 		return false;
114601ed260fSMark Brown 	}
114701ed260fSMark Brown }
114801ed260fSMark Brown 
11497ed5849cSMark Brown static bool wm1811_volatile_register(struct device *dev, unsigned int reg)
11507ed5849cSMark Brown {
11517ed5849cSMark Brown 	struct wm8994 *wm8994 = dev_get_drvdata(dev);
11527ed5849cSMark Brown 
11537ed5849cSMark Brown 	switch (reg) {
11547ed5849cSMark Brown 	case WM8994_GPIO_6:
11557ed5849cSMark Brown 		if (wm8994->revision > 1)
11567ed5849cSMark Brown 			return true;
11577ed5849cSMark Brown 		else
11587ed5849cSMark Brown 			return false;
11597ed5849cSMark Brown 	default:
11607ed5849cSMark Brown 		return wm8994_volatile_register(dev, reg);
11617ed5849cSMark Brown 	}
11627ed5849cSMark Brown }
11637ed5849cSMark Brown 
116401ed260fSMark Brown static bool wm8958_volatile_register(struct device *dev, unsigned int reg)
116501ed260fSMark Brown {
116601ed260fSMark Brown 	switch (reg) {
116701ed260fSMark Brown 	case WM8958_DSP2_MAGICNUM:
116801ed260fSMark Brown 	case WM8958_DSP2_RELEASEYEAR:
116901ed260fSMark Brown 	case WM8958_DSP2_RELEASEMONTHDAY:
117001ed260fSMark Brown 	case WM8958_DSP2_RELEASETIME:
117101ed260fSMark Brown 	case WM8958_DSP2_VERMAJMIN:
117201ed260fSMark Brown 	case WM8958_DSP2_VERBUILD:
117301ed260fSMark Brown 	case WM8958_DSP2_EXECCONTROL:
117401ed260fSMark Brown 	case WM8958_DSP2_SWVERSIONREG:
117501ed260fSMark Brown 	case WM8958_DSP2_CONFIGXMEM:
117601ed260fSMark Brown 	case WM8958_DSP2_CONFIGYMEM:
117701ed260fSMark Brown 	case WM8958_DSP2_CONFIGZMEM:
117801ed260fSMark Brown 	case WM8958_FW_BUILD_1:
117901ed260fSMark Brown 	case WM8958_FW_BUILD_0:
118001ed260fSMark Brown 	case WM8958_FW_ID_1:
118101ed260fSMark Brown 	case WM8958_FW_ID_0:
118201ed260fSMark Brown 	case WM8958_FW_MAJOR_1:
118301ed260fSMark Brown 	case WM8958_FW_MAJOR_0:
118401ed260fSMark Brown 	case WM8958_FW_MINOR_1:
118501ed260fSMark Brown 	case WM8958_FW_MINOR_0:
118601ed260fSMark Brown 	case WM8958_FW_PATCH_1:
118701ed260fSMark Brown 	case WM8958_FW_PATCH_0:
118801ed260fSMark Brown 		return true;
118901ed260fSMark Brown 	default:
119001ed260fSMark Brown 		return wm8994_volatile_register(dev, reg);
119101ed260fSMark Brown 	}
119201ed260fSMark Brown }
119301ed260fSMark Brown 
119401ed260fSMark Brown struct regmap_config wm1811_regmap_config = {
119501ed260fSMark Brown 	.reg_bits = 16,
119601ed260fSMark Brown 	.val_bits = 16,
119701ed260fSMark Brown 
119801ed260fSMark Brown 	.cache_type = REGCACHE_RBTREE,
119901ed260fSMark Brown 
120001ed260fSMark Brown 	.reg_defaults = wm1811_defaults,
120101ed260fSMark Brown 	.num_reg_defaults = ARRAY_SIZE(wm1811_defaults),
120201ed260fSMark Brown 
120301ed260fSMark Brown 	.max_register = WM8994_MAX_REGISTER,
12047ed5849cSMark Brown 	.volatile_reg = wm1811_volatile_register,
120501ed260fSMark Brown 	.readable_reg = wm1811_readable_register,
120601ed260fSMark Brown };
120701ed260fSMark Brown 
120801ed260fSMark Brown struct regmap_config wm8994_regmap_config = {
120901ed260fSMark Brown 	.reg_bits = 16,
121001ed260fSMark Brown 	.val_bits = 16,
121101ed260fSMark Brown 
121201ed260fSMark Brown 	.cache_type = REGCACHE_RBTREE,
121301ed260fSMark Brown 
121401ed260fSMark Brown 	.reg_defaults = wm8994_defaults,
121501ed260fSMark Brown 	.num_reg_defaults = ARRAY_SIZE(wm8994_defaults),
121601ed260fSMark Brown 
121701ed260fSMark Brown 	.max_register = WM8994_MAX_REGISTER,
121801ed260fSMark Brown 	.volatile_reg = wm8994_volatile_register,
121901ed260fSMark Brown 	.readable_reg = wm8994_readable_register,
122001ed260fSMark Brown };
122101ed260fSMark Brown 
122201ed260fSMark Brown struct regmap_config wm8958_regmap_config = {
122301ed260fSMark Brown 	.reg_bits = 16,
122401ed260fSMark Brown 	.val_bits = 16,
122501ed260fSMark Brown 
122601ed260fSMark Brown 	.cache_type = REGCACHE_RBTREE,
122701ed260fSMark Brown 
122801ed260fSMark Brown 	.reg_defaults = wm8958_defaults,
122901ed260fSMark Brown 	.num_reg_defaults = ARRAY_SIZE(wm8958_defaults),
123001ed260fSMark Brown 
123101ed260fSMark Brown 	.max_register = WM8994_MAX_REGISTER,
123201ed260fSMark Brown 	.volatile_reg = wm8958_volatile_register,
123301ed260fSMark Brown 	.readable_reg = wm8958_readable_register,
123401ed260fSMark Brown };
123534697898SMark Brown 
123634697898SMark Brown struct regmap_config wm8994_base_regmap_config = {
123734697898SMark Brown 	.reg_bits = 16,
123834697898SMark Brown 	.val_bits = 16,
123934697898SMark Brown };
1240