xref: /linux/sound/soc/codecs/wm8991.h (revision 9578121c80a59f2cdd93c8a48bc9549ee873b14c)
1203db220SDimitris Papastamos /*
2203db220SDimitris Papastamos  * wm8991.h  --  audio driver for WM8991
3203db220SDimitris Papastamos  *
4203db220SDimitris Papastamos  * Copyright 2007 Wolfson Microelectronics PLC.
5203db220SDimitris Papastamos  * Author: Graeme Gregory
6203db220SDimitris Papastamos  *         graeme.gregory@wolfsonmicro.com or linux@wolfsonmicro.com
7203db220SDimitris Papastamos  *
8203db220SDimitris Papastamos  *  This program is free software; you can redistribute  it and/or modify it
9203db220SDimitris Papastamos  *  under  the terms of  the GNU General  Public License as published by the
10203db220SDimitris Papastamos  *  Free Software Foundation;  either version 2 of the  License, or (at your
11203db220SDimitris Papastamos  *  option) any later version.
12203db220SDimitris Papastamos  */
13203db220SDimitris Papastamos 
14203db220SDimitris Papastamos #ifndef _WM8991_H
15203db220SDimitris Papastamos #define _WM8991_H
16203db220SDimitris Papastamos 
17203db220SDimitris Papastamos /*
18203db220SDimitris Papastamos  * Register values.
19203db220SDimitris Papastamos  */
20203db220SDimitris Papastamos #define WM8991_RESET                            0x00
21203db220SDimitris Papastamos #define WM8991_POWER_MANAGEMENT_1               0x01
22203db220SDimitris Papastamos #define WM8991_POWER_MANAGEMENT_2               0x02
23203db220SDimitris Papastamos #define WM8991_POWER_MANAGEMENT_3               0x03
24203db220SDimitris Papastamos #define WM8991_AUDIO_INTERFACE_1                0x04
25203db220SDimitris Papastamos #define WM8991_AUDIO_INTERFACE_2                0x05
26203db220SDimitris Papastamos #define WM8991_CLOCKING_1                       0x06
27203db220SDimitris Papastamos #define WM8991_CLOCKING_2                       0x07
28203db220SDimitris Papastamos #define WM8991_AUDIO_INTERFACE_3                0x08
29203db220SDimitris Papastamos #define WM8991_AUDIO_INTERFACE_4                0x09
30203db220SDimitris Papastamos #define WM8991_DAC_CTRL                         0x0A
31203db220SDimitris Papastamos #define WM8991_LEFT_DAC_DIGITAL_VOLUME          0x0B
32203db220SDimitris Papastamos #define WM8991_RIGHT_DAC_DIGITAL_VOLUME         0x0C
33203db220SDimitris Papastamos #define WM8991_DIGITAL_SIDE_TONE                0x0D
34203db220SDimitris Papastamos #define WM8991_ADC_CTRL                         0x0E
35203db220SDimitris Papastamos #define WM8991_LEFT_ADC_DIGITAL_VOLUME          0x0F
36203db220SDimitris Papastamos #define WM8991_RIGHT_ADC_DIGITAL_VOLUME         0x10
37203db220SDimitris Papastamos #define WM8991_GPIO_CTRL_1                      0x12
38203db220SDimitris Papastamos #define WM8991_GPIO1_GPIO2                      0x13
39203db220SDimitris Papastamos #define WM8991_GPIO3_GPIO4                      0x14
40203db220SDimitris Papastamos #define WM8991_GPIO5_GPIO6                      0x15
41203db220SDimitris Papastamos #define WM8991_GPIOCTRL_2                       0x16
42203db220SDimitris Papastamos #define WM8991_GPIO_POL                         0x17
43203db220SDimitris Papastamos #define WM8991_LEFT_LINE_INPUT_1_2_VOLUME       0x18
44203db220SDimitris Papastamos #define WM8991_LEFT_LINE_INPUT_3_4_VOLUME       0x19
45203db220SDimitris Papastamos #define WM8991_RIGHT_LINE_INPUT_1_2_VOLUME      0x1A
46203db220SDimitris Papastamos #define WM8991_RIGHT_LINE_INPUT_3_4_VOLUME      0x1B
47203db220SDimitris Papastamos #define WM8991_LEFT_OUTPUT_VOLUME               0x1C
48203db220SDimitris Papastamos #define WM8991_RIGHT_OUTPUT_VOLUME              0x1D
49203db220SDimitris Papastamos #define WM8991_LINE_OUTPUTS_VOLUME              0x1E
50203db220SDimitris Papastamos #define WM8991_OUT3_4_VOLUME                    0x1F
51203db220SDimitris Papastamos #define WM8991_LEFT_OPGA_VOLUME                 0x20
52203db220SDimitris Papastamos #define WM8991_RIGHT_OPGA_VOLUME                0x21
53203db220SDimitris Papastamos #define WM8991_SPEAKER_VOLUME                   0x22
54203db220SDimitris Papastamos #define WM8991_CLASSD1                          0x23
55203db220SDimitris Papastamos #define WM8991_CLASSD3                          0x25
56203db220SDimitris Papastamos #define WM8991_INPUT_MIXER1                     0x27
57203db220SDimitris Papastamos #define WM8991_INPUT_MIXER2                     0x28
58203db220SDimitris Papastamos #define WM8991_INPUT_MIXER3                     0x29
59203db220SDimitris Papastamos #define WM8991_INPUT_MIXER4                     0x2A
60203db220SDimitris Papastamos #define WM8991_INPUT_MIXER5                     0x2B
61203db220SDimitris Papastamos #define WM8991_INPUT_MIXER6                     0x2C
62203db220SDimitris Papastamos #define WM8991_OUTPUT_MIXER1                    0x2D
63203db220SDimitris Papastamos #define WM8991_OUTPUT_MIXER2                    0x2E
64203db220SDimitris Papastamos #define WM8991_OUTPUT_MIXER3                    0x2F
65203db220SDimitris Papastamos #define WM8991_OUTPUT_MIXER4                    0x30
66203db220SDimitris Papastamos #define WM8991_OUTPUT_MIXER5                    0x31
67203db220SDimitris Papastamos #define WM8991_OUTPUT_MIXER6                    0x32
68203db220SDimitris Papastamos #define WM8991_OUT3_4_MIXER                     0x33
69203db220SDimitris Papastamos #define WM8991_LINE_MIXER1                      0x34
70203db220SDimitris Papastamos #define WM8991_LINE_MIXER2                      0x35
71203db220SDimitris Papastamos #define WM8991_SPEAKER_MIXER                    0x36
72203db220SDimitris Papastamos #define WM8991_ADDITIONAL_CONTROL               0x37
73203db220SDimitris Papastamos #define WM8991_ANTIPOP1                         0x38
74203db220SDimitris Papastamos #define WM8991_ANTIPOP2                         0x39
75203db220SDimitris Papastamos #define WM8991_MICBIAS                          0x3A
76203db220SDimitris Papastamos #define WM8991_PLL1                             0x3C
77203db220SDimitris Papastamos #define WM8991_PLL2                             0x3D
78203db220SDimitris Papastamos #define WM8991_PLL3                             0x3E
79203db220SDimitris Papastamos #define WM8991_INTDRIVBITS			0x3F
80203db220SDimitris Papastamos 
81203db220SDimitris Papastamos #define WM8991_REGISTER_COUNT                   60
82203db220SDimitris Papastamos #define WM8991_MAX_REGISTER                     0x3F
83203db220SDimitris Papastamos 
84203db220SDimitris Papastamos /*
85203db220SDimitris Papastamos  * Field Definitions.
86203db220SDimitris Papastamos  */
87203db220SDimitris Papastamos 
88203db220SDimitris Papastamos /*
89203db220SDimitris Papastamos  * R0 (0x00) - Reset
90203db220SDimitris Papastamos  */
91203db220SDimitris Papastamos #define WM8991_SW_RESET_CHIP_ID_MASK            0xFFFF  /* SW_RESET_CHIP_ID - [15:0] */
92203db220SDimitris Papastamos 
93203db220SDimitris Papastamos /*
94203db220SDimitris Papastamos  * R1 (0x01) - Power Management (1)
95203db220SDimitris Papastamos  */
96203db220SDimitris Papastamos #define WM8991_SPK_ENA                          0x1000  /* SPK_ENA */
97203db220SDimitris Papastamos #define WM8991_SPK_ENA_BIT			12
98203db220SDimitris Papastamos #define WM8991_OUT3_ENA                         0x0800  /* OUT3_ENA */
99203db220SDimitris Papastamos #define WM8991_OUT3_ENA_BIT			11
100203db220SDimitris Papastamos #define WM8991_OUT4_ENA                         0x0400  /* OUT4_ENA */
101203db220SDimitris Papastamos #define WM8991_OUT4_ENA_BIT			10
102203db220SDimitris Papastamos #define WM8991_LOUT_ENA                         0x0200  /* LOUT_ENA */
103203db220SDimitris Papastamos #define WM8991_LOUT_ENA_BIT			9
104203db220SDimitris Papastamos #define WM8991_ROUT_ENA                         0x0100  /* ROUT_ENA */
105203db220SDimitris Papastamos #define WM8991_ROUT_ENA_BIT			8
106203db220SDimitris Papastamos #define WM8991_MICBIAS_ENA                      0x0010  /* MICBIAS_ENA */
107203db220SDimitris Papastamos #define WM8991_MICBIAS_ENA_BIT			4
108203db220SDimitris Papastamos #define WM8991_VMID_MODE_MASK                   0x0006  /* VMID_MODE - [2:1] */
109203db220SDimitris Papastamos #define WM8991_VREF_ENA                         0x0001  /* VREF_ENA */
110203db220SDimitris Papastamos #define WM8991_VREF_ENA_BIT			0
111203db220SDimitris Papastamos 
112203db220SDimitris Papastamos /*
113203db220SDimitris Papastamos  * R2 (0x02) - Power Management (2)
114203db220SDimitris Papastamos  */
115203db220SDimitris Papastamos #define WM8991_PLL_ENA                          0x8000  /* PLL_ENA */
116203db220SDimitris Papastamos #define WM8991_PLL_ENA_BIT			15
117203db220SDimitris Papastamos #define WM8991_TSHUT_ENA                        0x4000  /* TSHUT_ENA */
118203db220SDimitris Papastamos #define WM8991_TSHUT_ENA_BIT			14
119203db220SDimitris Papastamos #define WM8991_TSHUT_OPDIS                      0x2000  /* TSHUT_OPDIS */
120203db220SDimitris Papastamos #define WM8991_TSHUT_OPDIS_BIT			13
121203db220SDimitris Papastamos #define WM8991_OPCLK_ENA                        0x0800  /* OPCLK_ENA */
122203db220SDimitris Papastamos #define WM8991_OPCLK_ENA_BIT			11
123203db220SDimitris Papastamos #define WM8991_AINL_ENA                         0x0200  /* AINL_ENA */
124203db220SDimitris Papastamos #define WM8991_AINL_ENA_BIT			9
125203db220SDimitris Papastamos #define WM8991_AINR_ENA                         0x0100  /* AINR_ENA */
126203db220SDimitris Papastamos #define WM8991_AINR_ENA_BIT			8
127203db220SDimitris Papastamos #define WM8991_LIN34_ENA                        0x0080  /* LIN34_ENA */
128203db220SDimitris Papastamos #define WM8991_LIN34_ENA_BIT			7
129203db220SDimitris Papastamos #define WM8991_LIN12_ENA                        0x0040  /* LIN12_ENA */
130203db220SDimitris Papastamos #define WM8991_LIN12_ENA_BIT			6
131203db220SDimitris Papastamos #define WM8991_RIN34_ENA                        0x0020  /* RIN34_ENA */
132203db220SDimitris Papastamos #define WM8991_RIN34_ENA_BIT			5
133203db220SDimitris Papastamos #define WM8991_RIN12_ENA                        0x0010  /* RIN12_ENA */
134203db220SDimitris Papastamos #define WM8991_RIN12_ENA_BIT			4
135203db220SDimitris Papastamos #define WM8991_ADCL_ENA                         0x0002  /* ADCL_ENA */
136203db220SDimitris Papastamos #define WM8991_ADCL_ENA_BIT			1
137203db220SDimitris Papastamos #define WM8991_ADCR_ENA                         0x0001  /* ADCR_ENA */
138203db220SDimitris Papastamos #define WM8991_ADCR_ENA_BIT			0
139203db220SDimitris Papastamos 
140203db220SDimitris Papastamos /*
141203db220SDimitris Papastamos  * R3 (0x03) - Power Management (3)
142203db220SDimitris Papastamos  */
143203db220SDimitris Papastamos #define WM8991_LON_ENA                          0x2000  /* LON_ENA */
144203db220SDimitris Papastamos #define WM8991_LON_ENA_BIT			13
145203db220SDimitris Papastamos #define WM8991_LOP_ENA                          0x1000  /* LOP_ENA */
146203db220SDimitris Papastamos #define WM8991_LOP_ENA_BIT			12
147203db220SDimitris Papastamos #define WM8991_RON_ENA                          0x0800  /* RON_ENA */
148203db220SDimitris Papastamos #define WM8991_RON_ENA_BIT			11
149203db220SDimitris Papastamos #define WM8991_ROP_ENA                          0x0400  /* ROP_ENA */
150203db220SDimitris Papastamos #define WM8991_ROP_ENA_BIT			10
151203db220SDimitris Papastamos #define WM8991_LOPGA_ENA                        0x0080  /* LOPGA_ENA */
152203db220SDimitris Papastamos #define WM8991_LOPGA_ENA_BIT			7
153203db220SDimitris Papastamos #define WM8991_ROPGA_ENA                        0x0040  /* ROPGA_ENA */
154203db220SDimitris Papastamos #define WM8991_ROPGA_ENA_BIT			6
155203db220SDimitris Papastamos #define WM8991_LOMIX_ENA                        0x0020  /* LOMIX_ENA */
156203db220SDimitris Papastamos #define WM8991_LOMIX_ENA_BIT			5
157203db220SDimitris Papastamos #define WM8991_ROMIX_ENA                        0x0010  /* ROMIX_ENA */
158203db220SDimitris Papastamos #define WM8991_ROMIX_ENA_BIT			4
159203db220SDimitris Papastamos #define WM8991_DACL_ENA                         0x0002  /* DACL_ENA */
160203db220SDimitris Papastamos #define WM8991_DACL_ENA_BIT			1
161203db220SDimitris Papastamos #define WM8991_DACR_ENA                         0x0001  /* DACR_ENA */
162203db220SDimitris Papastamos #define WM8991_DACR_ENA_BIT			0
163203db220SDimitris Papastamos 
164203db220SDimitris Papastamos /*
165203db220SDimitris Papastamos  * R4 (0x04) - Audio Interface (1)
166203db220SDimitris Papastamos  */
167203db220SDimitris Papastamos #define WM8991_AIFADCL_SRC                      0x8000  /* AIFADCL_SRC */
168203db220SDimitris Papastamos #define WM8991_AIFADCR_SRC                      0x4000  /* AIFADCR_SRC */
169203db220SDimitris Papastamos #define WM8991_AIFADC_TDM                       0x2000  /* AIFADC_TDM */
170203db220SDimitris Papastamos #define WM8991_AIFADC_TDM_CHAN                  0x1000  /* AIFADC_TDM_CHAN */
171203db220SDimitris Papastamos #define WM8991_AIF_BCLK_INV                     0x0100  /* AIF_BCLK_INV */
172203db220SDimitris Papastamos #define WM8991_AIF_LRCLK_INV                    0x0080  /* AIF_LRCLK_INV */
173203db220SDimitris Papastamos #define WM8991_AIF_WL_MASK                      0x0060  /* AIF_WL - [6:5] */
174203db220SDimitris Papastamos #define WM8991_AIF_WL_16BITS			(0 << 5)
175203db220SDimitris Papastamos #define WM8991_AIF_WL_20BITS			(1 << 5)
176203db220SDimitris Papastamos #define WM8991_AIF_WL_24BITS			(2 << 5)
177203db220SDimitris Papastamos #define WM8991_AIF_WL_32BITS			(3 << 5)
178203db220SDimitris Papastamos #define WM8991_AIF_FMT_MASK                     0x0018  /* AIF_FMT - [4:3] */
179203db220SDimitris Papastamos #define WM8991_AIF_TMF_RIGHTJ			(0 << 3)
180203db220SDimitris Papastamos #define WM8991_AIF_TMF_LEFTJ			(1 << 3)
181203db220SDimitris Papastamos #define WM8991_AIF_TMF_I2S			(2 << 3)
182203db220SDimitris Papastamos #define WM8991_AIF_TMF_DSP			(3 << 3)
183203db220SDimitris Papastamos 
184203db220SDimitris Papastamos /*
185203db220SDimitris Papastamos  * R5 (0x05) - Audio Interface (2)
186203db220SDimitris Papastamos  */
187203db220SDimitris Papastamos #define WM8991_DACL_SRC                         0x8000  /* DACL_SRC */
188203db220SDimitris Papastamos #define WM8991_DACR_SRC                         0x4000  /* DACR_SRC */
189203db220SDimitris Papastamos #define WM8991_AIFDAC_TDM                       0x2000  /* AIFDAC_TDM */
190203db220SDimitris Papastamos #define WM8991_AIFDAC_TDM_CHAN                  0x1000  /* AIFDAC_TDM_CHAN */
191203db220SDimitris Papastamos #define WM8991_DAC_BOOST_MASK                   0x0C00  /* DAC_BOOST - [11:10] */
192203db220SDimitris Papastamos #define WM8991_DAC_COMP                         0x0010  /* DAC_COMP */
193203db220SDimitris Papastamos #define WM8991_DAC_COMPMODE                     0x0008  /* DAC_COMPMODE */
194203db220SDimitris Papastamos #define WM8991_ADC_COMP                         0x0004  /* ADC_COMP */
195203db220SDimitris Papastamos #define WM8991_ADC_COMPMODE                     0x0002  /* ADC_COMPMODE */
196203db220SDimitris Papastamos #define WM8991_LOOPBACK                         0x0001  /* LOOPBACK */
197203db220SDimitris Papastamos 
198203db220SDimitris Papastamos /*
199203db220SDimitris Papastamos  * R6 (0x06) - Clocking (1)
200203db220SDimitris Papastamos  */
201203db220SDimitris Papastamos #define WM8991_TOCLK_RATE                       0x8000  /* TOCLK_RATE */
202203db220SDimitris Papastamos #define WM8991_TOCLK_ENA                        0x4000  /* TOCLK_ENA */
203203db220SDimitris Papastamos #define WM8991_OPCLKDIV_MASK                    0x1E00  /* OPCLKDIV - [12:9] */
204203db220SDimitris Papastamos #define WM8991_DCLKDIV_MASK                     0x01C0  /* DCLKDIV - [8:6] */
205203db220SDimitris Papastamos #define WM8991_BCLK_DIV_MASK                    0x001E  /* BCLK_DIV - [4:1] */
206203db220SDimitris Papastamos #define WM8991_BCLK_DIV_1			(0x0 << 1)
207203db220SDimitris Papastamos #define WM8991_BCLK_DIV_1_5			(0x1 << 1)
208203db220SDimitris Papastamos #define WM8991_BCLK_DIV_2			(0x2 << 1)
209203db220SDimitris Papastamos #define WM8991_BCLK_DIV_3			(0x3 << 1)
210203db220SDimitris Papastamos #define WM8991_BCLK_DIV_4			(0x4 << 1)
211203db220SDimitris Papastamos #define WM8991_BCLK_DIV_5_5			(0x5 << 1)
212203db220SDimitris Papastamos #define WM8991_BCLK_DIV_6			(0x6 << 1)
213203db220SDimitris Papastamos #define WM8991_BCLK_DIV_8			(0x7 << 1)
214203db220SDimitris Papastamos #define WM8991_BCLK_DIV_11			(0x8 << 1)
215203db220SDimitris Papastamos #define WM8991_BCLK_DIV_12			(0x9 << 1)
216203db220SDimitris Papastamos #define WM8991_BCLK_DIV_16			(0xA << 1)
217203db220SDimitris Papastamos #define WM8991_BCLK_DIV_22			(0xB << 1)
218203db220SDimitris Papastamos #define WM8991_BCLK_DIV_24			(0xC << 1)
219203db220SDimitris Papastamos #define WM8991_BCLK_DIV_32			(0xD << 1)
220203db220SDimitris Papastamos #define WM8991_BCLK_DIV_44			(0xE << 1)
221203db220SDimitris Papastamos #define WM8991_BCLK_DIV_48			(0xF << 1)
222203db220SDimitris Papastamos 
223203db220SDimitris Papastamos /*
224203db220SDimitris Papastamos  * R7 (0x07) - Clocking (2)
225203db220SDimitris Papastamos  */
226203db220SDimitris Papastamos #define WM8991_MCLK_SRC                         0x8000  /* MCLK_SRC */
227203db220SDimitris Papastamos #define WM8991_SYSCLK_SRC                       0x4000  /* SYSCLK_SRC */
228203db220SDimitris Papastamos #define WM8991_CLK_FORCE                        0x2000  /* CLK_FORCE */
229203db220SDimitris Papastamos #define WM8991_MCLK_DIV_MASK                    0x1800  /* MCLK_DIV - [12:11] */
230203db220SDimitris Papastamos #define WM8991_MCLK_DIV_1			(0 << 11)
231203db220SDimitris Papastamos #define WM8991_MCLK_DIV_2			( 2 << 11)
232203db220SDimitris Papastamos #define WM8991_MCLK_INV                         0x0400  /* MCLK_INV */
233203db220SDimitris Papastamos #define WM8991_ADC_CLKDIV_MASK                  0x00E0  /* ADC_CLKDIV - [7:5] */
234203db220SDimitris Papastamos #define WM8991_ADC_CLKDIV_1			(0 << 5)
235203db220SDimitris Papastamos #define WM8991_ADC_CLKDIV_1_5			(1 << 5)
236203db220SDimitris Papastamos #define WM8991_ADC_CLKDIV_2			(2 << 5)
237203db220SDimitris Papastamos #define WM8991_ADC_CLKDIV_3			(3 << 5)
238203db220SDimitris Papastamos #define WM8991_ADC_CLKDIV_4			(4 << 5)
239203db220SDimitris Papastamos #define WM8991_ADC_CLKDIV_5_5			(5 << 5)
240203db220SDimitris Papastamos #define WM8991_ADC_CLKDIV_6			(6 << 5)
241203db220SDimitris Papastamos #define WM8991_DAC_CLKDIV_MASK                  0x001C  /* DAC_CLKDIV - [4:2] */
242203db220SDimitris Papastamos #define WM8991_DAC_CLKDIV_1			(0 << 2)
243203db220SDimitris Papastamos #define WM8991_DAC_CLKDIV_1_5			(1 << 2)
244203db220SDimitris Papastamos #define WM8991_DAC_CLKDIV_2			(2 << 2)
245203db220SDimitris Papastamos #define WM8991_DAC_CLKDIV_3			(3 << 2)
246203db220SDimitris Papastamos #define WM8991_DAC_CLKDIV_4			(4 << 2)
247203db220SDimitris Papastamos #define WM8991_DAC_CLKDIV_5_5			(5 << 2)
248203db220SDimitris Papastamos #define WM8991_DAC_CLKDIV_6			(6 << 2)
249203db220SDimitris Papastamos 
250203db220SDimitris Papastamos /*
251203db220SDimitris Papastamos  * R8 (0x08) - Audio Interface (3)
252203db220SDimitris Papastamos  */
253203db220SDimitris Papastamos #define WM8991_AIF_MSTR1                        0x8000  /* AIF_MSTR1 */
254203db220SDimitris Papastamos #define WM8991_AIF_MSTR2                        0x4000  /* AIF_MSTR2 */
255203db220SDimitris Papastamos #define WM8991_AIF_SEL                          0x2000  /* AIF_SEL */
256203db220SDimitris Papastamos #define WM8991_ADCLRC_DIR                       0x0800  /* ADCLRC_DIR */
257203db220SDimitris Papastamos #define WM8991_ADCLRC_RATE_MASK                 0x07FF  /* ADCLRC_RATE - [10:0] */
258203db220SDimitris Papastamos 
259203db220SDimitris Papastamos /*
260203db220SDimitris Papastamos  * R9 (0x09) - Audio Interface (4)
261203db220SDimitris Papastamos  */
262203db220SDimitris Papastamos #define WM8991_ALRCGPIO1                        0x8000  /* ALRCGPIO1 */
263203db220SDimitris Papastamos #define WM8991_ALRCBGPIO6                       0x4000  /* ALRCBGPIO6 */
264203db220SDimitris Papastamos #define WM8991_AIF_TRIS                         0x2000  /* AIF_TRIS */
265203db220SDimitris Papastamos #define WM8991_DACLRC_DIR                       0x0800  /* DACLRC_DIR */
266203db220SDimitris Papastamos #define WM8991_DACLRC_RATE_MASK                 0x07FF  /* DACLRC_RATE - [10:0] */
267203db220SDimitris Papastamos 
268203db220SDimitris Papastamos /*
269203db220SDimitris Papastamos  * R10 (0x0A) - DAC CTRL
270203db220SDimitris Papastamos  */
271203db220SDimitris Papastamos #define WM8991_AIF_LRCLKRATE                    0x0400  /* AIF_LRCLKRATE */
272203db220SDimitris Papastamos #define WM8991_DAC_MONO                         0x0200  /* DAC_MONO */
273203db220SDimitris Papastamos #define WM8991_DAC_SB_FILT                      0x0100  /* DAC_SB_FILT */
274203db220SDimitris Papastamos #define WM8991_DAC_MUTERATE                     0x0080  /* DAC_MUTERATE */
275203db220SDimitris Papastamos #define WM8991_DAC_MUTEMODE                     0x0040  /* DAC_MUTEMODE */
276203db220SDimitris Papastamos #define WM8991_DEEMP_MASK                       0x0030  /* DEEMP - [5:4] */
277203db220SDimitris Papastamos #define WM8991_DAC_MUTE                         0x0004  /* DAC_MUTE */
278203db220SDimitris Papastamos #define WM8991_DACL_DATINV                      0x0002  /* DACL_DATINV */
279203db220SDimitris Papastamos #define WM8991_DACR_DATINV                      0x0001  /* DACR_DATINV */
280203db220SDimitris Papastamos 
281203db220SDimitris Papastamos /*
282203db220SDimitris Papastamos  * R11 (0x0B) - Left DAC Digital Volume
283203db220SDimitris Papastamos  */
284203db220SDimitris Papastamos #define WM8991_DAC_VU                           0x0100  /* DAC_VU */
285203db220SDimitris Papastamos #define WM8991_DACL_VOL_MASK                    0x00FF  /* DACL_VOL - [7:0] */
286203db220SDimitris Papastamos #define WM8991_DACL_VOL_SHIFT			0
287203db220SDimitris Papastamos /*
288203db220SDimitris Papastamos  * R12 (0x0C) - Right DAC Digital Volume
289203db220SDimitris Papastamos  */
290203db220SDimitris Papastamos #define WM8991_DAC_VU                           0x0100  /* DAC_VU */
291203db220SDimitris Papastamos #define WM8991_DACR_VOL_MASK                    0x00FF  /* DACR_VOL - [7:0] */
292203db220SDimitris Papastamos #define WM8991_DACR_VOL_SHIFT			0
293203db220SDimitris Papastamos /*
294203db220SDimitris Papastamos  * R13 (0x0D) - Digital Side Tone
295203db220SDimitris Papastamos  */
296203db220SDimitris Papastamos #define WM8991_ADCL_DAC_SVOL_MASK               0x0F  /* ADCL_DAC_SVOL - [12:9] */
297203db220SDimitris Papastamos #define WM8991_ADCL_DAC_SVOL_SHIFT		9
298203db220SDimitris Papastamos #define WM8991_ADCR_DAC_SVOL_MASK               0x0F  /* ADCR_DAC_SVOL - [8:5] */
299203db220SDimitris Papastamos #define WM8991_ADCR_DAC_SVOL_SHIFT		5
300203db220SDimitris Papastamos #define WM8991_ADC_TO_DACL_MASK                 0x03  /* ADC_TO_DACL - [3:2] */
301203db220SDimitris Papastamos #define WM8991_ADC_TO_DACL_SHIFT		2
302203db220SDimitris Papastamos #define WM8991_ADC_TO_DACR_MASK                 0x03  /* ADC_TO_DACR - [1:0] */
303203db220SDimitris Papastamos #define WM8991_ADC_TO_DACR_SHIFT		0
304203db220SDimitris Papastamos 
305203db220SDimitris Papastamos /*
306203db220SDimitris Papastamos  * R14 (0x0E) - ADC CTRL
307203db220SDimitris Papastamos  */
308203db220SDimitris Papastamos #define WM8991_ADC_HPF_ENA                      0x0100  /* ADC_HPF_ENA */
309203db220SDimitris Papastamos #define WM8991_ADC_HPF_ENA_BIT			8
310203db220SDimitris Papastamos #define WM8991_ADC_HPF_CUT_MASK                 0x03  /* ADC_HPF_CUT - [6:5] */
311203db220SDimitris Papastamos #define WM8991_ADC_HPF_CUT_SHIFT		5
312203db220SDimitris Papastamos #define WM8991_ADCL_DATINV                      0x0002  /* ADCL_DATINV */
313203db220SDimitris Papastamos #define WM8991_ADCL_DATINV_BIT			1
314203db220SDimitris Papastamos #define WM8991_ADCR_DATINV                      0x0001  /* ADCR_DATINV */
315203db220SDimitris Papastamos #define WM8991_ADCR_DATINV_BIT			0
316203db220SDimitris Papastamos 
317203db220SDimitris Papastamos /*
318203db220SDimitris Papastamos  * R15 (0x0F) - Left ADC Digital Volume
319203db220SDimitris Papastamos  */
320203db220SDimitris Papastamos #define WM8991_ADC_VU                           0x0100  /* ADC_VU */
321203db220SDimitris Papastamos #define WM8991_ADCL_VOL_MASK                    0x00FF  /* ADCL_VOL - [7:0] */
322203db220SDimitris Papastamos #define WM8991_ADCL_VOL_SHIFT			0
323203db220SDimitris Papastamos 
324203db220SDimitris Papastamos /*
325203db220SDimitris Papastamos  * R16 (0x10) - Right ADC Digital Volume
326203db220SDimitris Papastamos  */
327203db220SDimitris Papastamos #define WM8991_ADC_VU                           0x0100  /* ADC_VU */
328203db220SDimitris Papastamos #define WM8991_ADCR_VOL_MASK                    0x00FF  /* ADCR_VOL - [7:0] */
329203db220SDimitris Papastamos #define WM8991_ADCR_VOL_SHIFT			0
330203db220SDimitris Papastamos 
331203db220SDimitris Papastamos /*
332203db220SDimitris Papastamos  * R18 (0x12) - GPIO CTRL 1
333203db220SDimitris Papastamos  */
334203db220SDimitris Papastamos #define WM8991_IRQ                              0x1000  /* IRQ */
335203db220SDimitris Papastamos #define WM8991_TEMPOK                           0x0800  /* TEMPOK */
336203db220SDimitris Papastamos #define WM8991_MICSHRT                          0x0400  /* MICSHRT */
337203db220SDimitris Papastamos #define WM8991_MICDET                           0x0200  /* MICDET */
338203db220SDimitris Papastamos #define WM8991_PLL_LCK                          0x0100  /* PLL_LCK */
339203db220SDimitris Papastamos #define WM8991_GPI8_STATUS                      0x0080  /* GPI8_STATUS */
340203db220SDimitris Papastamos #define WM8991_GPI7_STATUS                      0x0040  /* GPI7_STATUS */
341203db220SDimitris Papastamos #define WM8991_GPIO6_STATUS                     0x0020  /* GPIO6_STATUS */
342203db220SDimitris Papastamos #define WM8991_GPIO5_STATUS                     0x0010  /* GPIO5_STATUS */
343203db220SDimitris Papastamos #define WM8991_GPIO4_STATUS                     0x0008  /* GPIO4_STATUS */
344203db220SDimitris Papastamos #define WM8991_GPIO3_STATUS                     0x0004  /* GPIO3_STATUS */
345203db220SDimitris Papastamos #define WM8991_GPIO2_STATUS                     0x0002  /* GPIO2_STATUS */
346203db220SDimitris Papastamos #define WM8991_GPIO1_STATUS                     0x0001  /* GPIO1_STATUS */
347203db220SDimitris Papastamos 
348203db220SDimitris Papastamos /*
349203db220SDimitris Papastamos  * R19 (0x13) - GPIO1 & GPIO2
350203db220SDimitris Papastamos  */
351203db220SDimitris Papastamos #define WM8991_GPIO2_DEB_ENA                    0x8000  /* GPIO2_DEB_ENA */
352203db220SDimitris Papastamos #define WM8991_GPIO2_IRQ_ENA                    0x4000  /* GPIO2_IRQ_ENA */
353203db220SDimitris Papastamos #define WM8991_GPIO2_PU                         0x2000  /* GPIO2_PU */
354203db220SDimitris Papastamos #define WM8991_GPIO2_PD                         0x1000  /* GPIO2_PD */
355203db220SDimitris Papastamos #define WM8991_GPIO2_SEL_MASK                   0x0F00  /* GPIO2_SEL - [11:8] */
356203db220SDimitris Papastamos #define WM8991_GPIO1_DEB_ENA                    0x0080  /* GPIO1_DEB_ENA */
357203db220SDimitris Papastamos #define WM8991_GPIO1_IRQ_ENA                    0x0040  /* GPIO1_IRQ_ENA */
358203db220SDimitris Papastamos #define WM8991_GPIO1_PU                         0x0020  /* GPIO1_PU */
359203db220SDimitris Papastamos #define WM8991_GPIO1_PD                         0x0010  /* GPIO1_PD */
360203db220SDimitris Papastamos #define WM8991_GPIO1_SEL_MASK                   0x000F  /* GPIO1_SEL - [3:0] */
361203db220SDimitris Papastamos 
362203db220SDimitris Papastamos /*
363203db220SDimitris Papastamos  * R20 (0x14) - GPIO3 & GPIO4
364203db220SDimitris Papastamos  */
365203db220SDimitris Papastamos #define WM8991_GPIO4_DEB_ENA                    0x8000  /* GPIO4_DEB_ENA */
366203db220SDimitris Papastamos #define WM8991_GPIO4_IRQ_ENA                    0x4000  /* GPIO4_IRQ_ENA */
367203db220SDimitris Papastamos #define WM8991_GPIO4_PU                         0x2000  /* GPIO4_PU */
368203db220SDimitris Papastamos #define WM8991_GPIO4_PD                         0x1000  /* GPIO4_PD */
369203db220SDimitris Papastamos #define WM8991_GPIO4_SEL_MASK                   0x0F00  /* GPIO4_SEL - [11:8] */
370203db220SDimitris Papastamos #define WM8991_GPIO3_DEB_ENA                    0x0080  /* GPIO3_DEB_ENA */
371203db220SDimitris Papastamos #define WM8991_GPIO3_IRQ_ENA                    0x0040  /* GPIO3_IRQ_ENA */
372203db220SDimitris Papastamos #define WM8991_GPIO3_PU                         0x0020  /* GPIO3_PU */
373203db220SDimitris Papastamos #define WM8991_GPIO3_PD                         0x0010  /* GPIO3_PD */
374203db220SDimitris Papastamos #define WM8991_GPIO3_SEL_MASK                   0x000F  /* GPIO3_SEL - [3:0] */
375203db220SDimitris Papastamos 
376203db220SDimitris Papastamos /*
377203db220SDimitris Papastamos  * R21 (0x15) - GPIO5 & GPIO6
378203db220SDimitris Papastamos  */
379203db220SDimitris Papastamos #define WM8991_GPIO6_DEB_ENA                    0x8000  /* GPIO6_DEB_ENA */
380203db220SDimitris Papastamos #define WM8991_GPIO6_IRQ_ENA                    0x4000  /* GPIO6_IRQ_ENA */
381203db220SDimitris Papastamos #define WM8991_GPIO6_PU                         0x2000  /* GPIO6_PU */
382203db220SDimitris Papastamos #define WM8991_GPIO6_PD                         0x1000  /* GPIO6_PD */
383203db220SDimitris Papastamos #define WM8991_GPIO6_SEL_MASK                   0x0F00  /* GPIO6_SEL - [11:8] */
384203db220SDimitris Papastamos #define WM8991_GPIO5_DEB_ENA                    0x0080  /* GPIO5_DEB_ENA */
385203db220SDimitris Papastamos #define WM8991_GPIO5_IRQ_ENA                    0x0040  /* GPIO5_IRQ_ENA */
386203db220SDimitris Papastamos #define WM8991_GPIO5_PU                         0x0020  /* GPIO5_PU */
387203db220SDimitris Papastamos #define WM8991_GPIO5_PD                         0x0010  /* GPIO5_PD */
388203db220SDimitris Papastamos #define WM8991_GPIO5_SEL_MASK                   0x000F  /* GPIO5_SEL - [3:0] */
389203db220SDimitris Papastamos 
390203db220SDimitris Papastamos /*
391203db220SDimitris Papastamos  * R22 (0x16) - GPIOCTRL 2
392203db220SDimitris Papastamos  */
393203db220SDimitris Papastamos #define WM8991_RD_3W_ENA                        0x8000  /* RD_3W_ENA */
394203db220SDimitris Papastamos #define WM8991_MODE_3W4W                        0x4000  /* MODE_3W4W */
395203db220SDimitris Papastamos #define WM8991_TEMPOK_IRQ_ENA                   0x0800  /* TEMPOK_IRQ_ENA */
396203db220SDimitris Papastamos #define WM8991_MICSHRT_IRQ_ENA                  0x0400  /* MICSHRT_IRQ_ENA */
397203db220SDimitris Papastamos #define WM8991_MICDET_IRQ_ENA                   0x0200  /* MICDET_IRQ_ENA */
398203db220SDimitris Papastamos #define WM8991_PLL_LCK_IRQ_ENA                  0x0100  /* PLL_LCK_IRQ_ENA */
399203db220SDimitris Papastamos #define WM8991_GPI8_DEB_ENA                     0x0080  /* GPI8_DEB_ENA */
400203db220SDimitris Papastamos #define WM8991_GPI8_IRQ_ENA                     0x0040  /* GPI8_IRQ_ENA */
401203db220SDimitris Papastamos #define WM8991_GPI8_ENA                         0x0010  /* GPI8_ENA */
402203db220SDimitris Papastamos #define WM8991_GPI7_DEB_ENA                     0x0008  /* GPI7_DEB_ENA */
403203db220SDimitris Papastamos #define WM8991_GPI7_IRQ_ENA                     0x0004  /* GPI7_IRQ_ENA */
404203db220SDimitris Papastamos #define WM8991_GPI7_ENA                         0x0001  /* GPI7_ENA */
405203db220SDimitris Papastamos 
406203db220SDimitris Papastamos /*
407203db220SDimitris Papastamos  * R23 (0x17) - GPIO_POL
408203db220SDimitris Papastamos  */
409203db220SDimitris Papastamos #define WM8991_IRQ_INV                          0x1000  /* IRQ_INV */
410203db220SDimitris Papastamos #define WM8991_TEMPOK_POL                       0x0800  /* TEMPOK_POL */
411203db220SDimitris Papastamos #define WM8991_MICSHRT_POL                      0x0400  /* MICSHRT_POL */
412203db220SDimitris Papastamos #define WM8991_MICDET_POL                       0x0200  /* MICDET_POL */
413203db220SDimitris Papastamos #define WM8991_PLL_LCK_POL                      0x0100  /* PLL_LCK_POL */
414203db220SDimitris Papastamos #define WM8991_GPI8_POL                         0x0080  /* GPI8_POL */
415203db220SDimitris Papastamos #define WM8991_GPI7_POL                         0x0040  /* GPI7_POL */
416203db220SDimitris Papastamos #define WM8991_GPIO6_POL                        0x0020  /* GPIO6_POL */
417203db220SDimitris Papastamos #define WM8991_GPIO5_POL                        0x0010  /* GPIO5_POL */
418203db220SDimitris Papastamos #define WM8991_GPIO4_POL                        0x0008  /* GPIO4_POL */
419203db220SDimitris Papastamos #define WM8991_GPIO3_POL                        0x0004  /* GPIO3_POL */
420203db220SDimitris Papastamos #define WM8991_GPIO2_POL                        0x0002  /* GPIO2_POL */
421203db220SDimitris Papastamos #define WM8991_GPIO1_POL                        0x0001  /* GPIO1_POL */
422203db220SDimitris Papastamos 
423203db220SDimitris Papastamos /*
424203db220SDimitris Papastamos  * R24 (0x18) - Left Line Input 1&2 Volume
425203db220SDimitris Papastamos  */
426203db220SDimitris Papastamos #define WM8991_IPVU                             0x0100  /* IPVU */
427203db220SDimitris Papastamos #define WM8991_LI12MUTE                         0x0080  /* LI12MUTE */
428203db220SDimitris Papastamos #define WM8991_LI12MUTE_BIT			7
429203db220SDimitris Papastamos #define WM8991_LI12ZC                           0x0040  /* LI12ZC */
430203db220SDimitris Papastamos #define WM8991_LI12ZC_BIT			6
431203db220SDimitris Papastamos #define WM8991_LIN12VOL_MASK                    0x001F  /* LIN12VOL - [4:0] */
432203db220SDimitris Papastamos #define WM8991_LIN12VOL_SHIFT			0
433203db220SDimitris Papastamos /*
434203db220SDimitris Papastamos  * R25 (0x19) - Left Line Input 3&4 Volume
435203db220SDimitris Papastamos  */
436203db220SDimitris Papastamos #define WM8991_IPVU                             0x0100  /* IPVU */
437203db220SDimitris Papastamos #define WM8991_LI34MUTE                         0x0080  /* LI34MUTE */
438203db220SDimitris Papastamos #define WM8991_LI34MUTE_BIT			7
439203db220SDimitris Papastamos #define WM8991_LI34ZC                           0x0040  /* LI34ZC */
440203db220SDimitris Papastamos #define WM8991_LI34ZC_BIT			6
441203db220SDimitris Papastamos #define WM8991_LIN34VOL_MASK                    0x001F  /* LIN34VOL - [4:0] */
442203db220SDimitris Papastamos #define WM8991_LIN34VOL_SHIFT			0
443203db220SDimitris Papastamos 
444203db220SDimitris Papastamos /*
445203db220SDimitris Papastamos  * R26 (0x1A) - Right Line Input 1&2 Volume
446203db220SDimitris Papastamos  */
447203db220SDimitris Papastamos #define WM8991_IPVU                             0x0100  /* IPVU */
448203db220SDimitris Papastamos #define WM8991_RI12MUTE                         0x0080  /* RI12MUTE */
449203db220SDimitris Papastamos #define WM8991_RI12MUTE_BIT			7
450203db220SDimitris Papastamos #define WM8991_RI12ZC                           0x0040  /* RI12ZC */
451203db220SDimitris Papastamos #define WM8991_RI12ZC_BIT			6
452203db220SDimitris Papastamos #define WM8991_RIN12VOL_MASK                    0x001F  /* RIN12VOL - [4:0] */
453203db220SDimitris Papastamos #define WM8991_RIN12VOL_SHIFT			0
454203db220SDimitris Papastamos 
455203db220SDimitris Papastamos /*
456203db220SDimitris Papastamos  * R27 (0x1B) - Right Line Input 3&4 Volume
457203db220SDimitris Papastamos  */
458203db220SDimitris Papastamos #define WM8991_IPVU                             0x0100  /* IPVU */
459203db220SDimitris Papastamos #define WM8991_RI34MUTE                         0x0080  /* RI34MUTE */
460203db220SDimitris Papastamos #define WM8991_RI34MUTE_BIT			7
461203db220SDimitris Papastamos #define WM8991_RI34ZC                           0x0040  /* RI34ZC */
462203db220SDimitris Papastamos #define WM8991_RI34ZC_BIT			6
463203db220SDimitris Papastamos #define WM8991_RIN34VOL_MASK                    0x001F  /* RIN34VOL - [4:0] */
464203db220SDimitris Papastamos #define WM8991_RIN34VOL_SHIFT			0
465203db220SDimitris Papastamos 
466203db220SDimitris Papastamos /*
467203db220SDimitris Papastamos  * R28 (0x1C) - Left Output Volume
468203db220SDimitris Papastamos  */
469203db220SDimitris Papastamos #define WM8991_OPVU                             0x0100  /* OPVU */
470203db220SDimitris Papastamos #define WM8991_LOZC                             0x0080  /* LOZC */
471203db220SDimitris Papastamos #define WM8991_LOZC_BIT				7
472203db220SDimitris Papastamos #define WM8991_LOUTVOL_MASK                     0x007F  /* LOUTVOL - [6:0] */
473203db220SDimitris Papastamos #define WM8991_LOUTVOL_SHIFT			0
474203db220SDimitris Papastamos /*
475203db220SDimitris Papastamos  * R29 (0x1D) - Right Output Volume
476203db220SDimitris Papastamos  */
477203db220SDimitris Papastamos #define WM8991_OPVU                             0x0100  /* OPVU */
478203db220SDimitris Papastamos #define WM8991_ROZC                             0x0080  /* ROZC */
479203db220SDimitris Papastamos #define WM8991_ROZC_BIT				7
480203db220SDimitris Papastamos #define WM8991_ROUTVOL_MASK                     0x007F  /* ROUTVOL - [6:0] */
481203db220SDimitris Papastamos #define WM8991_ROUTVOL_SHIFT			0
482203db220SDimitris Papastamos /*
483203db220SDimitris Papastamos  * R30 (0x1E) - Line Outputs Volume
484203db220SDimitris Papastamos  */
485203db220SDimitris Papastamos #define WM8991_LONMUTE                          0x0040  /* LONMUTE */
486203db220SDimitris Papastamos #define WM8991_LONMUTE_BIT			6
487203db220SDimitris Papastamos #define WM8991_LOPMUTE                          0x0020  /* LOPMUTE */
488203db220SDimitris Papastamos #define WM8991_LOPMUTE_BIT			5
489203db220SDimitris Papastamos #define WM8991_LOATTN                           0x0010  /* LOATTN */
490203db220SDimitris Papastamos #define WM8991_LOATTN_BIT			4
491203db220SDimitris Papastamos #define WM8991_RONMUTE                          0x0004  /* RONMUTE */
492203db220SDimitris Papastamos #define WM8991_RONMUTE_BIT			2
493203db220SDimitris Papastamos #define WM8991_ROPMUTE                          0x0002  /* ROPMUTE */
494203db220SDimitris Papastamos #define WM8991_ROPMUTE_BIT			1
495203db220SDimitris Papastamos #define WM8991_ROATTN                           0x0001  /* ROATTN */
496203db220SDimitris Papastamos #define WM8991_ROATTN_BIT			0
497203db220SDimitris Papastamos 
498203db220SDimitris Papastamos /*
499203db220SDimitris Papastamos  * R31 (0x1F) - Out3/4 Volume
500203db220SDimitris Papastamos  */
501203db220SDimitris Papastamos #define WM8991_OUT3MUTE                         0x0020  /* OUT3MUTE */
502203db220SDimitris Papastamos #define WM8991_OUT3MUTE_BIT			5
503203db220SDimitris Papastamos #define WM8991_OUT3ATTN                         0x0010  /* OUT3ATTN */
504203db220SDimitris Papastamos #define WM8991_OUT3ATTN_BIT			4
505203db220SDimitris Papastamos #define WM8991_OUT4MUTE                         0x0002  /* OUT4MUTE */
506203db220SDimitris Papastamos #define WM8991_OUT4MUTE_BIT			1
507203db220SDimitris Papastamos #define WM8991_OUT4ATTN                         0x0001  /* OUT4ATTN */
508203db220SDimitris Papastamos #define WM8991_OUT4ATTN_BIT			0
509203db220SDimitris Papastamos 
510203db220SDimitris Papastamos /*
511203db220SDimitris Papastamos  * R32 (0x20) - Left OPGA Volume
512203db220SDimitris Papastamos  */
513203db220SDimitris Papastamos #define WM8991_OPVU                             0x0100  /* OPVU */
514203db220SDimitris Papastamos #define WM8991_LOPGAZC                          0x0080  /* LOPGAZC */
515203db220SDimitris Papastamos #define WM8991_LOPGAZC_BIT			7
516203db220SDimitris Papastamos #define WM8991_LOPGAVOL_MASK                    0x007F  /* LOPGAVOL - [6:0] */
517203db220SDimitris Papastamos #define WM8991_LOPGAVOL_SHIFT			0
518203db220SDimitris Papastamos 
519203db220SDimitris Papastamos /*
520203db220SDimitris Papastamos  * R33 (0x21) - Right OPGA Volume
521203db220SDimitris Papastamos  */
522203db220SDimitris Papastamos #define WM8991_OPVU                             0x0100  /* OPVU */
523203db220SDimitris Papastamos #define WM8991_ROPGAZC                          0x0080  /* ROPGAZC */
524203db220SDimitris Papastamos #define WM8991_ROPGAZC_BIT			7
525203db220SDimitris Papastamos #define WM8991_ROPGAVOL_MASK                    0x007F  /* ROPGAVOL - [6:0] */
526203db220SDimitris Papastamos #define WM8991_ROPGAVOL_SHIFT			0
527203db220SDimitris Papastamos /*
528203db220SDimitris Papastamos  * R34 (0x22) - Speaker Volume
529203db220SDimitris Papastamos  */
530203db220SDimitris Papastamos #define WM8991_SPKVOL_MASK                      0x0003  /* SPKVOL - [1:0] */
531203db220SDimitris Papastamos #define WM8991_SPKVOL_SHIFT			0
532203db220SDimitris Papastamos 
533203db220SDimitris Papastamos /*
534203db220SDimitris Papastamos  * R35 (0x23) - ClassD1
535203db220SDimitris Papastamos  */
536203db220SDimitris Papastamos #define WM8991_CDMODE                           0x0100  /* CDMODE */
537203db220SDimitris Papastamos #define WM8991_CDMODE_BIT			8
538203db220SDimitris Papastamos 
539203db220SDimitris Papastamos /*
540203db220SDimitris Papastamos  * R37 (0x25) - ClassD3
541203db220SDimitris Papastamos  */
542203db220SDimitris Papastamos #define WM8991_DCGAIN_MASK                      0x0007  /* DCGAIN - [5:3] */
543203db220SDimitris Papastamos #define WM8991_DCGAIN_SHIFT			3
544203db220SDimitris Papastamos #define WM8991_ACGAIN_MASK                      0x0007  /* ACGAIN - [2:0] */
545203db220SDimitris Papastamos #define WM8991_ACGAIN_SHIFT			0
546203db220SDimitris Papastamos /*
547203db220SDimitris Papastamos  * R39 (0x27) - Input Mixer1
548203db220SDimitris Papastamos  */
549203db220SDimitris Papastamos #define WM8991_AINLMODE_MASK                    0x000C  /* AINLMODE - [3:2] */
550203db220SDimitris Papastamos #define WM8991_AINLMODE_SHIFT			2
551203db220SDimitris Papastamos #define WM8991_AINRMODE_MASK                    0x0003  /* AINRMODE - [1:0] */
552203db220SDimitris Papastamos #define WM8991_AINRMODE_SHIFT			0
553203db220SDimitris Papastamos 
554203db220SDimitris Papastamos /*
555203db220SDimitris Papastamos  * R40 (0x28) - Input Mixer2
556203db220SDimitris Papastamos  */
557203db220SDimitris Papastamos #define WM8991_LMP4								0x0080	/* LMP4 */
558203db220SDimitris Papastamos #define WM8991_LMP4_BIT                         7		/* LMP4 */
559203db220SDimitris Papastamos #define WM8991_LMN3                             0x0040  /* LMN3 */
560203db220SDimitris Papastamos #define WM8991_LMN3_BIT                         6       /* LMN3 */
561203db220SDimitris Papastamos #define WM8991_LMP2                             0x0020  /* LMP2 */
562203db220SDimitris Papastamos #define WM8991_LMP2_BIT                         5       /* LMP2 */
563203db220SDimitris Papastamos #define WM8991_LMN1                             0x0010  /* LMN1 */
564203db220SDimitris Papastamos #define WM8991_LMN1_BIT                         4       /* LMN1 */
565203db220SDimitris Papastamos #define WM8991_RMP4                             0x0008  /* RMP4 */
566203db220SDimitris Papastamos #define WM8991_RMP4_BIT                         3       /* RMP4 */
567203db220SDimitris Papastamos #define WM8991_RMN3                             0x0004  /* RMN3 */
568203db220SDimitris Papastamos #define WM8991_RMN3_BIT                         2       /* RMN3 */
569203db220SDimitris Papastamos #define WM8991_RMP2                             0x0002  /* RMP2 */
570203db220SDimitris Papastamos #define WM8991_RMP2_BIT                         1       /* RMP2 */
571203db220SDimitris Papastamos #define WM8991_RMN1                             0x0001  /* RMN1 */
572203db220SDimitris Papastamos #define WM8991_RMN1_BIT                         0       /* RMN1 */
573203db220SDimitris Papastamos 
574203db220SDimitris Papastamos /*
575203db220SDimitris Papastamos  * R41 (0x29) - Input Mixer3
576203db220SDimitris Papastamos  */
577203db220SDimitris Papastamos #define WM8991_L34MNB                           0x0100  /* L34MNB */
578203db220SDimitris Papastamos #define WM8991_L34MNB_BIT			8
579203db220SDimitris Papastamos #define WM8991_L34MNBST                         0x0080  /* L34MNBST */
580203db220SDimitris Papastamos #define WM8991_L34MNBST_BIT			7
581203db220SDimitris Papastamos #define WM8991_L12MNB                           0x0020  /* L12MNB */
582203db220SDimitris Papastamos #define WM8991_L12MNB_BIT			5
583203db220SDimitris Papastamos #define WM8991_L12MNBST                         0x0010  /* L12MNBST */
584203db220SDimitris Papastamos #define WM8991_L12MNBST_BIT			4
585203db220SDimitris Papastamos #define WM8991_LDBVOL_MASK                      0x0007  /* LDBVOL - [2:0] */
586203db220SDimitris Papastamos #define WM8991_LDBVOL_SHIFT			0
587203db220SDimitris Papastamos 
588203db220SDimitris Papastamos /*
589203db220SDimitris Papastamos  * R42 (0x2A) - Input Mixer4
590203db220SDimitris Papastamos  */
591203db220SDimitris Papastamos #define WM8991_R34MNB                           0x0100  /* R34MNB */
592203db220SDimitris Papastamos #define WM8991_R34MNB_BIT			8
593203db220SDimitris Papastamos #define WM8991_R34MNBST                         0x0080  /* R34MNBST */
594203db220SDimitris Papastamos #define WM8991_R34MNBST_BIT			7
595203db220SDimitris Papastamos #define WM8991_R12MNB                           0x0020  /* R12MNB */
596203db220SDimitris Papastamos #define WM8991_R12MNB_BIT			5
597203db220SDimitris Papastamos #define WM8991_R12MNBST                         0x0010  /* R12MNBST */
598203db220SDimitris Papastamos #define WM8991_R12MNBST_BIT			4
599203db220SDimitris Papastamos #define WM8991_RDBVOL_MASK                      0x0007  /* RDBVOL - [2:0] */
600203db220SDimitris Papastamos #define WM8991_RDBVOL_SHIFT			0
601203db220SDimitris Papastamos 
602203db220SDimitris Papastamos /*
603203db220SDimitris Papastamos  * R43 (0x2B) - Input Mixer5
604203db220SDimitris Papastamos  */
605203db220SDimitris Papastamos #define WM8991_LI2BVOL_MASK                     0x07  /* LI2BVOL - [8:6] */
606203db220SDimitris Papastamos #define WM8991_LI2BVOL_SHIFT			6
607203db220SDimitris Papastamos #define WM8991_LR4BVOL_MASK                     0x07  /* LR4BVOL - [5:3] */
608203db220SDimitris Papastamos #define WM8991_LR4BVOL_SHIFT			3
609203db220SDimitris Papastamos #define WM8991_LL4BVOL_MASK                     0x07  /* LL4BVOL - [2:0] */
610203db220SDimitris Papastamos #define WM8991_LL4BVOL_SHIFT			0
611203db220SDimitris Papastamos 
612203db220SDimitris Papastamos /*
613203db220SDimitris Papastamos  * R44 (0x2C) - Input Mixer6
614203db220SDimitris Papastamos  */
615203db220SDimitris Papastamos #define WM8991_RI2BVOL_MASK                     0x07  /* RI2BVOL - [8:6] */
616203db220SDimitris Papastamos #define WM8991_RI2BVOL_SHIFT			6
617203db220SDimitris Papastamos #define WM8991_RL4BVOL_MASK                     0x07  /* RL4BVOL - [5:3] */
618203db220SDimitris Papastamos #define WM8991_RL4BVOL_SHIFT			3
619203db220SDimitris Papastamos #define WM8991_RR4BVOL_MASK                     0x07  /* RR4BVOL - [2:0] */
620203db220SDimitris Papastamos #define WM8991_RR4BVOL_SHIFT			0
621203db220SDimitris Papastamos 
622203db220SDimitris Papastamos /*
623203db220SDimitris Papastamos  * R45 (0x2D) - Output Mixer1
624203db220SDimitris Papastamos  */
625203db220SDimitris Papastamos #define WM8991_LRBLO                            0x0080  /* LRBLO */
626203db220SDimitris Papastamos #define WM8991_LRBLO_BIT			7
627203db220SDimitris Papastamos #define WM8991_LLBLO                            0x0040  /* LLBLO */
628203db220SDimitris Papastamos #define WM8991_LLBLO_BIT			6
629203db220SDimitris Papastamos #define WM8991_LRI3LO                           0x0020  /* LRI3LO */
630203db220SDimitris Papastamos #define WM8991_LRI3LO_BIT			5
631203db220SDimitris Papastamos #define WM8991_LLI3LO                           0x0010  /* LLI3LO */
632203db220SDimitris Papastamos #define WM8991_LLI3LO_BIT			4
633203db220SDimitris Papastamos #define WM8991_LR12LO                           0x0008  /* LR12LO */
634203db220SDimitris Papastamos #define WM8991_LR12LO_BIT			3
635203db220SDimitris Papastamos #define WM8991_LL12LO                           0x0004  /* LL12LO */
636203db220SDimitris Papastamos #define WM8991_LL12LO_BIT			2
637203db220SDimitris Papastamos #define WM8991_LDLO                             0x0001  /* LDLO */
638203db220SDimitris Papastamos #define WM8991_LDLO_BIT				0
639203db220SDimitris Papastamos 
640203db220SDimitris Papastamos /*
641203db220SDimitris Papastamos  * R46 (0x2E) - Output Mixer2
642203db220SDimitris Papastamos  */
643203db220SDimitris Papastamos #define WM8991_RLBRO                            0x0080  /* RLBRO */
644203db220SDimitris Papastamos #define WM8991_RLBRO_BIT			7
645203db220SDimitris Papastamos #define WM8991_RRBRO                            0x0040  /* RRBRO */
646203db220SDimitris Papastamos #define WM8991_RRBRO_BIT			6
647203db220SDimitris Papastamos #define WM8991_RLI3RO                           0x0020  /* RLI3RO */
648203db220SDimitris Papastamos #define WM8991_RLI3RO_BIT			5
649203db220SDimitris Papastamos #define WM8991_RRI3RO                           0x0010  /* RRI3RO */
650203db220SDimitris Papastamos #define WM8991_RRI3RO_BIT			4
651203db220SDimitris Papastamos #define WM8991_RL12RO                           0x0008  /* RL12RO */
652203db220SDimitris Papastamos #define WM8991_RL12RO_BIT			3
653203db220SDimitris Papastamos #define WM8991_RR12RO                           0x0004  /* RR12RO */
654203db220SDimitris Papastamos #define WM8991_RR12RO_BIT			2
655203db220SDimitris Papastamos #define WM8991_RDRO                             0x0001  /* RDRO */
656203db220SDimitris Papastamos #define WM8991_RDRO_BIT				0
657203db220SDimitris Papastamos 
658203db220SDimitris Papastamos /*
659203db220SDimitris Papastamos  * R47 (0x2F) - Output Mixer3
660203db220SDimitris Papastamos  */
661203db220SDimitris Papastamos #define WM8991_LLI3LOVOL_MASK                   0x07  /* LLI3LOVOL - [8:6] */
662203db220SDimitris Papastamos #define WM8991_LLI3LOVOL_SHIFT			6
663203db220SDimitris Papastamos #define WM8991_LR12LOVOL_MASK                   0x07  /* LR12LOVOL - [5:3] */
664203db220SDimitris Papastamos #define WM8991_LR12LOVOL_SHIFT			3
665203db220SDimitris Papastamos #define WM8991_LL12LOVOL_MASK                   0x07  /* LL12LOVOL - [2:0] */
666203db220SDimitris Papastamos #define WM8991_LL12LOVOL_SHIFT			0
667203db220SDimitris Papastamos 
668203db220SDimitris Papastamos /*
669203db220SDimitris Papastamos  * R48 (0x30) - Output Mixer4
670203db220SDimitris Papastamos  */
671203db220SDimitris Papastamos #define WM8991_RRI3ROVOL_MASK                   0x07  /* RRI3ROVOL - [8:6] */
672203db220SDimitris Papastamos #define WM8991_RRI3ROVOL_SHIFT			6
673203db220SDimitris Papastamos #define WM8991_RL12ROVOL_MASK                   0x07  /* RL12ROVOL - [5:3] */
674203db220SDimitris Papastamos #define WM8991_RL12ROVOL_SHIFT			3
675203db220SDimitris Papastamos #define WM8991_RR12ROVOL_MASK                   0x07  /* RR12ROVOL - [2:0] */
676203db220SDimitris Papastamos #define WM8991_RR12ROVOL_SHIFT			0
677203db220SDimitris Papastamos 
678203db220SDimitris Papastamos /*
679203db220SDimitris Papastamos  * R49 (0x31) - Output Mixer5
680203db220SDimitris Papastamos  */
681203db220SDimitris Papastamos #define WM8991_LRI3LOVOL_MASK                   0x07  /* LRI3LOVOL - [8:6] */
682203db220SDimitris Papastamos #define WM8991_LRI3LOVOL_SHIFT			6
683203db220SDimitris Papastamos #define WM8991_LRBLOVOL_MASK                    0x07  /* LRBLOVOL - [5:3] */
684203db220SDimitris Papastamos #define WM8991_LRBLOVOL_SHIFT			3
685203db220SDimitris Papastamos #define WM8991_LLBLOVOL_MASK                    0x07  /* LLBLOVOL - [2:0] */
686203db220SDimitris Papastamos #define WM8991_LLBLOVOL_SHIFT			0
687203db220SDimitris Papastamos 
688203db220SDimitris Papastamos /*
689203db220SDimitris Papastamos  * R50 (0x32) - Output Mixer6
690203db220SDimitris Papastamos  */
691203db220SDimitris Papastamos #define WM8991_RLI3ROVOL_MASK                   0x07  /* RLI3ROVOL - [8:6] */
692203db220SDimitris Papastamos #define WM8991_RLI3ROVOL_SHIFT			6
693203db220SDimitris Papastamos #define WM8991_RLBROVOL_MASK                    0x07  /* RLBROVOL - [5:3] */
694203db220SDimitris Papastamos #define WM8991_RLBROVOL_SHIFT			3
695203db220SDimitris Papastamos #define WM8991_RRBROVOL_MASK                    0x07  /* RRBROVOL - [2:0] */
696203db220SDimitris Papastamos #define WM8991_RRBROVOL_SHIFT			0
697203db220SDimitris Papastamos 
698203db220SDimitris Papastamos /*
699203db220SDimitris Papastamos  * R51 (0x33) - Out3/4 Mixer
700203db220SDimitris Papastamos  */
701203db220SDimitris Papastamos #define WM8991_VSEL_MASK                        0x0180  /* VSEL - [8:7] */
702203db220SDimitris Papastamos #define WM8991_LI4O3                            0x0020  /* LI4O3 */
703203db220SDimitris Papastamos #define WM8991_LI4O3_BIT			5
704203db220SDimitris Papastamos #define WM8991_LPGAO3                           0x0010  /* LPGAO3 */
705203db220SDimitris Papastamos #define WM8991_LPGAO3_BIT			4
706203db220SDimitris Papastamos #define WM8991_RI4O4                            0x0002  /* RI4O4 */
707203db220SDimitris Papastamos #define WM8991_RI4O4_BIT			1
708203db220SDimitris Papastamos #define WM8991_RPGAO4                           0x0001  /* RPGAO4 */
709203db220SDimitris Papastamos #define WM8991_RPGAO4_BIT			0
710203db220SDimitris Papastamos /*
711203db220SDimitris Papastamos  * R52 (0x34) - Line Mixer1
712203db220SDimitris Papastamos  */
713203db220SDimitris Papastamos #define WM8991_LLOPGALON                        0x0040  /* LLOPGALON */
714203db220SDimitris Papastamos #define WM8991_LLOPGALON_BIT			6
715203db220SDimitris Papastamos #define WM8991_LROPGALON                        0x0020  /* LROPGALON */
716203db220SDimitris Papastamos #define WM8991_LROPGALON_BIT			5
717203db220SDimitris Papastamos #define WM8991_LOPLON                           0x0010  /* LOPLON */
718203db220SDimitris Papastamos #define WM8991_LOPLON_BIT			4
719203db220SDimitris Papastamos #define WM8991_LR12LOP                          0x0004  /* LR12LOP */
720203db220SDimitris Papastamos #define WM8991_LR12LOP_BIT			2
721203db220SDimitris Papastamos #define WM8991_LL12LOP                          0x0002  /* LL12LOP */
722203db220SDimitris Papastamos #define WM8991_LL12LOP_BIT			1
723203db220SDimitris Papastamos #define WM8991_LLOPGALOP                        0x0001  /* LLOPGALOP */
724203db220SDimitris Papastamos #define WM8991_LLOPGALOP_BIT			0
725203db220SDimitris Papastamos /*
726203db220SDimitris Papastamos  * R53 (0x35) - Line Mixer2
727203db220SDimitris Papastamos  */
728203db220SDimitris Papastamos #define WM8991_RROPGARON                        0x0040  /* RROPGARON */
729203db220SDimitris Papastamos #define WM8991_RROPGARON_BIT			6
730203db220SDimitris Papastamos #define WM8991_RLOPGARON                        0x0020  /* RLOPGARON */
731203db220SDimitris Papastamos #define WM8991_RLOPGARON_BIT			5
732203db220SDimitris Papastamos #define WM8991_ROPRON                           0x0010  /* ROPRON */
733203db220SDimitris Papastamos #define WM8991_ROPRON_BIT			4
734203db220SDimitris Papastamos #define WM8991_RL12ROP                          0x0004  /* RL12ROP */
735203db220SDimitris Papastamos #define WM8991_RL12ROP_BIT			2
736203db220SDimitris Papastamos #define WM8991_RR12ROP                          0x0002  /* RR12ROP */
737203db220SDimitris Papastamos #define WM8991_RR12ROP_BIT			1
738203db220SDimitris Papastamos #define WM8991_RROPGAROP                        0x0001  /* RROPGAROP */
739203db220SDimitris Papastamos #define WM8991_RROPGAROP_BIT			0
740203db220SDimitris Papastamos 
741203db220SDimitris Papastamos /*
742203db220SDimitris Papastamos  * R54 (0x36) - Speaker Mixer
743203db220SDimitris Papastamos  */
744203db220SDimitris Papastamos #define WM8991_LB2SPK                           0x0080  /* LB2SPK */
745203db220SDimitris Papastamos #define WM8991_LB2SPK_BIT			7
746203db220SDimitris Papastamos #define WM8991_RB2SPK                           0x0040  /* RB2SPK */
747203db220SDimitris Papastamos #define WM8991_RB2SPK_BIT			6
748203db220SDimitris Papastamos #define WM8991_LI2SPK                           0x0020  /* LI2SPK */
749203db220SDimitris Papastamos #define WM8991_LI2SPK_BIT			5
750203db220SDimitris Papastamos #define WM8991_RI2SPK                           0x0010  /* RI2SPK */
751203db220SDimitris Papastamos #define WM8991_RI2SPK_BIT			4
752203db220SDimitris Papastamos #define WM8991_LOPGASPK                         0x0008  /* LOPGASPK */
753203db220SDimitris Papastamos #define WM8991_LOPGASPK_BIT			3
754203db220SDimitris Papastamos #define WM8991_ROPGASPK                         0x0004  /* ROPGASPK */
755203db220SDimitris Papastamos #define WM8991_ROPGASPK_BIT			2
756203db220SDimitris Papastamos #define WM8991_LDSPK                            0x0002  /* LDSPK */
757203db220SDimitris Papastamos #define WM8991_LDSPK_BIT			1
758203db220SDimitris Papastamos #define WM8991_RDSPK                            0x0001  /* RDSPK */
759203db220SDimitris Papastamos #define WM8991_RDSPK_BIT			0
760203db220SDimitris Papastamos 
761203db220SDimitris Papastamos /*
762203db220SDimitris Papastamos  * R55 (0x37) - Additional Control
763203db220SDimitris Papastamos  */
764203db220SDimitris Papastamos #define WM8991_VROI                             0x0001  /* VROI */
765203db220SDimitris Papastamos 
766203db220SDimitris Papastamos /*
767203db220SDimitris Papastamos  * R56 (0x38) - AntiPOP1
768203db220SDimitris Papastamos  */
769203db220SDimitris Papastamos #define WM8991_DIS_LLINE                        0x0020  /* DIS_LLINE */
770203db220SDimitris Papastamos #define WM8991_DIS_RLINE                        0x0010  /* DIS_RLINE */
771203db220SDimitris Papastamos #define WM8991_DIS_OUT3                         0x0008  /* DIS_OUT3 */
772203db220SDimitris Papastamos #define WM8991_DIS_OUT4                         0x0004  /* DIS_OUT4 */
773203db220SDimitris Papastamos #define WM8991_DIS_LOUT                         0x0002  /* DIS_LOUT */
774203db220SDimitris Papastamos #define WM8991_DIS_ROUT                         0x0001  /* DIS_ROUT */
775203db220SDimitris Papastamos 
776203db220SDimitris Papastamos /*
777203db220SDimitris Papastamos  * R57 (0x39) - AntiPOP2
778203db220SDimitris Papastamos  */
779203db220SDimitris Papastamos #define WM8991_SOFTST                           0x0040  /* SOFTST */
780203db220SDimitris Papastamos #define WM8991_BUFIOEN                          0x0008  /* BUFIOEN */
781203db220SDimitris Papastamos #define WM8991_BUFDCOPEN                        0x0004  /* BUFDCOPEN */
782203db220SDimitris Papastamos #define WM8991_POBCTRL                          0x0002  /* POBCTRL */
783203db220SDimitris Papastamos #define WM8991_VMIDTOG                          0x0001  /* VMIDTOG */
784203db220SDimitris Papastamos 
785203db220SDimitris Papastamos /*
786203db220SDimitris Papastamos  * R58 (0x3A) - MICBIAS
787203db220SDimitris Papastamos  */
788203db220SDimitris Papastamos #define WM8991_MCDSCTH_MASK                     0x00C0  /* MCDSCTH - [7:6] */
789203db220SDimitris Papastamos #define WM8991_MCDTHR_MASK                      0x0038  /* MCDTHR - [5:3] */
790203db220SDimitris Papastamos #define WM8991_MCD                              0x0004  /* MCD */
791203db220SDimitris Papastamos #define WM8991_MBSEL                            0x0001  /* MBSEL */
792203db220SDimitris Papastamos 
793203db220SDimitris Papastamos /*
794203db220SDimitris Papastamos  * R60 (0x3C) - PLL1
795203db220SDimitris Papastamos  */
796203db220SDimitris Papastamos #define WM8991_SDM                              0x0080  /* SDM */
797203db220SDimitris Papastamos #define WM8991_PRESCALE                         0x0040  /* PRESCALE */
798203db220SDimitris Papastamos #define WM8991_PLLN_MASK                        0x000F  /* PLLN - [3:0] */
799203db220SDimitris Papastamos 
800203db220SDimitris Papastamos /*
801203db220SDimitris Papastamos  * R61 (0x3D) - PLL2
802203db220SDimitris Papastamos  */
803203db220SDimitris Papastamos #define WM8991_PLLK1_MASK                       0x00FF  /* PLLK1 - [7:0] */
804203db220SDimitris Papastamos 
805203db220SDimitris Papastamos /*
806203db220SDimitris Papastamos  * R62 (0x3E) - PLL3
807203db220SDimitris Papastamos  */
808203db220SDimitris Papastamos #define WM8991_PLLK2_MASK                       0x00FF  /* PLLK2 - [7:0] */
809203db220SDimitris Papastamos 
810203db220SDimitris Papastamos /*
811203db220SDimitris Papastamos  * R63 (0x3F) - Internal Driver Bits
812203db220SDimitris Papastamos  */
813203db220SDimitris Papastamos #define WM8991_INMIXL_PWR_BIT			0
814203db220SDimitris Papastamos #define WM8991_AINLMUX_PWR_BIT			1
815203db220SDimitris Papastamos #define WM8991_INMIXR_PWR_BIT			2
816203db220SDimitris Papastamos #define WM8991_AINRMUX_PWR_BIT			3
817203db220SDimitris Papastamos 
818203db220SDimitris Papastamos #define WM8991_MCLK_DIV 0
819203db220SDimitris Papastamos #define WM8991_DACCLK_DIV 1
820203db220SDimitris Papastamos #define WM8991_ADCCLK_DIV 2
821203db220SDimitris Papastamos #define WM8991_BCLK_DIV 3
822203db220SDimitris Papastamos 
823203db220SDimitris Papastamos #define SOC_WM899X_OUTPGA_SINGLE_R_TLV(xname, reg, shift, max, invert,\
824203db220SDimitris Papastamos 					 tlv_array) \
825*9578121cSLars-Peter Clausen 	SOC_SINGLE_EXT_TLV(xname, reg, shift, max, invert, \
826*9578121cSLars-Peter Clausen 		snd_soc_get_volsw, wm899x_outpga_put_volsw_vu, tlv_array)
827203db220SDimitris Papastamos 
828203db220SDimitris Papastamos #endif /* _WM8991_H */
829