1  /* SPDX-License-Identifier: GPL-2.0-only */
2  /*
3   * Madera register definitions
4   *
5   * Copyright (C) 2015-2018 Cirrus Logic
6   */
7  
8  #ifndef MADERA_REGISTERS_H
9  #define MADERA_REGISTERS_H
10  
11  /*
12   * Register Addresses.
13   */
14  #define MADERA_SOFTWARE_RESET				0x00
15  #define MADERA_HARDWARE_REVISION			0x01
16  #define MADERA_CTRL_IF_CFG_1				0x08
17  #define MADERA_CTRL_IF_CFG_2				0x09
18  #define MADERA_CTRL_IF_CFG_3				0x0A
19  #define MADERA_WRITE_SEQUENCER_CTRL_0			0x16
20  #define MADERA_WRITE_SEQUENCER_CTRL_1			0x17
21  #define MADERA_WRITE_SEQUENCER_CTRL_2			0x18
22  #define MADERA_TONE_GENERATOR_1				0x20
23  #define MADERA_TONE_GENERATOR_2				0x21
24  #define MADERA_TONE_GENERATOR_3				0x22
25  #define MADERA_TONE_GENERATOR_4				0x23
26  #define MADERA_TONE_GENERATOR_5				0x24
27  #define MADERA_PWM_DRIVE_1				0x30
28  #define MADERA_PWM_DRIVE_2				0x31
29  #define MADERA_PWM_DRIVE_3				0x32
30  #define MADERA_SEQUENCE_CONTROL				0x41
31  #define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_1		0x61
32  #define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_2		0x62
33  #define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_3		0x63
34  #define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_4		0x64
35  #define MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1	0x66
36  #define MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2	0x67
37  #define MADERA_HAPTICS_CONTROL_1			0x90
38  #define MADERA_HAPTICS_CONTROL_2			0x91
39  #define MADERA_HAPTICS_PHASE_1_INTENSITY		0x92
40  #define MADERA_HAPTICS_PHASE_1_DURATION			0x93
41  #define MADERA_HAPTICS_PHASE_2_INTENSITY		0x94
42  #define MADERA_HAPTICS_PHASE_2_DURATION			0x95
43  #define MADERA_HAPTICS_PHASE_3_INTENSITY		0x96
44  #define MADERA_HAPTICS_PHASE_3_DURATION			0x97
45  #define MADERA_HAPTICS_STATUS				0x98
46  #define MADERA_COMFORT_NOISE_GENERATOR			0xA0
47  #define MADERA_CLOCK_32K_1				0x100
48  #define MADERA_SYSTEM_CLOCK_1				0x101
49  #define MADERA_SAMPLE_RATE_1				0x102
50  #define MADERA_SAMPLE_RATE_2				0x103
51  #define MADERA_SAMPLE_RATE_3				0x104
52  #define MADERA_SAMPLE_RATE_1_STATUS			0x10A
53  #define MADERA_SAMPLE_RATE_2_STATUS			0x10B
54  #define MADERA_SAMPLE_RATE_3_STATUS			0x10C
55  #define MADERA_ASYNC_CLOCK_1				0x112
56  #define MADERA_ASYNC_SAMPLE_RATE_1			0x113
57  #define MADERA_ASYNC_SAMPLE_RATE_2			0x114
58  #define MADERA_ASYNC_SAMPLE_RATE_1_STATUS		0x11B
59  #define MADERA_ASYNC_SAMPLE_RATE_2_STATUS		0x11C
60  #define MADERA_DSP_CLOCK_1				0x120
61  #define MADERA_DSP_CLOCK_2				0x122
62  #define MADERA_OUTPUT_SYSTEM_CLOCK			0x149
63  #define MADERA_OUTPUT_ASYNC_CLOCK			0x14A
64  #define MADERA_RATE_ESTIMATOR_1				0x152
65  #define MADERA_RATE_ESTIMATOR_2				0x153
66  #define MADERA_RATE_ESTIMATOR_3				0x154
67  #define MADERA_RATE_ESTIMATOR_4				0x155
68  #define MADERA_RATE_ESTIMATOR_5				0x156
69  #define MADERA_FLL1_CONTROL_1				0x171
70  #define MADERA_FLL1_CONTROL_2				0x172
71  #define MADERA_FLL1_CONTROL_3				0x173
72  #define MADERA_FLL1_CONTROL_4				0x174
73  #define MADERA_FLL1_CONTROL_5				0x175
74  #define MADERA_FLL1_CONTROL_6				0x176
75  #define CS47L92_FLL1_CONTROL_7				0x177
76  #define CS47L92_FLL1_CONTROL_8				0x178
77  #define MADERA_FLL1_CONTROL_7				0x179
78  #define CS47L92_FLL1_CONTROL_9				0x179
79  #define MADERA_FLL1_EFS_2				0x17A
80  #define CS47L92_FLL1_CONTROL_10				0x17A
81  #define MADERA_FLL1_CONTROL_11				0x17B
82  #define MADERA_FLL1_DIGITAL_TEST_1			0x17D
83  #define CS47L35_FLL1_SYNCHRONISER_1			0x17F
84  #define CS47L35_FLL1_SYNCHRONISER_2			0x180
85  #define CS47L35_FLL1_SYNCHRONISER_3			0x181
86  #define CS47L35_FLL1_SYNCHRONISER_4			0x182
87  #define CS47L35_FLL1_SYNCHRONISER_5			0x183
88  #define CS47L35_FLL1_SYNCHRONISER_6			0x184
89  #define CS47L35_FLL1_SYNCHRONISER_7			0x185
90  #define CS47L35_FLL1_SPREAD_SPECTRUM			0x187
91  #define CS47L35_FLL1_GPIO_CLOCK				0x188
92  #define MADERA_FLL1_SYNCHRONISER_1			0x181
93  #define MADERA_FLL1_SYNCHRONISER_2			0x182
94  #define MADERA_FLL1_SYNCHRONISER_3			0x183
95  #define MADERA_FLL1_SYNCHRONISER_4			0x184
96  #define MADERA_FLL1_SYNCHRONISER_5			0x185
97  #define MADERA_FLL1_SYNCHRONISER_6			0x186
98  #define MADERA_FLL1_SYNCHRONISER_7			0x187
99  #define MADERA_FLL1_SPREAD_SPECTRUM			0x189
100  #define MADERA_FLL1_GPIO_CLOCK				0x18A
101  #define CS47L92_FLL1_GPIO_CLOCK				0x18E
102  #define MADERA_FLL2_CONTROL_1				0x191
103  #define MADERA_FLL2_CONTROL_2				0x192
104  #define MADERA_FLL2_CONTROL_3				0x193
105  #define MADERA_FLL2_CONTROL_4				0x194
106  #define MADERA_FLL2_CONTROL_5				0x195
107  #define MADERA_FLL2_CONTROL_6				0x196
108  #define CS47L92_FLL2_CONTROL_7				0x197
109  #define CS47L92_FLL2_CONTROL_8				0x198
110  #define MADERA_FLL2_CONTROL_7				0x199
111  #define CS47L92_FLL2_CONTROL_9				0x199
112  #define MADERA_FLL2_EFS_2				0x19A
113  #define CS47L92_FLL2_CONTROL_10				0x19A
114  #define MADERA_FLL2_CONTROL_11				0x19B
115  #define MADERA_FLL2_DIGITAL_TEST_1			0x19D
116  #define MADERA_FLL2_SYNCHRONISER_1			0x1A1
117  #define MADERA_FLL2_SYNCHRONISER_2			0x1A2
118  #define MADERA_FLL2_SYNCHRONISER_3			0x1A3
119  #define MADERA_FLL2_SYNCHRONISER_4			0x1A4
120  #define MADERA_FLL2_SYNCHRONISER_5			0x1A5
121  #define MADERA_FLL2_SYNCHRONISER_6			0x1A6
122  #define MADERA_FLL2_SYNCHRONISER_7			0x1A7
123  #define MADERA_FLL2_SPREAD_SPECTRUM			0x1A9
124  #define MADERA_FLL2_GPIO_CLOCK				0x1AA
125  #define CS47L92_FLL2_GPIO_CLOCK				0x1AE
126  #define MADERA_FLL3_CONTROL_1				0x1B1
127  #define MADERA_FLL3_CONTROL_2				0x1B2
128  #define MADERA_FLL3_CONTROL_3				0x1B3
129  #define MADERA_FLL3_CONTROL_4				0x1B4
130  #define MADERA_FLL3_CONTROL_5				0x1B5
131  #define MADERA_FLL3_CONTROL_6				0x1B6
132  #define MADERA_FLL3_CONTROL_7				0x1B9
133  #define MADERA_FLL3_SYNCHRONISER_1			0x1C1
134  #define MADERA_FLL3_SYNCHRONISER_2			0x1C2
135  #define MADERA_FLL3_SYNCHRONISER_3			0x1C3
136  #define MADERA_FLL3_SYNCHRONISER_4			0x1C4
137  #define MADERA_FLL3_SYNCHRONISER_5			0x1C5
138  #define MADERA_FLL3_SYNCHRONISER_6			0x1C6
139  #define MADERA_FLL3_SYNCHRONISER_7			0x1C7
140  #define MADERA_FLL3_SPREAD_SPECTRUM			0x1C9
141  #define MADERA_FLL3_GPIO_CLOCK				0x1CA
142  #define MADERA_FLLAO_CONTROL_1				0x1D1
143  #define MADERA_FLLAO_CONTROL_2				0x1D2
144  #define MADERA_FLLAO_CONTROL_3				0x1D3
145  #define MADERA_FLLAO_CONTROL_4				0x1D4
146  #define MADERA_FLLAO_CONTROL_5				0x1D5
147  #define MADERA_FLLAO_CONTROL_6				0x1D6
148  #define MADERA_FLLAO_CONTROL_7				0x1D8
149  #define MADERA_FLLAO_CONTROL_8				0x1DA
150  #define MADERA_FLLAO_CONTROL_9				0x1DB
151  #define MADERA_FLLAO_CONTROL_10				0x1DC
152  #define MADERA_FLLAO_CONTROL_11				0x1DD
153  #define MADERA_MIC_CHARGE_PUMP_1			0x200
154  #define MADERA_HP_CHARGE_PUMP_8				0x20B
155  #define MADERA_LDO1_CONTROL_1				0x210
156  #define MADERA_LDO2_CONTROL_1				0x213
157  #define MADERA_MIC_BIAS_CTRL_1				0x218
158  #define MADERA_MIC_BIAS_CTRL_2				0x219
159  #define MADERA_MIC_BIAS_CTRL_3				0x21A
160  #define MADERA_MIC_BIAS_CTRL_4				0x21B
161  #define MADERA_MIC_BIAS_CTRL_5				0x21C
162  #define MADERA_MIC_BIAS_CTRL_6				0x21E
163  #define MADERA_HP_CTRL_1L				0x225
164  #define MADERA_HP_CTRL_1R				0x226
165  #define MADERA_HP_CTRL_2L				0x227
166  #define MADERA_HP_CTRL_2R				0x228
167  #define MADERA_HP_CTRL_3L				0x229
168  #define MADERA_HP_CTRL_3R				0x22A
169  #define MADERA_DCS_HP1L_CONTROL				0x232
170  #define MADERA_DCS_HP1R_CONTROL				0x238
171  #define MADERA_EDRE_HP_STEREO_CONTROL			0x27E
172  #define MADERA_ACCESSORY_DETECT_MODE_1			0x293
173  #define MADERA_HEADPHONE_DETECT_0			0x299
174  #define MADERA_HEADPHONE_DETECT_1			0x29B
175  #define MADERA_HEADPHONE_DETECT_2			0x29C
176  #define MADERA_HEADPHONE_DETECT_3			0x29D
177  #define MADERA_HEADPHONE_DETECT_4			0x29E
178  #define MADERA_HEADPHONE_DETECT_5			0x29F
179  #define MADERA_MIC_DETECT_1_CONTROL_0			0x2A2
180  #define MADERA_MIC_DETECT_1_CONTROL_1			0x2A3
181  #define MADERA_MIC_DETECT_1_CONTROL_2			0x2A4
182  #define MADERA_MIC_DETECT_1_CONTROL_3			0x2A5
183  #define MADERA_MIC_DETECT_1_LEVEL_1			0x2A6
184  #define MADERA_MIC_DETECT_1_LEVEL_2			0x2A7
185  #define MADERA_MIC_DETECT_1_LEVEL_3			0x2A8
186  #define MADERA_MIC_DETECT_1_LEVEL_4			0x2A9
187  #define MADERA_MIC_DETECT_1_CONTROL_4			0x2AB
188  #define MADERA_MIC_DETECT_2_CONTROL_0			0x2B2
189  #define MADERA_MIC_DETECT_2_CONTROL_1			0x2B3
190  #define MADERA_MIC_DETECT_2_CONTROL_2			0x2B4
191  #define MADERA_MIC_DETECT_2_CONTROL_3			0x2B5
192  #define MADERA_MIC_DETECT_2_LEVEL_1			0x2B6
193  #define MADERA_MIC_DETECT_2_LEVEL_2			0x2B7
194  #define MADERA_MIC_DETECT_2_LEVEL_3			0x2B8
195  #define MADERA_MIC_DETECT_2_LEVEL_4			0x2B9
196  #define MADERA_MIC_DETECT_2_CONTROL_4			0x2BB
197  #define MADERA_MICD_CLAMP_CONTROL			0x2C6
198  #define MADERA_GP_SWITCH_1				0x2C8
199  #define MADERA_JACK_DETECT_ANALOGUE			0x2D3
200  #define MADERA_INPUT_ENABLES				0x300
201  #define MADERA_INPUT_ENABLES_STATUS			0x301
202  #define MADERA_INPUT_RATE				0x308
203  #define MADERA_INPUT_VOLUME_RAMP			0x309
204  #define MADERA_HPF_CONTROL				0x30C
205  #define MADERA_IN1L_CONTROL				0x310
206  #define MADERA_ADC_DIGITAL_VOLUME_1L			0x311
207  #define MADERA_DMIC1L_CONTROL				0x312
208  #define MADERA_IN1L_RATE_CONTROL			0x313
209  #define MADERA_IN1R_CONTROL				0x314
210  #define MADERA_ADC_DIGITAL_VOLUME_1R			0x315
211  #define MADERA_DMIC1R_CONTROL				0x316
212  #define MADERA_IN1R_RATE_CONTROL			0x317
213  #define MADERA_IN2L_CONTROL				0x318
214  #define MADERA_ADC_DIGITAL_VOLUME_2L			0x319
215  #define MADERA_DMIC2L_CONTROL				0x31A
216  #define MADERA_IN2L_RATE_CONTROL			0x31B
217  #define MADERA_IN2R_CONTROL				0x31C
218  #define MADERA_ADC_DIGITAL_VOLUME_2R			0x31D
219  #define MADERA_DMIC2R_CONTROL				0x31E
220  #define MADERA_IN2R_RATE_CONTROL			0x31F
221  #define MADERA_IN3L_CONTROL				0x320
222  #define MADERA_ADC_DIGITAL_VOLUME_3L			0x321
223  #define MADERA_DMIC3L_CONTROL				0x322
224  #define MADERA_IN3L_RATE_CONTROL			0x323
225  #define MADERA_IN3R_CONTROL				0x324
226  #define MADERA_ADC_DIGITAL_VOLUME_3R			0x325
227  #define MADERA_DMIC3R_CONTROL				0x326
228  #define MADERA_IN3R_RATE_CONTROL			0x327
229  #define MADERA_IN4L_CONTROL				0x328
230  #define MADERA_ADC_DIGITAL_VOLUME_4L			0x329
231  #define MADERA_DMIC4L_CONTROL				0x32A
232  #define MADERA_IN4L_RATE_CONTROL			0x32B
233  #define MADERA_IN4R_CONTROL				0x32C
234  #define MADERA_ADC_DIGITAL_VOLUME_4R			0x32D
235  #define MADERA_DMIC4R_CONTROL				0x32E
236  #define MADERA_IN4R_RATE_CONTROL			0x32F
237  #define MADERA_IN5L_CONTROL				0x330
238  #define MADERA_ADC_DIGITAL_VOLUME_5L			0x331
239  #define MADERA_DMIC5L_CONTROL				0x332
240  #define MADERA_IN5L_RATE_CONTROL			0x333
241  #define MADERA_IN5R_CONTROL				0x334
242  #define MADERA_ADC_DIGITAL_VOLUME_5R			0x335
243  #define MADERA_DMIC5R_CONTROL				0x336
244  #define MADERA_IN5R_RATE_CONTROL			0x337
245  #define MADERA_IN6L_CONTROL				0x338
246  #define MADERA_ADC_DIGITAL_VOLUME_6L			0x339
247  #define MADERA_DMIC6L_CONTROL				0x33A
248  #define MADERA_IN6R_CONTROL				0x33C
249  #define MADERA_ADC_DIGITAL_VOLUME_6R			0x33D
250  #define MADERA_DMIC6R_CONTROL				0x33E
251  #define CS47L15_ADC_INT_BIAS				0x3A8
252  #define CS47L15_PGA_BIAS_SEL				0x3C4
253  #define MADERA_OUTPUT_ENABLES_1				0x400
254  #define MADERA_OUTPUT_STATUS_1				0x401
255  #define MADERA_RAW_OUTPUT_STATUS_1			0x406
256  #define MADERA_OUTPUT_RATE_1				0x408
257  #define MADERA_OUTPUT_VOLUME_RAMP			0x409
258  #define MADERA_OUTPUT_PATH_CONFIG_1L			0x410
259  #define MADERA_DAC_DIGITAL_VOLUME_1L			0x411
260  #define MADERA_OUTPUT_PATH_CONFIG_1			0x412
261  #define MADERA_NOISE_GATE_SELECT_1L			0x413
262  #define MADERA_OUTPUT_PATH_CONFIG_1R			0x414
263  #define MADERA_DAC_DIGITAL_VOLUME_1R			0x415
264  #define MADERA_NOISE_GATE_SELECT_1R			0x417
265  #define MADERA_OUTPUT_PATH_CONFIG_2L			0x418
266  #define MADERA_DAC_DIGITAL_VOLUME_2L			0x419
267  #define MADERA_OUTPUT_PATH_CONFIG_2			0x41A
268  #define MADERA_NOISE_GATE_SELECT_2L			0x41B
269  #define MADERA_OUTPUT_PATH_CONFIG_2R			0x41C
270  #define MADERA_DAC_DIGITAL_VOLUME_2R			0x41D
271  #define MADERA_NOISE_GATE_SELECT_2R			0x41F
272  #define MADERA_OUTPUT_PATH_CONFIG_3L			0x420
273  #define MADERA_DAC_DIGITAL_VOLUME_3L			0x421
274  #define MADERA_OUTPUT_PATH_CONFIG_3			0x422
275  #define MADERA_NOISE_GATE_SELECT_3L			0x423
276  #define MADERA_OUTPUT_PATH_CONFIG_3R			0x424
277  #define MADERA_DAC_DIGITAL_VOLUME_3R			0x425
278  #define MADERA_NOISE_GATE_SELECT_3R			0x427
279  #define MADERA_OUTPUT_PATH_CONFIG_4L			0x428
280  #define MADERA_DAC_DIGITAL_VOLUME_4L			0x429
281  #define MADERA_NOISE_GATE_SELECT_4L			0x42B
282  #define MADERA_OUTPUT_PATH_CONFIG_4R			0x42C
283  #define MADERA_DAC_DIGITAL_VOLUME_4R			0x42D
284  #define MADERA_NOISE_GATE_SELECT_4R			0x42F
285  #define MADERA_OUTPUT_PATH_CONFIG_5L			0x430
286  #define MADERA_DAC_DIGITAL_VOLUME_5L			0x431
287  #define MADERA_NOISE_GATE_SELECT_5L			0x433
288  #define MADERA_OUTPUT_PATH_CONFIG_5R			0x434
289  #define MADERA_DAC_DIGITAL_VOLUME_5R			0x435
290  #define MADERA_NOISE_GATE_SELECT_5R			0x437
291  #define MADERA_OUTPUT_PATH_CONFIG_6L			0x438
292  #define MADERA_DAC_DIGITAL_VOLUME_6L			0x439
293  #define MADERA_NOISE_GATE_SELECT_6L			0x43B
294  #define MADERA_OUTPUT_PATH_CONFIG_6R			0x43C
295  #define MADERA_DAC_DIGITAL_VOLUME_6R			0x43D
296  #define MADERA_NOISE_GATE_SELECT_6R			0x43F
297  #define MADERA_DAC_AEC_CONTROL_1			0x450
298  #define MADERA_DAC_AEC_CONTROL_2			0x451
299  #define MADERA_NOISE_GATE_CONTROL			0x458
300  #define MADERA_PDM_SPK1_CTRL_1				0x490
301  #define MADERA_PDM_SPK1_CTRL_2				0x491
302  #define MADERA_PDM_SPK2_CTRL_1				0x492
303  #define MADERA_PDM_SPK2_CTRL_2				0x493
304  #define MADERA_HP1_SHORT_CIRCUIT_CTRL			0x4A0
305  #define MADERA_HP2_SHORT_CIRCUIT_CTRL			0x4A1
306  #define MADERA_HP3_SHORT_CIRCUIT_CTRL			0x4A2
307  #define MADERA_HP_TEST_CTRL_1				0x4A4
308  #define MADERA_HP_TEST_CTRL_5				0x4A8
309  #define MADERA_HP_TEST_CTRL_6				0x4A9
310  #define MADERA_AIF1_BCLK_CTRL				0x500
311  #define MADERA_AIF1_TX_PIN_CTRL				0x501
312  #define MADERA_AIF1_RX_PIN_CTRL				0x502
313  #define MADERA_AIF1_RATE_CTRL				0x503
314  #define MADERA_AIF1_FORMAT				0x504
315  #define MADERA_AIF1_RX_BCLK_RATE			0x506
316  #define MADERA_AIF1_FRAME_CTRL_1			0x507
317  #define MADERA_AIF1_FRAME_CTRL_2			0x508
318  #define MADERA_AIF1_FRAME_CTRL_3			0x509
319  #define MADERA_AIF1_FRAME_CTRL_4			0x50A
320  #define MADERA_AIF1_FRAME_CTRL_5			0x50B
321  #define MADERA_AIF1_FRAME_CTRL_6			0x50C
322  #define MADERA_AIF1_FRAME_CTRL_7			0x50D
323  #define MADERA_AIF1_FRAME_CTRL_8			0x50E
324  #define MADERA_AIF1_FRAME_CTRL_9			0x50F
325  #define MADERA_AIF1_FRAME_CTRL_10			0x510
326  #define MADERA_AIF1_FRAME_CTRL_11			0x511
327  #define MADERA_AIF1_FRAME_CTRL_12			0x512
328  #define MADERA_AIF1_FRAME_CTRL_13			0x513
329  #define MADERA_AIF1_FRAME_CTRL_14			0x514
330  #define MADERA_AIF1_FRAME_CTRL_15			0x515
331  #define MADERA_AIF1_FRAME_CTRL_16			0x516
332  #define MADERA_AIF1_FRAME_CTRL_17			0x517
333  #define MADERA_AIF1_FRAME_CTRL_18			0x518
334  #define MADERA_AIF1_TX_ENABLES				0x519
335  #define MADERA_AIF1_RX_ENABLES				0x51A
336  #define MADERA_AIF1_FORCE_WRITE				0x51B
337  #define MADERA_AIF2_BCLK_CTRL				0x540
338  #define MADERA_AIF2_TX_PIN_CTRL				0x541
339  #define MADERA_AIF2_RX_PIN_CTRL				0x542
340  #define MADERA_AIF2_RATE_CTRL				0x543
341  #define MADERA_AIF2_FORMAT				0x544
342  #define MADERA_AIF2_RX_BCLK_RATE			0x546
343  #define MADERA_AIF2_FRAME_CTRL_1			0x547
344  #define MADERA_AIF2_FRAME_CTRL_2			0x548
345  #define MADERA_AIF2_FRAME_CTRL_3			0x549
346  #define MADERA_AIF2_FRAME_CTRL_4			0x54A
347  #define MADERA_AIF2_FRAME_CTRL_5			0x54B
348  #define MADERA_AIF2_FRAME_CTRL_6			0x54C
349  #define MADERA_AIF2_FRAME_CTRL_7			0x54D
350  #define MADERA_AIF2_FRAME_CTRL_8			0x54E
351  #define MADERA_AIF2_FRAME_CTRL_9			0x54F
352  #define MADERA_AIF2_FRAME_CTRL_10			0x550
353  #define MADERA_AIF2_FRAME_CTRL_11			0x551
354  #define MADERA_AIF2_FRAME_CTRL_12			0x552
355  #define MADERA_AIF2_FRAME_CTRL_13			0x553
356  #define MADERA_AIF2_FRAME_CTRL_14			0x554
357  #define MADERA_AIF2_FRAME_CTRL_15			0x555
358  #define MADERA_AIF2_FRAME_CTRL_16			0x556
359  #define MADERA_AIF2_FRAME_CTRL_17			0x557
360  #define MADERA_AIF2_FRAME_CTRL_18			0x558
361  #define MADERA_AIF2_TX_ENABLES				0x559
362  #define MADERA_AIF2_RX_ENABLES				0x55A
363  #define MADERA_AIF2_FORCE_WRITE				0x55B
364  #define MADERA_AIF3_BCLK_CTRL				0x580
365  #define MADERA_AIF3_TX_PIN_CTRL				0x581
366  #define MADERA_AIF3_RX_PIN_CTRL				0x582
367  #define MADERA_AIF3_RATE_CTRL				0x583
368  #define MADERA_AIF3_FORMAT				0x584
369  #define MADERA_AIF3_RX_BCLK_RATE			0x586
370  #define MADERA_AIF3_FRAME_CTRL_1			0x587
371  #define MADERA_AIF3_FRAME_CTRL_2			0x588
372  #define MADERA_AIF3_FRAME_CTRL_3			0x589
373  #define MADERA_AIF3_FRAME_CTRL_4			0x58A
374  #define MADERA_AIF3_FRAME_CTRL_5			0x58B
375  #define MADERA_AIF3_FRAME_CTRL_6			0x58C
376  #define MADERA_AIF3_FRAME_CTRL_7			0x58D
377  #define MADERA_AIF3_FRAME_CTRL_8			0x58E
378  #define MADERA_AIF3_FRAME_CTRL_9			0x58F
379  #define MADERA_AIF3_FRAME_CTRL_10			0x590
380  #define MADERA_AIF3_FRAME_CTRL_11			0x591
381  #define MADERA_AIF3_FRAME_CTRL_12			0x592
382  #define MADERA_AIF3_FRAME_CTRL_13			0x593
383  #define MADERA_AIF3_FRAME_CTRL_14			0x594
384  #define MADERA_AIF3_FRAME_CTRL_15			0x595
385  #define MADERA_AIF3_FRAME_CTRL_16			0x596
386  #define MADERA_AIF3_FRAME_CTRL_17			0x597
387  #define MADERA_AIF3_FRAME_CTRL_18			0x598
388  #define MADERA_AIF3_TX_ENABLES				0x599
389  #define MADERA_AIF3_RX_ENABLES				0x59A
390  #define MADERA_AIF3_FORCE_WRITE				0x59B
391  #define MADERA_AIF4_BCLK_CTRL				0x5A0
392  #define MADERA_AIF4_TX_PIN_CTRL				0x5A1
393  #define MADERA_AIF4_RX_PIN_CTRL				0x5A2
394  #define MADERA_AIF4_RATE_CTRL				0x5A3
395  #define MADERA_AIF4_FORMAT				0x5A4
396  #define MADERA_AIF4_RX_BCLK_RATE			0x5A6
397  #define MADERA_AIF4_FRAME_CTRL_1			0x5A7
398  #define MADERA_AIF4_FRAME_CTRL_2			0x5A8
399  #define MADERA_AIF4_FRAME_CTRL_3			0x5A9
400  #define MADERA_AIF4_FRAME_CTRL_4			0x5AA
401  #define MADERA_AIF4_FRAME_CTRL_11			0x5B1
402  #define MADERA_AIF4_FRAME_CTRL_12			0x5B2
403  #define MADERA_AIF4_TX_ENABLES				0x5B9
404  #define MADERA_AIF4_RX_ENABLES				0x5BA
405  #define MADERA_AIF4_FORCE_WRITE				0x5BB
406  #define MADERA_SPD1_TX_CONTROL				0x5C2
407  #define MADERA_SPD1_TX_CHANNEL_STATUS_1			0x5C3
408  #define MADERA_SPD1_TX_CHANNEL_STATUS_2			0x5C4
409  #define MADERA_SPD1_TX_CHANNEL_STATUS_3			0x5C5
410  #define MADERA_SLIMBUS_FRAMER_REF_GEAR			0x5E3
411  #define MADERA_SLIMBUS_RATES_1				0x5E5
412  #define MADERA_SLIMBUS_RATES_2				0x5E6
413  #define MADERA_SLIMBUS_RATES_3				0x5E7
414  #define MADERA_SLIMBUS_RATES_4				0x5E8
415  #define MADERA_SLIMBUS_RATES_5				0x5E9
416  #define MADERA_SLIMBUS_RATES_6				0x5EA
417  #define MADERA_SLIMBUS_RATES_7				0x5EB
418  #define MADERA_SLIMBUS_RATES_8				0x5EC
419  #define MADERA_SLIMBUS_RX_CHANNEL_ENABLE		0x5F5
420  #define MADERA_SLIMBUS_TX_CHANNEL_ENABLE		0x5F6
421  #define MADERA_SLIMBUS_RX_PORT_STATUS			0x5F7
422  #define MADERA_SLIMBUS_TX_PORT_STATUS			0x5F8
423  #define MADERA_PWM1MIX_INPUT_1_SOURCE			0x640
424  #define MADERA_PWM1MIX_INPUT_1_VOLUME			0x641
425  #define MADERA_PWM1MIX_INPUT_2_SOURCE			0x642
426  #define MADERA_PWM1MIX_INPUT_2_VOLUME			0x643
427  #define MADERA_PWM1MIX_INPUT_3_SOURCE			0x644
428  #define MADERA_PWM1MIX_INPUT_3_VOLUME			0x645
429  #define MADERA_PWM1MIX_INPUT_4_SOURCE			0x646
430  #define MADERA_PWM1MIX_INPUT_4_VOLUME			0x647
431  #define MADERA_PWM2MIX_INPUT_1_SOURCE			0x648
432  #define MADERA_PWM2MIX_INPUT_1_VOLUME			0x649
433  #define MADERA_PWM2MIX_INPUT_2_SOURCE			0x64A
434  #define MADERA_PWM2MIX_INPUT_2_VOLUME			0x64B
435  #define MADERA_PWM2MIX_INPUT_3_SOURCE			0x64C
436  #define MADERA_PWM2MIX_INPUT_3_VOLUME			0x64D
437  #define MADERA_PWM2MIX_INPUT_4_SOURCE			0x64E
438  #define MADERA_PWM2MIX_INPUT_4_VOLUME			0x64F
439  #define MADERA_OUT1LMIX_INPUT_1_SOURCE			0x680
440  #define MADERA_OUT1LMIX_INPUT_1_VOLUME			0x681
441  #define MADERA_OUT1LMIX_INPUT_2_SOURCE			0x682
442  #define MADERA_OUT1LMIX_INPUT_2_VOLUME			0x683
443  #define MADERA_OUT1LMIX_INPUT_3_SOURCE			0x684
444  #define MADERA_OUT1LMIX_INPUT_3_VOLUME			0x685
445  #define MADERA_OUT1LMIX_INPUT_4_SOURCE			0x686
446  #define MADERA_OUT1LMIX_INPUT_4_VOLUME			0x687
447  #define MADERA_OUT1RMIX_INPUT_1_SOURCE			0x688
448  #define MADERA_OUT1RMIX_INPUT_1_VOLUME			0x689
449  #define MADERA_OUT1RMIX_INPUT_2_SOURCE			0x68A
450  #define MADERA_OUT1RMIX_INPUT_2_VOLUME			0x68B
451  #define MADERA_OUT1RMIX_INPUT_3_SOURCE			0x68C
452  #define MADERA_OUT1RMIX_INPUT_3_VOLUME			0x68D
453  #define MADERA_OUT1RMIX_INPUT_4_SOURCE			0x68E
454  #define MADERA_OUT1RMIX_INPUT_4_VOLUME			0x68F
455  #define MADERA_OUT2LMIX_INPUT_1_SOURCE			0x690
456  #define MADERA_OUT2LMIX_INPUT_1_VOLUME			0x691
457  #define MADERA_OUT2LMIX_INPUT_2_SOURCE			0x692
458  #define MADERA_OUT2LMIX_INPUT_2_VOLUME			0x693
459  #define MADERA_OUT2LMIX_INPUT_3_SOURCE			0x694
460  #define MADERA_OUT2LMIX_INPUT_3_VOLUME			0x695
461  #define MADERA_OUT2LMIX_INPUT_4_SOURCE			0x696
462  #define MADERA_OUT2LMIX_INPUT_4_VOLUME			0x697
463  #define MADERA_OUT2RMIX_INPUT_1_SOURCE			0x698
464  #define MADERA_OUT2RMIX_INPUT_1_VOLUME			0x699
465  #define MADERA_OUT2RMIX_INPUT_2_SOURCE			0x69A
466  #define MADERA_OUT2RMIX_INPUT_2_VOLUME			0x69B
467  #define MADERA_OUT2RMIX_INPUT_3_SOURCE			0x69C
468  #define MADERA_OUT2RMIX_INPUT_3_VOLUME			0x69D
469  #define MADERA_OUT2RMIX_INPUT_4_SOURCE			0x69E
470  #define MADERA_OUT2RMIX_INPUT_4_VOLUME			0x69F
471  #define MADERA_OUT3LMIX_INPUT_1_SOURCE			0x6A0
472  #define MADERA_OUT3LMIX_INPUT_1_VOLUME			0x6A1
473  #define MADERA_OUT3LMIX_INPUT_2_SOURCE			0x6A2
474  #define MADERA_OUT3LMIX_INPUT_2_VOLUME			0x6A3
475  #define MADERA_OUT3LMIX_INPUT_3_SOURCE			0x6A4
476  #define MADERA_OUT3LMIX_INPUT_3_VOLUME			0x6A5
477  #define MADERA_OUT3LMIX_INPUT_4_SOURCE			0x6A6
478  #define MADERA_OUT3LMIX_INPUT_4_VOLUME			0x6A7
479  #define MADERA_OUT3RMIX_INPUT_1_SOURCE			0x6A8
480  #define MADERA_OUT3RMIX_INPUT_1_VOLUME			0x6A9
481  #define MADERA_OUT3RMIX_INPUT_2_SOURCE			0x6AA
482  #define MADERA_OUT3RMIX_INPUT_2_VOLUME			0x6AB
483  #define MADERA_OUT3RMIX_INPUT_3_SOURCE			0x6AC
484  #define MADERA_OUT3RMIX_INPUT_3_VOLUME			0x6AD
485  #define MADERA_OUT3RMIX_INPUT_4_SOURCE			0x6AE
486  #define MADERA_OUT3RMIX_INPUT_4_VOLUME			0x6AF
487  #define MADERA_OUT4LMIX_INPUT_1_SOURCE			0x6B0
488  #define MADERA_OUT4LMIX_INPUT_1_VOLUME			0x6B1
489  #define MADERA_OUT4LMIX_INPUT_2_SOURCE			0x6B2
490  #define MADERA_OUT4LMIX_INPUT_2_VOLUME			0x6B3
491  #define MADERA_OUT4LMIX_INPUT_3_SOURCE			0x6B4
492  #define MADERA_OUT4LMIX_INPUT_3_VOLUME			0x6B5
493  #define MADERA_OUT4LMIX_INPUT_4_SOURCE			0x6B6
494  #define MADERA_OUT4LMIX_INPUT_4_VOLUME			0x6B7
495  #define MADERA_OUT4RMIX_INPUT_1_SOURCE			0x6B8
496  #define MADERA_OUT4RMIX_INPUT_1_VOLUME			0x6B9
497  #define MADERA_OUT4RMIX_INPUT_2_SOURCE			0x6BA
498  #define MADERA_OUT4RMIX_INPUT_2_VOLUME			0x6BB
499  #define MADERA_OUT4RMIX_INPUT_3_SOURCE			0x6BC
500  #define MADERA_OUT4RMIX_INPUT_3_VOLUME			0x6BD
501  #define MADERA_OUT4RMIX_INPUT_4_SOURCE			0x6BE
502  #define MADERA_OUT4RMIX_INPUT_4_VOLUME			0x6BF
503  #define MADERA_OUT5LMIX_INPUT_1_SOURCE			0x6C0
504  #define MADERA_OUT5LMIX_INPUT_1_VOLUME			0x6C1
505  #define MADERA_OUT5LMIX_INPUT_2_SOURCE			0x6C2
506  #define MADERA_OUT5LMIX_INPUT_2_VOLUME			0x6C3
507  #define MADERA_OUT5LMIX_INPUT_3_SOURCE			0x6C4
508  #define MADERA_OUT5LMIX_INPUT_3_VOLUME			0x6C5
509  #define MADERA_OUT5LMIX_INPUT_4_SOURCE			0x6C6
510  #define MADERA_OUT5LMIX_INPUT_4_VOLUME			0x6C7
511  #define MADERA_OUT5RMIX_INPUT_1_SOURCE			0x6C8
512  #define MADERA_OUT5RMIX_INPUT_1_VOLUME			0x6C9
513  #define MADERA_OUT5RMIX_INPUT_2_SOURCE			0x6CA
514  #define MADERA_OUT5RMIX_INPUT_2_VOLUME			0x6CB
515  #define MADERA_OUT5RMIX_INPUT_3_SOURCE			0x6CC
516  #define MADERA_OUT5RMIX_INPUT_3_VOLUME			0x6CD
517  #define MADERA_OUT5RMIX_INPUT_4_SOURCE			0x6CE
518  #define MADERA_OUT5RMIX_INPUT_4_VOLUME			0x6CF
519  #define MADERA_OUT6LMIX_INPUT_1_SOURCE			0x6D0
520  #define MADERA_OUT6LMIX_INPUT_1_VOLUME			0x6D1
521  #define MADERA_OUT6LMIX_INPUT_2_SOURCE			0x6D2
522  #define MADERA_OUT6LMIX_INPUT_2_VOLUME			0x6D3
523  #define MADERA_OUT6LMIX_INPUT_3_SOURCE			0x6D4
524  #define MADERA_OUT6LMIX_INPUT_3_VOLUME			0x6D5
525  #define MADERA_OUT6LMIX_INPUT_4_SOURCE			0x6D6
526  #define MADERA_OUT6LMIX_INPUT_4_VOLUME			0x6D7
527  #define MADERA_OUT6RMIX_INPUT_1_SOURCE			0x6D8
528  #define MADERA_OUT6RMIX_INPUT_1_VOLUME			0x6D9
529  #define MADERA_OUT6RMIX_INPUT_2_SOURCE			0x6DA
530  #define MADERA_OUT6RMIX_INPUT_2_VOLUME			0x6DB
531  #define MADERA_OUT6RMIX_INPUT_3_SOURCE			0x6DC
532  #define MADERA_OUT6RMIX_INPUT_3_VOLUME			0x6DD
533  #define MADERA_OUT6RMIX_INPUT_4_SOURCE			0x6DE
534  #define MADERA_OUT6RMIX_INPUT_4_VOLUME			0x6DF
535  #define MADERA_AIF1TX1MIX_INPUT_1_SOURCE		0x700
536  #define MADERA_AIF1TX1MIX_INPUT_1_VOLUME		0x701
537  #define MADERA_AIF1TX1MIX_INPUT_2_SOURCE		0x702
538  #define MADERA_AIF1TX1MIX_INPUT_2_VOLUME		0x703
539  #define MADERA_AIF1TX1MIX_INPUT_3_SOURCE		0x704
540  #define MADERA_AIF1TX1MIX_INPUT_3_VOLUME		0x705
541  #define MADERA_AIF1TX1MIX_INPUT_4_SOURCE		0x706
542  #define MADERA_AIF1TX1MIX_INPUT_4_VOLUME		0x707
543  #define MADERA_AIF1TX2MIX_INPUT_1_SOURCE		0x708
544  #define MADERA_AIF1TX2MIX_INPUT_1_VOLUME		0x709
545  #define MADERA_AIF1TX2MIX_INPUT_2_SOURCE		0x70A
546  #define MADERA_AIF1TX2MIX_INPUT_2_VOLUME		0x70B
547  #define MADERA_AIF1TX2MIX_INPUT_3_SOURCE		0x70C
548  #define MADERA_AIF1TX2MIX_INPUT_3_VOLUME		0x70D
549  #define MADERA_AIF1TX2MIX_INPUT_4_SOURCE		0x70E
550  #define MADERA_AIF1TX2MIX_INPUT_4_VOLUME		0x70F
551  #define MADERA_AIF1TX3MIX_INPUT_1_SOURCE		0x710
552  #define MADERA_AIF1TX3MIX_INPUT_1_VOLUME		0x711
553  #define MADERA_AIF1TX3MIX_INPUT_2_SOURCE		0x712
554  #define MADERA_AIF1TX3MIX_INPUT_2_VOLUME		0x713
555  #define MADERA_AIF1TX3MIX_INPUT_3_SOURCE		0x714
556  #define MADERA_AIF1TX3MIX_INPUT_3_VOLUME		0x715
557  #define MADERA_AIF1TX3MIX_INPUT_4_SOURCE		0x716
558  #define MADERA_AIF1TX3MIX_INPUT_4_VOLUME		0x717
559  #define MADERA_AIF1TX4MIX_INPUT_1_SOURCE		0x718
560  #define MADERA_AIF1TX4MIX_INPUT_1_VOLUME		0x719
561  #define MADERA_AIF1TX4MIX_INPUT_2_SOURCE		0x71A
562  #define MADERA_AIF1TX4MIX_INPUT_2_VOLUME		0x71B
563  #define MADERA_AIF1TX4MIX_INPUT_3_SOURCE		0x71C
564  #define MADERA_AIF1TX4MIX_INPUT_3_VOLUME		0x71D
565  #define MADERA_AIF1TX4MIX_INPUT_4_SOURCE		0x71E
566  #define MADERA_AIF1TX4MIX_INPUT_4_VOLUME		0x71F
567  #define MADERA_AIF1TX5MIX_INPUT_1_SOURCE		0x720
568  #define MADERA_AIF1TX5MIX_INPUT_1_VOLUME		0x721
569  #define MADERA_AIF1TX5MIX_INPUT_2_SOURCE		0x722
570  #define MADERA_AIF1TX5MIX_INPUT_2_VOLUME		0x723
571  #define MADERA_AIF1TX5MIX_INPUT_3_SOURCE		0x724
572  #define MADERA_AIF1TX5MIX_INPUT_3_VOLUME		0x725
573  #define MADERA_AIF1TX5MIX_INPUT_4_SOURCE		0x726
574  #define MADERA_AIF1TX5MIX_INPUT_4_VOLUME		0x727
575  #define MADERA_AIF1TX6MIX_INPUT_1_SOURCE		0x728
576  #define MADERA_AIF1TX6MIX_INPUT_1_VOLUME		0x729
577  #define MADERA_AIF1TX6MIX_INPUT_2_SOURCE		0x72A
578  #define MADERA_AIF1TX6MIX_INPUT_2_VOLUME		0x72B
579  #define MADERA_AIF1TX6MIX_INPUT_3_SOURCE		0x72C
580  #define MADERA_AIF1TX6MIX_INPUT_3_VOLUME		0x72D
581  #define MADERA_AIF1TX6MIX_INPUT_4_SOURCE		0x72E
582  #define MADERA_AIF1TX6MIX_INPUT_4_VOLUME		0x72F
583  #define MADERA_AIF1TX7MIX_INPUT_1_SOURCE		0x730
584  #define MADERA_AIF1TX7MIX_INPUT_1_VOLUME		0x731
585  #define MADERA_AIF1TX7MIX_INPUT_2_SOURCE		0x732
586  #define MADERA_AIF1TX7MIX_INPUT_2_VOLUME		0x733
587  #define MADERA_AIF1TX7MIX_INPUT_3_SOURCE		0x734
588  #define MADERA_AIF1TX7MIX_INPUT_3_VOLUME		0x735
589  #define MADERA_AIF1TX7MIX_INPUT_4_SOURCE		0x736
590  #define MADERA_AIF1TX7MIX_INPUT_4_VOLUME		0x737
591  #define MADERA_AIF1TX8MIX_INPUT_1_SOURCE		0x738
592  #define MADERA_AIF1TX8MIX_INPUT_1_VOLUME		0x739
593  #define MADERA_AIF1TX8MIX_INPUT_2_SOURCE		0x73A
594  #define MADERA_AIF1TX8MIX_INPUT_2_VOLUME		0x73B
595  #define MADERA_AIF1TX8MIX_INPUT_3_SOURCE		0x73C
596  #define MADERA_AIF1TX8MIX_INPUT_3_VOLUME		0x73D
597  #define MADERA_AIF1TX8MIX_INPUT_4_SOURCE		0x73E
598  #define MADERA_AIF1TX8MIX_INPUT_4_VOLUME		0x73F
599  #define MADERA_AIF2TX1MIX_INPUT_1_SOURCE		0x740
600  #define MADERA_AIF2TX1MIX_INPUT_1_VOLUME		0x741
601  #define MADERA_AIF2TX1MIX_INPUT_2_SOURCE		0x742
602  #define MADERA_AIF2TX1MIX_INPUT_2_VOLUME		0x743
603  #define MADERA_AIF2TX1MIX_INPUT_3_SOURCE		0x744
604  #define MADERA_AIF2TX1MIX_INPUT_3_VOLUME		0x745
605  #define MADERA_AIF2TX1MIX_INPUT_4_SOURCE		0x746
606  #define MADERA_AIF2TX1MIX_INPUT_4_VOLUME		0x747
607  #define MADERA_AIF2TX2MIX_INPUT_1_SOURCE		0x748
608  #define MADERA_AIF2TX2MIX_INPUT_1_VOLUME		0x749
609  #define MADERA_AIF2TX2MIX_INPUT_2_SOURCE		0x74A
610  #define MADERA_AIF2TX2MIX_INPUT_2_VOLUME		0x74B
611  #define MADERA_AIF2TX2MIX_INPUT_3_SOURCE		0x74C
612  #define MADERA_AIF2TX2MIX_INPUT_3_VOLUME		0x74D
613  #define MADERA_AIF2TX2MIX_INPUT_4_SOURCE		0x74E
614  #define MADERA_AIF2TX2MIX_INPUT_4_VOLUME		0x74F
615  #define MADERA_AIF2TX3MIX_INPUT_1_SOURCE		0x750
616  #define MADERA_AIF2TX3MIX_INPUT_1_VOLUME		0x751
617  #define MADERA_AIF2TX3MIX_INPUT_2_SOURCE		0x752
618  #define MADERA_AIF2TX3MIX_INPUT_2_VOLUME		0x753
619  #define MADERA_AIF2TX3MIX_INPUT_3_SOURCE		0x754
620  #define MADERA_AIF2TX3MIX_INPUT_3_VOLUME		0x755
621  #define MADERA_AIF2TX3MIX_INPUT_4_SOURCE		0x756
622  #define MADERA_AIF2TX3MIX_INPUT_4_VOLUME		0x757
623  #define MADERA_AIF2TX4MIX_INPUT_1_SOURCE		0x758
624  #define MADERA_AIF2TX4MIX_INPUT_1_VOLUME		0x759
625  #define MADERA_AIF2TX4MIX_INPUT_2_SOURCE		0x75A
626  #define MADERA_AIF2TX4MIX_INPUT_2_VOLUME		0x75B
627  #define MADERA_AIF2TX4MIX_INPUT_3_SOURCE		0x75C
628  #define MADERA_AIF2TX4MIX_INPUT_3_VOLUME		0x75D
629  #define MADERA_AIF2TX4MIX_INPUT_4_SOURCE		0x75E
630  #define MADERA_AIF2TX4MIX_INPUT_4_VOLUME		0x75F
631  #define MADERA_AIF2TX5MIX_INPUT_1_SOURCE		0x760
632  #define MADERA_AIF2TX5MIX_INPUT_1_VOLUME		0x761
633  #define MADERA_AIF2TX5MIX_INPUT_2_SOURCE		0x762
634  #define MADERA_AIF2TX5MIX_INPUT_2_VOLUME		0x763
635  #define MADERA_AIF2TX5MIX_INPUT_3_SOURCE		0x764
636  #define MADERA_AIF2TX5MIX_INPUT_3_VOLUME		0x765
637  #define MADERA_AIF2TX5MIX_INPUT_4_SOURCE		0x766
638  #define MADERA_AIF2TX5MIX_INPUT_4_VOLUME		0x767
639  #define MADERA_AIF2TX6MIX_INPUT_1_SOURCE		0x768
640  #define MADERA_AIF2TX6MIX_INPUT_1_VOLUME		0x769
641  #define MADERA_AIF2TX6MIX_INPUT_2_SOURCE		0x76A
642  #define MADERA_AIF2TX6MIX_INPUT_2_VOLUME		0x76B
643  #define MADERA_AIF2TX6MIX_INPUT_3_SOURCE		0x76C
644  #define MADERA_AIF2TX6MIX_INPUT_3_VOLUME		0x76D
645  #define MADERA_AIF2TX6MIX_INPUT_4_SOURCE		0x76E
646  #define MADERA_AIF2TX6MIX_INPUT_4_VOLUME		0x76F
647  #define MADERA_AIF2TX7MIX_INPUT_1_SOURCE		0x770
648  #define MADERA_AIF2TX7MIX_INPUT_1_VOLUME		0x771
649  #define MADERA_AIF2TX7MIX_INPUT_2_SOURCE		0x772
650  #define MADERA_AIF2TX7MIX_INPUT_2_VOLUME		0x773
651  #define MADERA_AIF2TX7MIX_INPUT_3_SOURCE		0x774
652  #define MADERA_AIF2TX7MIX_INPUT_3_VOLUME		0x775
653  #define MADERA_AIF2TX7MIX_INPUT_4_SOURCE		0x776
654  #define MADERA_AIF2TX7MIX_INPUT_4_VOLUME		0x777
655  #define MADERA_AIF2TX8MIX_INPUT_1_SOURCE		0x778
656  #define MADERA_AIF2TX8MIX_INPUT_1_VOLUME		0x779
657  #define MADERA_AIF2TX8MIX_INPUT_2_SOURCE		0x77A
658  #define MADERA_AIF2TX8MIX_INPUT_2_VOLUME		0x77B
659  #define MADERA_AIF2TX8MIX_INPUT_3_SOURCE		0x77C
660  #define MADERA_AIF2TX8MIX_INPUT_3_VOLUME		0x77D
661  #define MADERA_AIF2TX8MIX_INPUT_4_SOURCE		0x77E
662  #define MADERA_AIF2TX8MIX_INPUT_4_VOLUME		0x77F
663  #define MADERA_AIF3TX1MIX_INPUT_1_SOURCE		0x780
664  #define MADERA_AIF3TX1MIX_INPUT_1_VOLUME		0x781
665  #define MADERA_AIF3TX1MIX_INPUT_2_SOURCE		0x782
666  #define MADERA_AIF3TX1MIX_INPUT_2_VOLUME		0x783
667  #define MADERA_AIF3TX1MIX_INPUT_3_SOURCE		0x784
668  #define MADERA_AIF3TX1MIX_INPUT_3_VOLUME		0x785
669  #define MADERA_AIF3TX1MIX_INPUT_4_SOURCE		0x786
670  #define MADERA_AIF3TX1MIX_INPUT_4_VOLUME		0x787
671  #define MADERA_AIF3TX2MIX_INPUT_1_SOURCE		0x788
672  #define MADERA_AIF3TX2MIX_INPUT_1_VOLUME		0x789
673  #define MADERA_AIF3TX2MIX_INPUT_2_SOURCE		0x78A
674  #define MADERA_AIF3TX2MIX_INPUT_2_VOLUME		0x78B
675  #define MADERA_AIF3TX2MIX_INPUT_3_SOURCE		0x78C
676  #define MADERA_AIF3TX2MIX_INPUT_3_VOLUME		0x78D
677  #define MADERA_AIF3TX2MIX_INPUT_4_SOURCE		0x78E
678  #define MADERA_AIF3TX2MIX_INPUT_4_VOLUME		0x78F
679  #define MADERA_AIF3TX3MIX_INPUT_1_SOURCE		0x790
680  #define MADERA_AIF3TX3MIX_INPUT_1_VOLUME		0x791
681  #define MADERA_AIF3TX3MIX_INPUT_2_SOURCE		0x792
682  #define MADERA_AIF3TX3MIX_INPUT_2_VOLUME		0x793
683  #define MADERA_AIF3TX3MIX_INPUT_3_SOURCE		0x794
684  #define MADERA_AIF3TX3MIX_INPUT_3_VOLUME		0x795
685  #define MADERA_AIF3TX3MIX_INPUT_4_SOURCE		0x796
686  #define MADERA_AIF3TX3MIX_INPUT_4_VOLUME		0x797
687  #define MADERA_AIF3TX4MIX_INPUT_1_SOURCE		0x798
688  #define MADERA_AIF3TX4MIX_INPUT_1_VOLUME		0x799
689  #define MADERA_AIF3TX4MIX_INPUT_2_SOURCE		0x79A
690  #define MADERA_AIF3TX4MIX_INPUT_2_VOLUME		0x79B
691  #define MADERA_AIF3TX4MIX_INPUT_3_SOURCE		0x79C
692  #define MADERA_AIF3TX4MIX_INPUT_3_VOLUME		0x79D
693  #define MADERA_AIF3TX4MIX_INPUT_4_SOURCE		0x79E
694  #define MADERA_AIF3TX4MIX_INPUT_4_VOLUME		0x79F
695  #define CS47L92_AIF3TX5MIX_INPUT_1_SOURCE		0x7A0
696  #define CS47L92_AIF3TX5MIX_INPUT_1_VOLUME		0x7A1
697  #define CS47L92_AIF3TX5MIX_INPUT_2_SOURCE		0x7A2
698  #define CS47L92_AIF3TX5MIX_INPUT_2_VOLUME		0x7A3
699  #define CS47L92_AIF3TX5MIX_INPUT_3_SOURCE		0x7A4
700  #define CS47L92_AIF3TX5MIX_INPUT_3_VOLUME		0x7A5
701  #define CS47L92_AIF3TX5MIX_INPUT_4_SOURCE		0x7A6
702  #define CS47L92_AIF3TX5MIX_INPUT_4_VOLUME		0x7A7
703  #define CS47L92_AIF3TX6MIX_INPUT_1_SOURCE		0x7A8
704  #define CS47L92_AIF3TX6MIX_INPUT_1_VOLUME		0x7A9
705  #define CS47L92_AIF3TX6MIX_INPUT_2_SOURCE		0x7AA
706  #define CS47L92_AIF3TX6MIX_INPUT_2_VOLUME		0x7AB
707  #define CS47L92_AIF3TX6MIX_INPUT_3_SOURCE		0x7AC
708  #define CS47L92_AIF3TX6MIX_INPUT_3_VOLUME		0x7AD
709  #define CS47L92_AIF3TX6MIX_INPUT_4_SOURCE		0x7AE
710  #define CS47L92_AIF3TX6MIX_INPUT_4_VOLUME		0x7AF
711  #define CS47L92_AIF3TX7MIX_INPUT_1_SOURCE		0x7B0
712  #define CS47L92_AIF3TX7MIX_INPUT_1_VOLUME		0x7B1
713  #define CS47L92_AIF3TX7MIX_INPUT_2_SOURCE		0x7B2
714  #define CS47L92_AIF3TX7MIX_INPUT_2_VOLUME		0x7B3
715  #define CS47L92_AIF3TX7MIX_INPUT_3_SOURCE		0x7B4
716  #define CS47L92_AIF3TX7MIX_INPUT_3_VOLUME		0x7B5
717  #define CS47L92_AIF3TX7MIX_INPUT_4_SOURCE		0x7B6
718  #define CS47L92_AIF3TX7MIX_INPUT_4_VOLUME		0x7B7
719  #define CS47L92_AIF3TX8MIX_INPUT_1_SOURCE		0x7B8
720  #define CS47L92_AIF3TX8MIX_INPUT_1_VOLUME		0x7B9
721  #define CS47L92_AIF3TX8MIX_INPUT_2_SOURCE		0x7BA
722  #define CS47L92_AIF3TX8MIX_INPUT_2_VOLUME		0x7BB
723  #define CS47L92_AIF3TX8MIX_INPUT_3_SOURCE		0x7BC
724  #define CS47L92_AIF3TX8MIX_INPUT_3_VOLUME		0x7BD
725  #define CS47L92_AIF3TX8MIX_INPUT_4_SOURCE		0x7BE
726  #define CS47L92_AIF3TX8MIX_INPUT_4_VOLUME		0x7BF
727  #define MADERA_AIF4TX1MIX_INPUT_1_SOURCE		0x7A0
728  #define MADERA_AIF4TX1MIX_INPUT_1_VOLUME		0x7A1
729  #define MADERA_AIF4TX1MIX_INPUT_2_SOURCE		0x7A2
730  #define MADERA_AIF4TX1MIX_INPUT_2_VOLUME		0x7A3
731  #define MADERA_AIF4TX1MIX_INPUT_3_SOURCE		0x7A4
732  #define MADERA_AIF4TX1MIX_INPUT_3_VOLUME		0x7A5
733  #define MADERA_AIF4TX1MIX_INPUT_4_SOURCE		0x7A6
734  #define MADERA_AIF4TX1MIX_INPUT_4_VOLUME		0x7A7
735  #define MADERA_AIF4TX2MIX_INPUT_1_SOURCE		0x7A8
736  #define MADERA_AIF4TX2MIX_INPUT_1_VOLUME		0x7A9
737  #define MADERA_AIF4TX2MIX_INPUT_2_SOURCE		0x7AA
738  #define MADERA_AIF4TX2MIX_INPUT_2_VOLUME		0x7AB
739  #define MADERA_AIF4TX2MIX_INPUT_3_SOURCE		0x7AC
740  #define MADERA_AIF4TX2MIX_INPUT_3_VOLUME		0x7AD
741  #define MADERA_AIF4TX2MIX_INPUT_4_SOURCE		0x7AE
742  #define MADERA_AIF4TX2MIX_INPUT_4_VOLUME		0x7AF
743  #define MADERA_SLIMTX1MIX_INPUT_1_SOURCE		0x7C0
744  #define MADERA_SLIMTX1MIX_INPUT_1_VOLUME		0x7C1
745  #define MADERA_SLIMTX1MIX_INPUT_2_SOURCE		0x7C2
746  #define MADERA_SLIMTX1MIX_INPUT_2_VOLUME		0x7C3
747  #define MADERA_SLIMTX1MIX_INPUT_3_SOURCE		0x7C4
748  #define MADERA_SLIMTX1MIX_INPUT_3_VOLUME		0x7C5
749  #define MADERA_SLIMTX1MIX_INPUT_4_SOURCE		0x7C6
750  #define MADERA_SLIMTX1MIX_INPUT_4_VOLUME		0x7C7
751  #define MADERA_SLIMTX2MIX_INPUT_1_SOURCE		0x7C8
752  #define MADERA_SLIMTX2MIX_INPUT_1_VOLUME		0x7C9
753  #define MADERA_SLIMTX2MIX_INPUT_2_SOURCE		0x7CA
754  #define MADERA_SLIMTX2MIX_INPUT_2_VOLUME		0x7CB
755  #define MADERA_SLIMTX2MIX_INPUT_3_SOURCE		0x7CC
756  #define MADERA_SLIMTX2MIX_INPUT_3_VOLUME		0x7CD
757  #define MADERA_SLIMTX2MIX_INPUT_4_SOURCE		0x7CE
758  #define MADERA_SLIMTX2MIX_INPUT_4_VOLUME		0x7CF
759  #define MADERA_SLIMTX3MIX_INPUT_1_SOURCE		0x7D0
760  #define MADERA_SLIMTX3MIX_INPUT_1_VOLUME		0x7D1
761  #define MADERA_SLIMTX3MIX_INPUT_2_SOURCE		0x7D2
762  #define MADERA_SLIMTX3MIX_INPUT_2_VOLUME		0x7D3
763  #define MADERA_SLIMTX3MIX_INPUT_3_SOURCE		0x7D4
764  #define MADERA_SLIMTX3MIX_INPUT_3_VOLUME		0x7D5
765  #define MADERA_SLIMTX3MIX_INPUT_4_SOURCE		0x7D6
766  #define MADERA_SLIMTX3MIX_INPUT_4_VOLUME		0x7D7
767  #define MADERA_SLIMTX4MIX_INPUT_1_SOURCE		0x7D8
768  #define MADERA_SLIMTX4MIX_INPUT_1_VOLUME		0x7D9
769  #define MADERA_SLIMTX4MIX_INPUT_2_SOURCE		0x7DA
770  #define MADERA_SLIMTX4MIX_INPUT_2_VOLUME		0x7DB
771  #define MADERA_SLIMTX4MIX_INPUT_3_SOURCE		0x7DC
772  #define MADERA_SLIMTX4MIX_INPUT_3_VOLUME		0x7DD
773  #define MADERA_SLIMTX4MIX_INPUT_4_SOURCE		0x7DE
774  #define MADERA_SLIMTX4MIX_INPUT_4_VOLUME		0x7DF
775  #define MADERA_SLIMTX5MIX_INPUT_1_SOURCE		0x7E0
776  #define MADERA_SLIMTX5MIX_INPUT_1_VOLUME		0x7E1
777  #define MADERA_SLIMTX5MIX_INPUT_2_SOURCE		0x7E2
778  #define MADERA_SLIMTX5MIX_INPUT_2_VOLUME		0x7E3
779  #define MADERA_SLIMTX5MIX_INPUT_3_SOURCE		0x7E4
780  #define MADERA_SLIMTX5MIX_INPUT_3_VOLUME		0x7E5
781  #define MADERA_SLIMTX5MIX_INPUT_4_SOURCE		0x7E6
782  #define MADERA_SLIMTX5MIX_INPUT_4_VOLUME		0x7E7
783  #define MADERA_SLIMTX6MIX_INPUT_1_SOURCE		0x7E8
784  #define MADERA_SLIMTX6MIX_INPUT_1_VOLUME		0x7E9
785  #define MADERA_SLIMTX6MIX_INPUT_2_SOURCE		0x7EA
786  #define MADERA_SLIMTX6MIX_INPUT_2_VOLUME		0x7EB
787  #define MADERA_SLIMTX6MIX_INPUT_3_SOURCE		0x7EC
788  #define MADERA_SLIMTX6MIX_INPUT_3_VOLUME		0x7ED
789  #define MADERA_SLIMTX6MIX_INPUT_4_SOURCE		0x7EE
790  #define MADERA_SLIMTX6MIX_INPUT_4_VOLUME		0x7EF
791  #define MADERA_SLIMTX7MIX_INPUT_1_SOURCE		0x7F0
792  #define MADERA_SLIMTX7MIX_INPUT_1_VOLUME		0x7F1
793  #define MADERA_SLIMTX7MIX_INPUT_2_SOURCE		0x7F2
794  #define MADERA_SLIMTX7MIX_INPUT_2_VOLUME		0x7F3
795  #define MADERA_SLIMTX7MIX_INPUT_3_SOURCE		0x7F4
796  #define MADERA_SLIMTX7MIX_INPUT_3_VOLUME		0x7F5
797  #define MADERA_SLIMTX7MIX_INPUT_4_SOURCE		0x7F6
798  #define MADERA_SLIMTX7MIX_INPUT_4_VOLUME		0x7F7
799  #define MADERA_SLIMTX8MIX_INPUT_1_SOURCE		0x7F8
800  #define MADERA_SLIMTX8MIX_INPUT_1_VOLUME		0x7F9
801  #define MADERA_SLIMTX8MIX_INPUT_2_SOURCE		0x7FA
802  #define MADERA_SLIMTX8MIX_INPUT_2_VOLUME		0x7FB
803  #define MADERA_SLIMTX8MIX_INPUT_3_SOURCE		0x7FC
804  #define MADERA_SLIMTX8MIX_INPUT_3_VOLUME		0x7FD
805  #define MADERA_SLIMTX8MIX_INPUT_4_SOURCE		0x7FE
806  #define MADERA_SLIMTX8MIX_INPUT_4_VOLUME		0x7FF
807  #define MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE		0x800
808  #define MADERA_SPDIF1TX1MIX_INPUT_1_VOLUME		0x801
809  #define MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE		0x808
810  #define MADERA_SPDIF1TX2MIX_INPUT_1_VOLUME		0x809
811  #define MADERA_EQ1MIX_INPUT_1_SOURCE			0x880
812  #define MADERA_EQ1MIX_INPUT_1_VOLUME			0x881
813  #define MADERA_EQ1MIX_INPUT_2_SOURCE			0x882
814  #define MADERA_EQ1MIX_INPUT_2_VOLUME			0x883
815  #define MADERA_EQ1MIX_INPUT_3_SOURCE			0x884
816  #define MADERA_EQ1MIX_INPUT_3_VOLUME			0x885
817  #define MADERA_EQ1MIX_INPUT_4_SOURCE			0x886
818  #define MADERA_EQ1MIX_INPUT_4_VOLUME			0x887
819  #define MADERA_EQ2MIX_INPUT_1_SOURCE			0x888
820  #define MADERA_EQ2MIX_INPUT_1_VOLUME			0x889
821  #define MADERA_EQ2MIX_INPUT_2_SOURCE			0x88A
822  #define MADERA_EQ2MIX_INPUT_2_VOLUME			0x88B
823  #define MADERA_EQ2MIX_INPUT_3_SOURCE			0x88C
824  #define MADERA_EQ2MIX_INPUT_3_VOLUME			0x88D
825  #define MADERA_EQ2MIX_INPUT_4_SOURCE			0x88E
826  #define MADERA_EQ2MIX_INPUT_4_VOLUME			0x88F
827  #define MADERA_EQ3MIX_INPUT_1_SOURCE			0x890
828  #define MADERA_EQ3MIX_INPUT_1_VOLUME			0x891
829  #define MADERA_EQ3MIX_INPUT_2_SOURCE			0x892
830  #define MADERA_EQ3MIX_INPUT_2_VOLUME			0x893
831  #define MADERA_EQ3MIX_INPUT_3_SOURCE			0x894
832  #define MADERA_EQ3MIX_INPUT_3_VOLUME			0x895
833  #define MADERA_EQ3MIX_INPUT_4_SOURCE			0x896
834  #define MADERA_EQ3MIX_INPUT_4_VOLUME			0x897
835  #define MADERA_EQ4MIX_INPUT_1_SOURCE			0x898
836  #define MADERA_EQ4MIX_INPUT_1_VOLUME			0x899
837  #define MADERA_EQ4MIX_INPUT_2_SOURCE			0x89A
838  #define MADERA_EQ4MIX_INPUT_2_VOLUME			0x89B
839  #define MADERA_EQ4MIX_INPUT_3_SOURCE			0x89C
840  #define MADERA_EQ4MIX_INPUT_3_VOLUME			0x89D
841  #define MADERA_EQ4MIX_INPUT_4_SOURCE			0x89E
842  #define MADERA_EQ4MIX_INPUT_4_VOLUME			0x89F
843  #define MADERA_DRC1LMIX_INPUT_1_SOURCE			0x8C0
844  #define MADERA_DRC1LMIX_INPUT_1_VOLUME			0x8C1
845  #define MADERA_DRC1LMIX_INPUT_2_SOURCE			0x8C2
846  #define MADERA_DRC1LMIX_INPUT_2_VOLUME			0x8C3
847  #define MADERA_DRC1LMIX_INPUT_3_SOURCE			0x8C4
848  #define MADERA_DRC1LMIX_INPUT_3_VOLUME			0x8C5
849  #define MADERA_DRC1LMIX_INPUT_4_SOURCE			0x8C6
850  #define MADERA_DRC1LMIX_INPUT_4_VOLUME			0x8C7
851  #define MADERA_DRC1RMIX_INPUT_1_SOURCE			0x8C8
852  #define MADERA_DRC1RMIX_INPUT_1_VOLUME			0x8C9
853  #define MADERA_DRC1RMIX_INPUT_2_SOURCE			0x8CA
854  #define MADERA_DRC1RMIX_INPUT_2_VOLUME			0x8CB
855  #define MADERA_DRC1RMIX_INPUT_3_SOURCE			0x8CC
856  #define MADERA_DRC1RMIX_INPUT_3_VOLUME			0x8CD
857  #define MADERA_DRC1RMIX_INPUT_4_SOURCE			0x8CE
858  #define MADERA_DRC1RMIX_INPUT_4_VOLUME			0x8CF
859  #define MADERA_DRC2LMIX_INPUT_1_SOURCE			0x8D0
860  #define MADERA_DRC2LMIX_INPUT_1_VOLUME			0x8D1
861  #define MADERA_DRC2LMIX_INPUT_2_SOURCE			0x8D2
862  #define MADERA_DRC2LMIX_INPUT_2_VOLUME			0x8D3
863  #define MADERA_DRC2LMIX_INPUT_3_SOURCE			0x8D4
864  #define MADERA_DRC2LMIX_INPUT_3_VOLUME			0x8D5
865  #define MADERA_DRC2LMIX_INPUT_4_SOURCE			0x8D6
866  #define MADERA_DRC2LMIX_INPUT_4_VOLUME			0x8D7
867  #define MADERA_DRC2RMIX_INPUT_1_SOURCE			0x8D8
868  #define MADERA_DRC2RMIX_INPUT_1_VOLUME			0x8D9
869  #define MADERA_DRC2RMIX_INPUT_2_SOURCE			0x8DA
870  #define MADERA_DRC2RMIX_INPUT_2_VOLUME			0x8DB
871  #define MADERA_DRC2RMIX_INPUT_3_SOURCE			0x8DC
872  #define MADERA_DRC2RMIX_INPUT_3_VOLUME			0x8DD
873  #define MADERA_DRC2RMIX_INPUT_4_SOURCE			0x8DE
874  #define MADERA_DRC2RMIX_INPUT_4_VOLUME			0x8DF
875  #define MADERA_HPLP1MIX_INPUT_1_SOURCE			0x900
876  #define MADERA_HPLP1MIX_INPUT_1_VOLUME			0x901
877  #define MADERA_HPLP1MIX_INPUT_2_SOURCE			0x902
878  #define MADERA_HPLP1MIX_INPUT_2_VOLUME			0x903
879  #define MADERA_HPLP1MIX_INPUT_3_SOURCE			0x904
880  #define MADERA_HPLP1MIX_INPUT_3_VOLUME			0x905
881  #define MADERA_HPLP1MIX_INPUT_4_SOURCE			0x906
882  #define MADERA_HPLP1MIX_INPUT_4_VOLUME			0x907
883  #define MADERA_HPLP2MIX_INPUT_1_SOURCE			0x908
884  #define MADERA_HPLP2MIX_INPUT_1_VOLUME			0x909
885  #define MADERA_HPLP2MIX_INPUT_2_SOURCE			0x90A
886  #define MADERA_HPLP2MIX_INPUT_2_VOLUME			0x90B
887  #define MADERA_HPLP2MIX_INPUT_3_SOURCE			0x90C
888  #define MADERA_HPLP2MIX_INPUT_3_VOLUME			0x90D
889  #define MADERA_HPLP2MIX_INPUT_4_SOURCE			0x90E
890  #define MADERA_HPLP2MIX_INPUT_4_VOLUME			0x90F
891  #define MADERA_HPLP3MIX_INPUT_1_SOURCE			0x910
892  #define MADERA_HPLP3MIX_INPUT_1_VOLUME			0x911
893  #define MADERA_HPLP3MIX_INPUT_2_SOURCE			0x912
894  #define MADERA_HPLP3MIX_INPUT_2_VOLUME			0x913
895  #define MADERA_HPLP3MIX_INPUT_3_SOURCE			0x914
896  #define MADERA_HPLP3MIX_INPUT_3_VOLUME			0x915
897  #define MADERA_HPLP3MIX_INPUT_4_SOURCE			0x916
898  #define MADERA_HPLP3MIX_INPUT_4_VOLUME			0x917
899  #define MADERA_HPLP4MIX_INPUT_1_SOURCE			0x918
900  #define MADERA_HPLP4MIX_INPUT_1_VOLUME			0x919
901  #define MADERA_HPLP4MIX_INPUT_2_SOURCE			0x91A
902  #define MADERA_HPLP4MIX_INPUT_2_VOLUME			0x91B
903  #define MADERA_HPLP4MIX_INPUT_3_SOURCE			0x91C
904  #define MADERA_HPLP4MIX_INPUT_3_VOLUME			0x91D
905  #define MADERA_HPLP4MIX_INPUT_4_SOURCE			0x91E
906  #define MADERA_HPLP4MIX_INPUT_4_VOLUME			0x91F
907  #define MADERA_DSP1LMIX_INPUT_1_SOURCE			0x940
908  #define MADERA_DSP1LMIX_INPUT_1_VOLUME			0x941
909  #define MADERA_DSP1LMIX_INPUT_2_SOURCE			0x942
910  #define MADERA_DSP1LMIX_INPUT_2_VOLUME			0x943
911  #define MADERA_DSP1LMIX_INPUT_3_SOURCE			0x944
912  #define MADERA_DSP1LMIX_INPUT_3_VOLUME			0x945
913  #define MADERA_DSP1LMIX_INPUT_4_SOURCE			0x946
914  #define MADERA_DSP1LMIX_INPUT_4_VOLUME			0x947
915  #define MADERA_DSP1RMIX_INPUT_1_SOURCE			0x948
916  #define MADERA_DSP1RMIX_INPUT_1_VOLUME			0x949
917  #define MADERA_DSP1RMIX_INPUT_2_SOURCE			0x94A
918  #define MADERA_DSP1RMIX_INPUT_2_VOLUME			0x94B
919  #define MADERA_DSP1RMIX_INPUT_3_SOURCE			0x94C
920  #define MADERA_DSP1RMIX_INPUT_3_VOLUME			0x94D
921  #define MADERA_DSP1RMIX_INPUT_4_SOURCE			0x94E
922  #define MADERA_DSP1RMIX_INPUT_4_VOLUME			0x94F
923  #define MADERA_DSP1AUX1MIX_INPUT_1_SOURCE		0x950
924  #define MADERA_DSP1AUX2MIX_INPUT_1_SOURCE		0x958
925  #define MADERA_DSP1AUX3MIX_INPUT_1_SOURCE		0x960
926  #define MADERA_DSP1AUX4MIX_INPUT_1_SOURCE		0x968
927  #define MADERA_DSP1AUX5MIX_INPUT_1_SOURCE		0x970
928  #define MADERA_DSP1AUX6MIX_INPUT_1_SOURCE		0x978
929  #define MADERA_DSP2LMIX_INPUT_1_SOURCE			0x980
930  #define MADERA_DSP2LMIX_INPUT_1_VOLUME			0x981
931  #define MADERA_DSP2LMIX_INPUT_2_SOURCE			0x982
932  #define MADERA_DSP2LMIX_INPUT_2_VOLUME			0x983
933  #define MADERA_DSP2LMIX_INPUT_3_SOURCE			0x984
934  #define MADERA_DSP2LMIX_INPUT_3_VOLUME			0x985
935  #define MADERA_DSP2LMIX_INPUT_4_SOURCE			0x986
936  #define MADERA_DSP2LMIX_INPUT_4_VOLUME			0x987
937  #define MADERA_DSP2RMIX_INPUT_1_SOURCE			0x988
938  #define MADERA_DSP2RMIX_INPUT_1_VOLUME			0x989
939  #define MADERA_DSP2RMIX_INPUT_2_SOURCE			0x98A
940  #define MADERA_DSP2RMIX_INPUT_2_VOLUME			0x98B
941  #define MADERA_DSP2RMIX_INPUT_3_SOURCE			0x98C
942  #define MADERA_DSP2RMIX_INPUT_3_VOLUME			0x98D
943  #define MADERA_DSP2RMIX_INPUT_4_SOURCE			0x98E
944  #define MADERA_DSP2RMIX_INPUT_4_VOLUME			0x98F
945  #define MADERA_DSP2AUX1MIX_INPUT_1_SOURCE		0x990
946  #define MADERA_DSP2AUX2MIX_INPUT_1_SOURCE		0x998
947  #define MADERA_DSP2AUX3MIX_INPUT_1_SOURCE		0x9A0
948  #define MADERA_DSP2AUX4MIX_INPUT_1_SOURCE		0x9A8
949  #define MADERA_DSP2AUX5MIX_INPUT_1_SOURCE		0x9B0
950  #define MADERA_DSP2AUX6MIX_INPUT_1_SOURCE		0x9B8
951  #define MADERA_DSP3LMIX_INPUT_1_SOURCE			0x9C0
952  #define MADERA_DSP3LMIX_INPUT_1_VOLUME			0x9C1
953  #define MADERA_DSP3LMIX_INPUT_2_SOURCE			0x9C2
954  #define MADERA_DSP3LMIX_INPUT_2_VOLUME			0x9C3
955  #define MADERA_DSP3LMIX_INPUT_3_SOURCE			0x9C4
956  #define MADERA_DSP3LMIX_INPUT_3_VOLUME			0x9C5
957  #define MADERA_DSP3LMIX_INPUT_4_SOURCE			0x9C6
958  #define MADERA_DSP3LMIX_INPUT_4_VOLUME			0x9C7
959  #define MADERA_DSP3RMIX_INPUT_1_SOURCE			0x9C8
960  #define MADERA_DSP3RMIX_INPUT_1_VOLUME			0x9C9
961  #define MADERA_DSP3RMIX_INPUT_2_SOURCE			0x9CA
962  #define MADERA_DSP3RMIX_INPUT_2_VOLUME			0x9CB
963  #define MADERA_DSP3RMIX_INPUT_3_SOURCE			0x9CC
964  #define MADERA_DSP3RMIX_INPUT_3_VOLUME			0x9CD
965  #define MADERA_DSP3RMIX_INPUT_4_SOURCE			0x9CE
966  #define MADERA_DSP3RMIX_INPUT_4_VOLUME			0x9CF
967  #define MADERA_DSP3AUX1MIX_INPUT_1_SOURCE		0x9D0
968  #define MADERA_DSP3AUX2MIX_INPUT_1_SOURCE		0x9D8
969  #define MADERA_DSP3AUX3MIX_INPUT_1_SOURCE		0x9E0
970  #define MADERA_DSP3AUX4MIX_INPUT_1_SOURCE		0x9E8
971  #define MADERA_DSP3AUX5MIX_INPUT_1_SOURCE		0x9F0
972  #define MADERA_DSP3AUX6MIX_INPUT_1_SOURCE		0x9F8
973  #define MADERA_DSP4LMIX_INPUT_1_SOURCE			0xA00
974  #define MADERA_DSP4LMIX_INPUT_1_VOLUME			0xA01
975  #define MADERA_DSP4LMIX_INPUT_2_SOURCE			0xA02
976  #define MADERA_DSP4LMIX_INPUT_2_VOLUME			0xA03
977  #define MADERA_DSP4LMIX_INPUT_3_SOURCE			0xA04
978  #define MADERA_DSP4LMIX_INPUT_3_VOLUME			0xA05
979  #define MADERA_DSP4LMIX_INPUT_4_SOURCE			0xA06
980  #define MADERA_DSP4LMIX_INPUT_4_VOLUME			0xA07
981  #define MADERA_DSP4RMIX_INPUT_1_SOURCE			0xA08
982  #define MADERA_DSP4RMIX_INPUT_1_VOLUME			0xA09
983  #define MADERA_DSP4RMIX_INPUT_2_SOURCE			0xA0A
984  #define MADERA_DSP4RMIX_INPUT_2_VOLUME			0xA0B
985  #define MADERA_DSP4RMIX_INPUT_3_SOURCE			0xA0C
986  #define MADERA_DSP4RMIX_INPUT_3_VOLUME			0xA0D
987  #define MADERA_DSP4RMIX_INPUT_4_SOURCE			0xA0E
988  #define MADERA_DSP4RMIX_INPUT_4_VOLUME			0xA0F
989  #define MADERA_DSP4AUX1MIX_INPUT_1_SOURCE		0xA10
990  #define MADERA_DSP4AUX2MIX_INPUT_1_SOURCE		0xA18
991  #define MADERA_DSP4AUX3MIX_INPUT_1_SOURCE		0xA20
992  #define MADERA_DSP4AUX4MIX_INPUT_1_SOURCE		0xA28
993  #define MADERA_DSP4AUX5MIX_INPUT_1_SOURCE		0xA30
994  #define MADERA_DSP4AUX6MIX_INPUT_1_SOURCE		0xA38
995  #define MADERA_DSP5LMIX_INPUT_1_SOURCE			0xA40
996  #define MADERA_DSP5LMIX_INPUT_1_VOLUME			0xA41
997  #define MADERA_DSP5LMIX_INPUT_2_SOURCE			0xA42
998  #define MADERA_DSP5LMIX_INPUT_2_VOLUME			0xA43
999  #define MADERA_DSP5LMIX_INPUT_3_SOURCE			0xA44
1000  #define MADERA_DSP5LMIX_INPUT_3_VOLUME			0xA45
1001  #define MADERA_DSP5LMIX_INPUT_4_SOURCE			0xA46
1002  #define MADERA_DSP5LMIX_INPUT_4_VOLUME			0xA47
1003  #define MADERA_DSP5RMIX_INPUT_1_SOURCE			0xA48
1004  #define MADERA_DSP5RMIX_INPUT_1_VOLUME			0xA49
1005  #define MADERA_DSP5RMIX_INPUT_2_SOURCE			0xA4A
1006  #define MADERA_DSP5RMIX_INPUT_2_VOLUME			0xA4B
1007  #define MADERA_DSP5RMIX_INPUT_3_SOURCE			0xA4C
1008  #define MADERA_DSP5RMIX_INPUT_3_VOLUME			0xA4D
1009  #define MADERA_DSP5RMIX_INPUT_4_SOURCE			0xA4E
1010  #define MADERA_DSP5RMIX_INPUT_4_VOLUME			0xA4F
1011  #define MADERA_DSP5AUX1MIX_INPUT_1_SOURCE		0xA50
1012  #define MADERA_DSP5AUX2MIX_INPUT_1_SOURCE		0xA58
1013  #define MADERA_DSP5AUX3MIX_INPUT_1_SOURCE		0xA60
1014  #define MADERA_DSP5AUX4MIX_INPUT_1_SOURCE		0xA68
1015  #define MADERA_DSP5AUX5MIX_INPUT_1_SOURCE		0xA70
1016  #define MADERA_DSP5AUX6MIX_INPUT_1_SOURCE		0xA78
1017  #define MADERA_ASRC1_1LMIX_INPUT_1_SOURCE		0xA80
1018  #define MADERA_ASRC1_1RMIX_INPUT_1_SOURCE		0xA88
1019  #define MADERA_ASRC1_2LMIX_INPUT_1_SOURCE		0xA90
1020  #define MADERA_ASRC1_2RMIX_INPUT_1_SOURCE		0xA98
1021  #define MADERA_ASRC2_1LMIX_INPUT_1_SOURCE		0xAA0
1022  #define MADERA_ASRC2_1RMIX_INPUT_1_SOURCE		0xAA8
1023  #define MADERA_ASRC2_2LMIX_INPUT_1_SOURCE		0xAB0
1024  #define MADERA_ASRC2_2RMIX_INPUT_1_SOURCE		0xAB8
1025  #define MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE		0xB00
1026  #define MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE		0xB08
1027  #define MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE		0xB10
1028  #define MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE		0xB18
1029  #define MADERA_ISRC1INT1MIX_INPUT_1_SOURCE		0xB20
1030  #define MADERA_ISRC1INT2MIX_INPUT_1_SOURCE		0xB28
1031  #define MADERA_ISRC1INT3MIX_INPUT_1_SOURCE		0xB30
1032  #define MADERA_ISRC1INT4MIX_INPUT_1_SOURCE		0xB38
1033  #define MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE		0xB40
1034  #define MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE		0xB48
1035  #define MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE		0xB50
1036  #define MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE		0xB58
1037  #define MADERA_ISRC2INT1MIX_INPUT_1_SOURCE		0xB60
1038  #define MADERA_ISRC2INT2MIX_INPUT_1_SOURCE		0xB68
1039  #define MADERA_ISRC2INT3MIX_INPUT_1_SOURCE		0xB70
1040  #define MADERA_ISRC2INT4MIX_INPUT_1_SOURCE		0xB78
1041  #define MADERA_ISRC3DEC1MIX_INPUT_1_SOURCE		0xB80
1042  #define MADERA_ISRC3DEC2MIX_INPUT_1_SOURCE		0xB88
1043  #define MADERA_ISRC3DEC3MIX_INPUT_1_SOURCE		0xB90
1044  #define MADERA_ISRC3DEC4MIX_INPUT_1_SOURCE		0xB98
1045  #define MADERA_ISRC3INT1MIX_INPUT_1_SOURCE		0xBA0
1046  #define MADERA_ISRC3INT2MIX_INPUT_1_SOURCE		0xBA8
1047  #define MADERA_ISRC3INT3MIX_INPUT_1_SOURCE		0xBB0
1048  #define MADERA_ISRC3INT4MIX_INPUT_1_SOURCE		0xBB8
1049  #define MADERA_ISRC4DEC1MIX_INPUT_1_SOURCE		0xBC0
1050  #define MADERA_ISRC4DEC2MIX_INPUT_1_SOURCE		0xBC8
1051  #define MADERA_ISRC4INT1MIX_INPUT_1_SOURCE		0xBE0
1052  #define MADERA_ISRC4INT2MIX_INPUT_1_SOURCE		0xBE8
1053  #define MADERA_DSP6LMIX_INPUT_1_SOURCE			0xC00
1054  #define MADERA_DSP6LMIX_INPUT_1_VOLUME			0xC01
1055  #define MADERA_DSP6LMIX_INPUT_2_SOURCE			0xC02
1056  #define MADERA_DSP6LMIX_INPUT_2_VOLUME			0xC03
1057  #define MADERA_DSP6LMIX_INPUT_3_SOURCE			0xC04
1058  #define MADERA_DSP6LMIX_INPUT_3_VOLUME			0xC05
1059  #define MADERA_DSP6LMIX_INPUT_4_SOURCE			0xC06
1060  #define MADERA_DSP6LMIX_INPUT_4_VOLUME			0xC07
1061  #define MADERA_DSP6RMIX_INPUT_1_SOURCE			0xC08
1062  #define MADERA_DSP6RMIX_INPUT_1_VOLUME			0xC09
1063  #define MADERA_DSP6RMIX_INPUT_2_SOURCE			0xC0A
1064  #define MADERA_DSP6RMIX_INPUT_2_VOLUME			0xC0B
1065  #define MADERA_DSP6RMIX_INPUT_3_SOURCE			0xC0C
1066  #define MADERA_DSP6RMIX_INPUT_3_VOLUME			0xC0D
1067  #define MADERA_DSP6RMIX_INPUT_4_SOURCE			0xC0E
1068  #define MADERA_DSP6RMIX_INPUT_4_VOLUME			0xC0F
1069  #define MADERA_DSP6AUX1MIX_INPUT_1_SOURCE		0xC10
1070  #define MADERA_DSP6AUX2MIX_INPUT_1_SOURCE		0xC18
1071  #define MADERA_DSP6AUX3MIX_INPUT_1_SOURCE		0xC20
1072  #define MADERA_DSP6AUX4MIX_INPUT_1_SOURCE		0xC28
1073  #define MADERA_DSP6AUX5MIX_INPUT_1_SOURCE		0xC30
1074  #define MADERA_DSP6AUX6MIX_INPUT_1_SOURCE		0xC38
1075  #define MADERA_DSP7LMIX_INPUT_1_SOURCE			0xC40
1076  #define MADERA_DSP7LMIX_INPUT_1_VOLUME			0xC41
1077  #define MADERA_DSP7LMIX_INPUT_2_SOURCE			0xC42
1078  #define MADERA_DSP7LMIX_INPUT_2_VOLUME			0xC43
1079  #define MADERA_DSP7LMIX_INPUT_3_SOURCE			0xC44
1080  #define MADERA_DSP7LMIX_INPUT_3_VOLUME			0xC45
1081  #define MADERA_DSP7LMIX_INPUT_4_SOURCE			0xC46
1082  #define MADERA_DSP7LMIX_INPUT_4_VOLUME			0xC47
1083  #define MADERA_DSP7RMIX_INPUT_1_SOURCE			0xC48
1084  #define MADERA_DSP7RMIX_INPUT_1_VOLUME			0xC49
1085  #define MADERA_DSP7RMIX_INPUT_2_SOURCE			0xC4A
1086  #define MADERA_DSP7RMIX_INPUT_2_VOLUME			0xC4B
1087  #define MADERA_DSP7RMIX_INPUT_3_SOURCE			0xC4C
1088  #define MADERA_DSP7RMIX_INPUT_3_VOLUME			0xC4D
1089  #define MADERA_DSP7RMIX_INPUT_4_SOURCE			0xC4E
1090  #define MADERA_DSP7RMIX_INPUT_4_VOLUME			0xC4F
1091  #define MADERA_DSP7AUX1MIX_INPUT_1_SOURCE		0xC50
1092  #define MADERA_DSP7AUX2MIX_INPUT_1_SOURCE		0xC58
1093  #define MADERA_DSP7AUX3MIX_INPUT_1_SOURCE		0xC60
1094  #define MADERA_DSP7AUX4MIX_INPUT_1_SOURCE		0xC68
1095  #define MADERA_DSP7AUX5MIX_INPUT_1_SOURCE		0xC70
1096  #define MADERA_DSP7AUX6MIX_INPUT_1_SOURCE		0xC78
1097  #define MADERA_DFC1MIX_INPUT_1_SOURCE			0xDC0
1098  #define MADERA_DFC2MIX_INPUT_1_SOURCE			0xDC8
1099  #define MADERA_DFC3MIX_INPUT_1_SOURCE			0xDD0
1100  #define MADERA_DFC4MIX_INPUT_1_SOURCE			0xDD8
1101  #define MADERA_DFC5MIX_INPUT_1_SOURCE			0xDE0
1102  #define MADERA_DFC6MIX_INPUT_1_SOURCE			0xDE8
1103  #define MADERA_DFC7MIX_INPUT_1_SOURCE			0xDF0
1104  #define MADERA_DFC8MIX_INPUT_1_SOURCE			0xDF8
1105  #define MADERA_FX_CTRL1					0xE00
1106  #define MADERA_FX_CTRL2					0xE01
1107  #define MADERA_EQ1_1					0xE10
1108  #define MADERA_EQ1_2					0xE11
1109  #define MADERA_EQ1_21					0xE24
1110  #define MADERA_EQ2_1					0xE26
1111  #define MADERA_EQ2_2					0xE27
1112  #define MADERA_EQ2_21					0xE3A
1113  #define MADERA_EQ3_1					0xE3C
1114  #define MADERA_EQ3_2					0xE3D
1115  #define MADERA_EQ3_21					0xE50
1116  #define MADERA_EQ4_1					0xE52
1117  #define MADERA_EQ4_2					0xE53
1118  #define MADERA_EQ4_21					0xE66
1119  #define MADERA_DRC1_CTRL1				0xE80
1120  #define MADERA_DRC1_CTRL2				0xE81
1121  #define MADERA_DRC1_CTRL3				0xE82
1122  #define MADERA_DRC1_CTRL4				0xE83
1123  #define MADERA_DRC1_CTRL5				0xE84
1124  #define MADERA_DRC2_CTRL1				0xE88
1125  #define MADERA_DRC2_CTRL2				0xE89
1126  #define MADERA_DRC2_CTRL3				0xE8A
1127  #define MADERA_DRC2_CTRL4				0xE8B
1128  #define MADERA_DRC2_CTRL5				0xE8C
1129  #define MADERA_HPLPF1_1					0xEC0
1130  #define MADERA_HPLPF1_2					0xEC1
1131  #define MADERA_HPLPF2_1					0xEC4
1132  #define MADERA_HPLPF2_2					0xEC5
1133  #define MADERA_HPLPF3_1					0xEC8
1134  #define MADERA_HPLPF3_2					0xEC9
1135  #define MADERA_HPLPF4_1					0xECC
1136  #define MADERA_HPLPF4_2					0xECD
1137  #define MADERA_ASRC2_ENABLE				0xED0
1138  #define MADERA_ASRC2_STATUS				0xED1
1139  #define MADERA_ASRC2_RATE1				0xED2
1140  #define MADERA_ASRC2_RATE2				0xED3
1141  #define MADERA_ASRC1_ENABLE				0xEE0
1142  #define MADERA_ASRC1_STATUS				0xEE1
1143  #define MADERA_ASRC1_RATE1				0xEE2
1144  #define MADERA_ASRC1_RATE2				0xEE3
1145  #define MADERA_ISRC_1_CTRL_1				0xEF0
1146  #define MADERA_ISRC_1_CTRL_2				0xEF1
1147  #define MADERA_ISRC_1_CTRL_3				0xEF2
1148  #define MADERA_ISRC_2_CTRL_1				0xEF3
1149  #define MADERA_ISRC_2_CTRL_2				0xEF4
1150  #define MADERA_ISRC_2_CTRL_3				0xEF5
1151  #define MADERA_ISRC_3_CTRL_1				0xEF6
1152  #define MADERA_ISRC_3_CTRL_2				0xEF7
1153  #define MADERA_ISRC_3_CTRL_3				0xEF8
1154  #define MADERA_ISRC_4_CTRL_1				0xEF9
1155  #define MADERA_ISRC_4_CTRL_2				0xEFA
1156  #define MADERA_ISRC_4_CTRL_3				0xEFB
1157  #define MADERA_CLOCK_CONTROL				0xF00
1158  #define MADERA_ANC_SRC					0xF01
1159  #define MADERA_DSP_STATUS				0xF02
1160  #define MADERA_ANC_COEFF_START				0xF08
1161  #define MADERA_ANC_COEFF_END				0xF12
1162  #define MADERA_FCL_FILTER_CONTROL			0xF15
1163  #define MADERA_FCL_ADC_REFORMATTER_CONTROL		0xF17
1164  #define MADERA_FCL_COEFF_START				0xF18
1165  #define MADERA_FCL_COEFF_END				0xF69
1166  #define MADERA_FCR_FILTER_CONTROL			0xF71
1167  #define MADERA_FCR_ADC_REFORMATTER_CONTROL		0xF73
1168  #define MADERA_FCR_COEFF_START				0xF74
1169  #define MADERA_FCR_COEFF_END				0xFC5
1170  #define MADERA_AUXPDM1_CTRL_0				0x10C0
1171  #define MADERA_AUXPDM1_CTRL_1				0x10C1
1172  #define MADERA_DFC1_CTRL				0x1480
1173  #define MADERA_DFC1_RX					0x1482
1174  #define MADERA_DFC1_TX					0x1484
1175  #define MADERA_DFC2_CTRL				0x1486
1176  #define MADERA_DFC2_RX					0x1488
1177  #define MADERA_DFC2_TX					0x148A
1178  #define MADERA_DFC3_CTRL				0x148C
1179  #define MADERA_DFC3_RX					0x148E
1180  #define MADERA_DFC3_TX					0x1490
1181  #define MADERA_DFC4_CTRL				0x1492
1182  #define MADERA_DFC4_RX					0x1494
1183  #define MADERA_DFC4_TX					0x1496
1184  #define MADERA_DFC5_CTRL				0x1498
1185  #define MADERA_DFC5_RX					0x149A
1186  #define MADERA_DFC5_TX					0x149C
1187  #define MADERA_DFC6_CTRL				0x149E
1188  #define MADERA_DFC6_RX					0x14A0
1189  #define MADERA_DFC6_TX					0x14A2
1190  #define MADERA_DFC7_CTRL				0x14A4
1191  #define MADERA_DFC7_RX					0x14A6
1192  #define MADERA_DFC7_TX					0x14A8
1193  #define MADERA_DFC8_CTRL				0x14AA
1194  #define MADERA_DFC8_RX					0x14AC
1195  #define MADERA_DFC8_TX					0x14AE
1196  #define MADERA_DFC_STATUS				0x14B6
1197  #define MADERA_ADSP2_IRQ0				0x1600
1198  #define MADERA_ADSP2_IRQ1				0x1601
1199  #define MADERA_ADSP2_IRQ2				0x1602
1200  #define MADERA_ADSP2_IRQ3				0x1603
1201  #define MADERA_ADSP2_IRQ4				0x1604
1202  #define MADERA_ADSP2_IRQ5				0x1605
1203  #define MADERA_ADSP2_IRQ6				0x1606
1204  #define MADERA_ADSP2_IRQ7				0x1607
1205  #define MADERA_GPIO1_CTRL_1				0x1700
1206  #define MADERA_GPIO1_CTRL_2				0x1701
1207  #define MADERA_GPIO2_CTRL_1				0x1702
1208  #define MADERA_GPIO2_CTRL_2				0x1703
1209  #define MADERA_GPIO15_CTRL_1				0x171C
1210  #define MADERA_GPIO15_CTRL_2				0x171D
1211  #define MADERA_GPIO16_CTRL_1				0x171E
1212  #define MADERA_GPIO16_CTRL_2				0x171F
1213  #define MADERA_GPIO38_CTRL_1				0x174A
1214  #define MADERA_GPIO38_CTRL_2				0x174B
1215  #define MADERA_GPIO40_CTRL_1				0x174E
1216  #define MADERA_GPIO40_CTRL_2				0x174F
1217  #define MADERA_IRQ1_STATUS_1				0x1800
1218  #define MADERA_IRQ1_STATUS_2				0x1801
1219  #define MADERA_IRQ1_STATUS_6				0x1805
1220  #define MADERA_IRQ1_STATUS_7				0x1806
1221  #define MADERA_IRQ1_STATUS_9				0x1808
1222  #define MADERA_IRQ1_STATUS_11				0x180A
1223  #define MADERA_IRQ1_STATUS_12				0x180B
1224  #define MADERA_IRQ1_STATUS_15				0x180E
1225  #define MADERA_IRQ1_STATUS_33				0x1820
1226  #define MADERA_IRQ1_MASK_1				0x1840
1227  #define MADERA_IRQ1_MASK_2				0x1841
1228  #define MADERA_IRQ1_MASK_6				0x1845
1229  #define MADERA_IRQ1_MASK_33				0x1860
1230  #define MADERA_IRQ1_RAW_STATUS_1			0x1880
1231  #define MADERA_IRQ1_RAW_STATUS_2			0x1881
1232  #define MADERA_IRQ1_RAW_STATUS_7			0x1886
1233  #define MADERA_IRQ1_RAW_STATUS_15			0x188E
1234  #define MADERA_IRQ1_RAW_STATUS_33			0x18A0
1235  #define MADERA_INTERRUPT_DEBOUNCE_7			0x1A06
1236  #define MADERA_INTERRUPT_DEBOUNCE_15			0x1A0E
1237  #define MADERA_IRQ1_CTRL				0x1A80
1238  #define MADERA_IRQ2_CTRL				0x1A82
1239  #define MADERA_INTERRUPT_RAW_STATUS_1			0x1AA0
1240  #define MADERA_WSEQ_SEQUENCE_1				0x3000
1241  #define MADERA_WSEQ_SEQUENCE_225			0x31C0
1242  #define MADERA_WSEQ_SEQUENCE_252			0x31F6
1243  #define CS47L35_OTP_HPDET_CAL_1				0x31F8
1244  #define CS47L35_OTP_HPDET_CAL_2				0x31FA
1245  #define MADERA_WSEQ_SEQUENCE_508			0x33F6
1246  #define CS47L85_OTP_HPDET_CAL_1				0x33F8
1247  #define CS47L85_OTP_HPDET_CAL_2				0x33FA
1248  #define MADERA_OTP_HPDET_CAL_1				0x20004
1249  #define MADERA_OTP_HPDET_CAL_2				0x20006
1250  #define MADERA_DSP1_CONFIG_1				0x0FFE00
1251  #define MADERA_DSP1_CONFIG_2				0x0FFE02
1252  #define MADERA_DSP1_SCRATCH_1				0x0FFE40
1253  #define MADERA_DSP1_SCRATCH_2				0x0FFE42
1254  #define MADERA_DSP1_PMEM_ERR_ADDR___XMEM_ERR_ADDR	0xFFE7C
1255  #define MADERA_DSP2_CONFIG_1				0x17FE00
1256  #define MADERA_DSP2_CONFIG_2				0x17FE02
1257  #define MADERA_DSP2_SCRATCH_1				0x17FE40
1258  #define MADERA_DSP2_SCRATCH_2				0x17FE42
1259  #define MADERA_DSP2_PMEM_ERR_ADDR___XMEM_ERR_ADDR	0x17FE7C
1260  #define MADERA_DSP3_CONFIG_1				0x1FFE00
1261  #define MADERA_DSP3_CONFIG_2				0x1FFE02
1262  #define MADERA_DSP3_SCRATCH_1				0x1FFE40
1263  #define MADERA_DSP3_SCRATCH_2				0x1FFE42
1264  #define MADERA_DSP3_PMEM_ERR_ADDR___XMEM_ERR_ADDR	0x1FFE7C
1265  #define MADERA_DSP4_CONFIG_1				0x27FE00
1266  #define MADERA_DSP4_CONFIG_2				0x27FE02
1267  #define MADERA_DSP4_SCRATCH_1				0x27FE40
1268  #define MADERA_DSP4_SCRATCH_2				0x27FE42
1269  #define MADERA_DSP4_PMEM_ERR_ADDR___XMEM_ERR_ADDR	0x27FE7C
1270  #define MADERA_DSP5_CONFIG_1				0x2FFE00
1271  #define MADERA_DSP5_CONFIG_2				0x2FFE02
1272  #define MADERA_DSP5_SCRATCH_1				0x2FFE40
1273  #define MADERA_DSP5_SCRATCH_2				0x2FFE42
1274  #define MADERA_DSP5_PMEM_ERR_ADDR___XMEM_ERR_ADDR	0x2FFE7C
1275  #define MADERA_DSP6_CONFIG_1				0x37FE00
1276  #define MADERA_DSP6_CONFIG_2				0x37FE02
1277  #define MADERA_DSP6_SCRATCH_1				0x37FE40
1278  #define MADERA_DSP6_SCRATCH_2				0x37FE42
1279  #define MADERA_DSP6_PMEM_ERR_ADDR___XMEM_ERR_ADDR	0x37FE7C
1280  #define MADERA_DSP7_CONFIG_1				0x3FFE00
1281  #define MADERA_DSP7_CONFIG_2				0x3FFE02
1282  #define MADERA_DSP7_SCRATCH_1				0x3FFE40
1283  #define MADERA_DSP7_SCRATCH_2				0x3FFE42
1284  #define MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR	0x3FFE7C
1285  
1286  /* (0x0000)  Software_Reset */
1287  #define MADERA_SW_RST_DEV_ID1_MASK			0xFFFF
1288  #define MADERA_SW_RST_DEV_ID1_SHIFT			     0
1289  
1290  /* (0x0001)  Hardware_Revision */
1291  #define MADERA_HW_REVISION_MASK				0x00FF
1292  #define MADERA_HW_REVISION_SHIFT			     0
1293  
1294  /* (0x0020)  Tone_Generator_1 */
1295  #define MADERA_TONE2_ENA				0x0002
1296  #define MADERA_TONE2_ENA_MASK				0x0002
1297  #define MADERA_TONE2_ENA_SHIFT				     1
1298  #define MADERA_TONE1_ENA				0x0001
1299  #define MADERA_TONE1_ENA_MASK				0x0001
1300  #define MADERA_TONE1_ENA_SHIFT				     0
1301  
1302  /* (0x0021)  Tone_Generator_2 */
1303  #define MADERA_TONE1_LVL_0_MASK				0xFFFF
1304  #define MADERA_TONE1_LVL_0_SHIFT			     0
1305  
1306  /* (0x0022)  Tone_Generator_3 */
1307  #define MADERA_TONE1_LVL_MASK				0x00FF
1308  #define MADERA_TONE1_LVL_SHIFT				     0
1309  
1310  /* (0x0023)  Tone_Generator_4 */
1311  #define MADERA_TONE2_LVL_0_MASK				0xFFFF
1312  #define MADERA_TONE2_LVL_0_SHIFT			     0
1313  
1314  /* (0x0024)  Tone_Generator_5 */
1315  #define MADERA_TONE2_LVL_MASK				0x00FF
1316  #define MADERA_TONE2_LVL_SHIFT				     0
1317  
1318  /* (0x0030)  PWM_Drive_1 */
1319  #define MADERA_PWM2_ENA					0x0002
1320  #define MADERA_PWM2_ENA_MASK				0x0002
1321  #define MADERA_PWM2_ENA_SHIFT				     1
1322  #define MADERA_PWM1_ENA					0x0001
1323  #define MADERA_PWM1_ENA_MASK				0x0001
1324  #define MADERA_PWM1_ENA_SHIFT				     0
1325  
1326  /* (0x00A0)  Comfort_Noise_Generator */
1327  #define MADERA_NOISE_GEN_ENA				0x0020
1328  #define MADERA_NOISE_GEN_ENA_MASK			0x0020
1329  #define MADERA_NOISE_GEN_ENA_SHIFT			     5
1330  #define MADERA_NOISE_GEN_GAIN_MASK			0x001F
1331  #define MADERA_NOISE_GEN_GAIN_SHIFT			     0
1332  
1333  /* (0x0100)  Clock_32k_1 */
1334  #define MADERA_CLK_32K_ENA				0x0040
1335  #define MADERA_CLK_32K_ENA_MASK				0x0040
1336  #define MADERA_CLK_32K_ENA_SHIFT			     6
1337  #define MADERA_CLK_32K_SRC_MASK				0x0003
1338  #define MADERA_CLK_32K_SRC_SHIFT			     0
1339  
1340  /* (0x0101)  System_Clock_1 */
1341  #define MADERA_SYSCLK_FRAC				0x8000
1342  #define MADERA_SYSCLK_FRAC_MASK				0x8000
1343  #define MADERA_SYSCLK_FRAC_SHIFT			    15
1344  #define MADERA_SYSCLK_FREQ_MASK				0x0700
1345  #define MADERA_SYSCLK_FREQ_SHIFT			     8
1346  #define MADERA_SYSCLK_ENA				0x0040
1347  #define MADERA_SYSCLK_ENA_MASK				0x0040
1348  #define MADERA_SYSCLK_ENA_SHIFT				     6
1349  #define MADERA_SYSCLK_SRC_MASK				0x000F
1350  #define MADERA_SYSCLK_SRC_SHIFT				     0
1351  
1352  /* (0x0102)  Sample_rate_1 */
1353  #define MADERA_SAMPLE_RATE_1_MASK			0x001F
1354  #define MADERA_SAMPLE_RATE_1_SHIFT			     0
1355  
1356  /* (0x0103)  Sample_rate_2 */
1357  #define MADERA_SAMPLE_RATE_2_MASK			0x001F
1358  #define MADERA_SAMPLE_RATE_2_SHIFT			     0
1359  
1360  /* (0x0104)  Sample_rate_3 */
1361  #define MADERA_SAMPLE_RATE_3_MASK			0x001F
1362  #define MADERA_SAMPLE_RATE_3_SHIFT			     0
1363  
1364  /* (0x0112)  Async_clock_1 */
1365  #define MADERA_ASYNC_CLK_FREQ_MASK			0x0700
1366  #define MADERA_ASYNC_CLK_FREQ_SHIFT			     8
1367  #define MADERA_ASYNC_CLK_ENA				0x0040
1368  #define MADERA_ASYNC_CLK_ENA_MASK			0x0040
1369  #define MADERA_ASYNC_CLK_ENA_SHIFT			     6
1370  #define MADERA_ASYNC_CLK_SRC_MASK			0x000F
1371  #define MADERA_ASYNC_CLK_SRC_SHIFT			     0
1372  
1373  /* (0x0113)  Async_sample_rate_1 */
1374  #define MADERA_ASYNC_SAMPLE_RATE_1_MASK			0x001F
1375  #define MADERA_ASYNC_SAMPLE_RATE_1_SHIFT		     0
1376  
1377  /* (0x0114)  Async_sample_rate_2 */
1378  #define MADERA_ASYNC_SAMPLE_RATE_2_MASK			0x001F
1379  #define MADERA_ASYNC_SAMPLE_RATE_2_SHIFT		     0
1380  
1381  /* (0x0120)  DSP_Clock_1 */
1382  #define MADERA_DSP_CLK_FREQ_LEGACY			0x0700
1383  #define MADERA_DSP_CLK_FREQ_LEGACY_MASK			0x0700
1384  #define MADERA_DSP_CLK_FREQ_LEGACY_SHIFT		     8
1385  #define MADERA_DSP_CLK_ENA				0x0040
1386  #define MADERA_DSP_CLK_ENA_MASK				0x0040
1387  #define MADERA_DSP_CLK_ENA_SHIFT			     6
1388  #define MADERA_DSP_CLK_SRC				0x000F
1389  #define MADERA_DSP_CLK_SRC_MASK				0x000F
1390  #define MADERA_DSP_CLK_SRC_SHIFT			     0
1391  
1392  /* (0x0122)  DSP_Clock_2 */
1393  #define MADERA_DSP_CLK_FREQ_MASK			0x03FF
1394  #define MADERA_DSP_CLK_FREQ_SHIFT			     0
1395  
1396  /* (0x0149)  Output_system_clock */
1397  #define MADERA_OPCLK_ENA				0x8000
1398  #define MADERA_OPCLK_ENA_MASK				0x8000
1399  #define MADERA_OPCLK_ENA_SHIFT				    15
1400  #define MADERA_OPCLK_DIV_MASK				0x00F8
1401  #define MADERA_OPCLK_DIV_SHIFT				     3
1402  #define MADERA_OPCLK_SEL_MASK				0x0007
1403  #define MADERA_OPCLK_SEL_SHIFT				     0
1404  
1405  /* (0x014A)  Output_async_clock */
1406  #define MADERA_OPCLK_ASYNC_ENA				0x8000
1407  #define MADERA_OPCLK_ASYNC_ENA_MASK			0x8000
1408  #define MADERA_OPCLK_ASYNC_ENA_SHIFT			    15
1409  #define MADERA_OPCLK_ASYNC_DIV_MASK			0x00F8
1410  #define MADERA_OPCLK_ASYNC_DIV_SHIFT			     3
1411  #define MADERA_OPCLK_ASYNC_SEL_MASK			0x0007
1412  #define MADERA_OPCLK_ASYNC_SEL_SHIFT			     0
1413  
1414  /* (0x0171)  FLL1_Control_1 */
1415  #define CS47L92_FLL1_REFCLK_SRC_MASK			0xF000
1416  #define CS47L92_FLL1_REFCLK_SRC_SHIFT			    12
1417  #define MADERA_FLL1_HOLD_MASK				0x0004
1418  #define MADERA_FLL1_HOLD_SHIFT				     2
1419  #define MADERA_FLL1_FREERUN				0x0002
1420  #define MADERA_FLL1_FREERUN_MASK			0x0002
1421  #define MADERA_FLL1_FREERUN_SHIFT			     1
1422  #define MADERA_FLL1_ENA					0x0001
1423  #define MADERA_FLL1_ENA_MASK				0x0001
1424  #define MADERA_FLL1_ENA_SHIFT				     0
1425  
1426  /* (0x0172)  FLL1_Control_2 */
1427  #define MADERA_FLL1_CTRL_UPD				0x8000
1428  #define MADERA_FLL1_CTRL_UPD_MASK			0x8000
1429  #define MADERA_FLL1_CTRL_UPD_SHIFT			    15
1430  #define MADERA_FLL1_N_MASK				0x03FF
1431  #define MADERA_FLL1_N_SHIFT				     0
1432  
1433  /* (0x0173)  FLL1_Control_3 */
1434  #define MADERA_FLL1_THETA_MASK				0xFFFF
1435  #define MADERA_FLL1_THETA_SHIFT				     0
1436  
1437  /* (0x0174)  FLL1_Control_4 */
1438  #define MADERA_FLL1_LAMBDA_MASK				0xFFFF
1439  #define MADERA_FLL1_LAMBDA_SHIFT			     0
1440  
1441  /* (0x0175)  FLL1_Control_5 */
1442  #define MADERA_FLL1_FRATIO_MASK				0x0F00
1443  #define MADERA_FLL1_FRATIO_SHIFT			     8
1444  #define MADERA_FLL1_FB_DIV_MASK				0x03FF
1445  #define MADERA_FLL1_FB_DIV_SHIFT			     0
1446  
1447  /* (0x0176)  FLL1_Control_6 */
1448  #define MADERA_FLL1_REFCLK_DIV_MASK			0x00C0
1449  #define MADERA_FLL1_REFCLK_DIV_SHIFT			     6
1450  #define MADERA_FLL1_REFCLK_SRC_MASK			0x000F
1451  #define MADERA_FLL1_REFCLK_SRC_SHIFT			     0
1452  
1453  /* (0x0179)  FLL1_Control_7 */
1454  #define MADERA_FLL1_GAIN_MASK				0x003c
1455  #define MADERA_FLL1_GAIN_SHIFT				     2
1456  
1457  /* (0x017A)  FLL1_EFS_2 */
1458  #define MADERA_FLL1_PHASE_GAIN_MASK			0xF000
1459  #define MADERA_FLL1_PHASE_GAIN_SHIFT			    12
1460  #define MADERA_FLL1_PHASE_ENA_MASK			0x0800
1461  #define MADERA_FLL1_PHASE_ENA_SHIFT			    11
1462  
1463  /* (0x017A)  FLL1_Control_10 */
1464  #define MADERA_FLL1_HP_MASK				0xC000
1465  #define MADERA_FLL1_HP_SHIFT				    14
1466  #define MADERA_FLL1_PHASEDET_ENA_MASK			0x1000
1467  #define MADERA_FLL1_PHASEDET_ENA_SHIFT			    12
1468  
1469  /* (0x017B)  FLL1_Control_11 */
1470  #define MADERA_FLL1_LOCKDET_THR_MASK			0x001E
1471  #define MADERA_FLL1_LOCKDET_THR_SHIFT			     1
1472  #define MADERA_FLL1_LOCKDET_MASK			0x0001
1473  #define MADERA_FLL1_LOCKDET_SHIFT			     0
1474  
1475  /* (0x017D)  FLL1_Digital_Test_1 */
1476  #define MADERA_FLL1_SYNC_EFS_ENA_MASK			0x0100
1477  #define MADERA_FLL1_SYNC_EFS_ENA_SHIFT			     8
1478  #define MADERA_FLL1_CLK_VCO_FAST_SRC_MASK		0x0003
1479  #define MADERA_FLL1_CLK_VCO_FAST_SRC_SHIFT		     0
1480  
1481  /* (0x0181)  FLL1_Synchroniser_1 */
1482  #define MADERA_FLL1_SYNC_ENA				0x0001
1483  #define MADERA_FLL1_SYNC_ENA_MASK			0x0001
1484  #define MADERA_FLL1_SYNC_ENA_SHIFT			     0
1485  
1486  /* (0x0182)  FLL1_Synchroniser_2 */
1487  #define MADERA_FLL1_SYNC_N_MASK				0x03FF
1488  #define MADERA_FLL1_SYNC_N_SHIFT			     0
1489  
1490  /* (0x0183)  FLL1_Synchroniser_3 */
1491  #define MADERA_FLL1_SYNC_THETA_MASK			0xFFFF
1492  #define MADERA_FLL1_SYNC_THETA_SHIFT			     0
1493  
1494  /* (0x0184)  FLL1_Synchroniser_4 */
1495  #define MADERA_FLL1_SYNC_LAMBDA_MASK			0xFFFF
1496  #define MADERA_FLL1_SYNC_LAMBDA_SHIFT			     0
1497  
1498  /* (0x0185)  FLL1_Synchroniser_5 */
1499  #define MADERA_FLL1_SYNC_FRATIO_MASK			0x0700
1500  #define MADERA_FLL1_SYNC_FRATIO_SHIFT			     8
1501  
1502  /* (0x0186)  FLL1_Synchroniser_6 */
1503  #define MADERA_FLL1_SYNCCLK_DIV_MASK			0x00C0
1504  #define MADERA_FLL1_SYNCCLK_DIV_SHIFT			     6
1505  #define MADERA_FLL1_SYNCCLK_SRC_MASK			0x000F
1506  #define MADERA_FLL1_SYNCCLK_SRC_SHIFT			     0
1507  
1508  /* (0x0187)  FLL1_Synchroniser_7 */
1509  #define MADERA_FLL1_SYNC_GAIN_MASK			0x003c
1510  #define MADERA_FLL1_SYNC_GAIN_SHIFT			     2
1511  #define MADERA_FLL1_SYNC_DFSAT				0x0001
1512  #define MADERA_FLL1_SYNC_DFSAT_MASK			0x0001
1513  #define MADERA_FLL1_SYNC_DFSAT_SHIFT			     0
1514  
1515  /* (0x01D1)  FLL_AO_Control_1 */
1516  #define MADERA_FLL_AO_HOLD				0x0004
1517  #define MADERA_FLL_AO_HOLD_MASK				0x0004
1518  #define MADERA_FLL_AO_HOLD_SHIFT			     2
1519  #define MADERA_FLL_AO_FREERUN				0x0002
1520  #define MADERA_FLL_AO_FREERUN_MASK			0x0002
1521  #define MADERA_FLL_AO_FREERUN_SHIFT			     1
1522  #define MADERA_FLL_AO_ENA				0x0001
1523  #define MADERA_FLL_AO_ENA_MASK				0x0001
1524  #define MADERA_FLL_AO_ENA_SHIFT				     0
1525  
1526  /* (0x01D2)  FLL_AO_Control_2 */
1527  #define MADERA_FLL_AO_CTRL_UPD				0x8000
1528  #define MADERA_FLL_AO_CTRL_UPD_MASK			0x8000
1529  #define MADERA_FLL_AO_CTRL_UPD_SHIFT			    15
1530  
1531  /* (0x01D6)  FLL_AO_Control_6 */
1532  #define MADERA_FLL_AO_REFCLK_SRC_MASK			0x000F
1533  #define MADERA_FLL_AO_REFCLK_SRC_SHIFT			     0
1534  
1535  /* (0x0200)  Mic_Charge_Pump_1 */
1536  #define MADERA_CPMIC_BYPASS				0x0002
1537  #define MADERA_CPMIC_BYPASS_MASK			0x0002
1538  #define MADERA_CPMIC_BYPASS_SHIFT			     1
1539  #define MADERA_CPMIC_ENA				0x0001
1540  #define MADERA_CPMIC_ENA_MASK				0x0001
1541  #define MADERA_CPMIC_ENA_SHIFT				     0
1542  
1543  /* (0x0210)  LDO1_Control_1 */
1544  #define MADERA_LDO1_VSEL_MASK				0x07E0
1545  #define MADERA_LDO1_VSEL_SHIFT				     5
1546  #define MADERA_LDO1_FAST				0x0010
1547  #define MADERA_LDO1_FAST_MASK				0x0010
1548  #define MADERA_LDO1_FAST_SHIFT				     4
1549  #define MADERA_LDO1_DISCH				0x0004
1550  #define MADERA_LDO1_DISCH_MASK				0x0004
1551  #define MADERA_LDO1_DISCH_SHIFT				     2
1552  #define MADERA_LDO1_BYPASS				0x0002
1553  #define MADERA_LDO1_BYPASS_MASK				0x0002
1554  #define MADERA_LDO1_BYPASS_SHIFT			     1
1555  #define MADERA_LDO1_ENA					0x0001
1556  #define MADERA_LDO1_ENA_MASK				0x0001
1557  #define MADERA_LDO1_ENA_SHIFT				     0
1558  
1559  /* (0x0213)  LDO2_Control_1 */
1560  #define MADERA_LDO2_VSEL_MASK				0x07E0
1561  #define MADERA_LDO2_VSEL_SHIFT				     5
1562  #define MADERA_LDO2_FAST				0x0010
1563  #define MADERA_LDO2_FAST_MASK				0x0010
1564  #define MADERA_LDO2_FAST_SHIFT				     4
1565  #define MADERA_LDO2_DISCH				0x0004
1566  #define MADERA_LDO2_DISCH_MASK				0x0004
1567  #define MADERA_LDO2_DISCH_SHIFT				     2
1568  #define MADERA_LDO2_BYPASS				0x0002
1569  #define MADERA_LDO2_BYPASS_MASK				0x0002
1570  #define MADERA_LDO2_BYPASS_SHIFT			     1
1571  #define MADERA_LDO2_ENA					0x0001
1572  #define MADERA_LDO2_ENA_MASK				0x0001
1573  #define MADERA_LDO2_ENA_SHIFT				     0
1574  
1575  /* (0x0218)  Mic_Bias_Ctrl_1 */
1576  #define MADERA_MICB1_EXT_CAP				0x8000
1577  #define MADERA_MICB1_EXT_CAP_MASK			0x8000
1578  #define MADERA_MICB1_EXT_CAP_SHIFT			    15
1579  #define MADERA_MICB1_LVL_MASK				0x01E0
1580  #define MADERA_MICB1_LVL_SHIFT				     5
1581  #define MADERA_MICB1_ENA				0x0001
1582  #define MADERA_MICB1_ENA_MASK				0x0001
1583  #define MADERA_MICB1_ENA_SHIFT				     0
1584  
1585  /* (0x021C)  Mic_Bias_Ctrl_5 */
1586  #define MADERA_MICB1D_ENA				0x1000
1587  #define MADERA_MICB1D_ENA_MASK				0x1000
1588  #define MADERA_MICB1D_ENA_SHIFT				    12
1589  #define MADERA_MICB1C_ENA				0x0100
1590  #define MADERA_MICB1C_ENA_MASK				0x0100
1591  #define MADERA_MICB1C_ENA_SHIFT				     8
1592  #define MADERA_MICB1B_ENA				0x0010
1593  #define MADERA_MICB1B_ENA_MASK				0x0010
1594  #define MADERA_MICB1B_ENA_SHIFT				     4
1595  #define MADERA_MICB1A_ENA				0x0001
1596  #define MADERA_MICB1A_ENA_MASK				0x0001
1597  #define MADERA_MICB1A_ENA_SHIFT				     0
1598  
1599  /* (0x021E)  Mic_Bias_Ctrl_6 */
1600  #define MADERA_MICB2D_ENA				0x1000
1601  #define MADERA_MICB2D_ENA_MASK				0x1000
1602  #define MADERA_MICB2D_ENA_SHIFT				    12
1603  #define MADERA_MICB2C_ENA				0x0100
1604  #define MADERA_MICB2C_ENA_MASK				0x0100
1605  #define MADERA_MICB2C_ENA_SHIFT				     8
1606  #define MADERA_MICB2B_ENA				0x0010
1607  #define MADERA_MICB2B_ENA_MASK				0x0010
1608  #define MADERA_MICB2B_ENA_SHIFT				     4
1609  #define MADERA_MICB2A_ENA				0x0001
1610  #define MADERA_MICB2A_ENA_MASK				0x0001
1611  #define MADERA_MICB2A_ENA_SHIFT				     0
1612  
1613  /* (0x0225) - HP Ctrl 1L */
1614  #define MADERA_RMV_SHRT_HP1L				0x4000
1615  #define MADERA_RMV_SHRT_HP1L_MASK			0x4000
1616  #define MADERA_RMV_SHRT_HP1L_SHIFT			    14
1617  #define MADERA_HP1L_FLWR				0x0004
1618  #define MADERA_HP1L_FLWR_MASK				0x0004
1619  #define MADERA_HP1L_FLWR_SHIFT				     2
1620  #define MADERA_HP1L_SHRTI				0x0002
1621  #define MADERA_HP1L_SHRTI_MASK				0x0002
1622  #define MADERA_HP1L_SHRTI_SHIFT				     1
1623  #define MADERA_HP1L_SHRTO				0x0001
1624  #define MADERA_HP1L_SHRTO_MASK				0x0001
1625  #define MADERA_HP1L_SHRTO_SHIFT				     0
1626  
1627  /* (0x0226) - HP Ctrl 1R */
1628  #define MADERA_RMV_SHRT_HP1R				0x4000
1629  #define MADERA_RMV_SHRT_HP1R_MASK			0x4000
1630  #define MADERA_RMV_SHRT_HP1R_SHIFT			    14
1631  #define MADERA_HP1R_FLWR				0x0004
1632  #define MADERA_HP1R_FLWR_MASK				0x0004
1633  #define MADERA_HP1R_FLWR_SHIFT				     2
1634  #define MADERA_HP1R_SHRTI				0x0002
1635  #define MADERA_HP1R_SHRTI_MASK				0x0002
1636  #define MADERA_HP1R_SHRTI_SHIFT				     1
1637  #define MADERA_HP1R_SHRTO				0x0001
1638  #define MADERA_HP1R_SHRTO_MASK				0x0001
1639  #define MADERA_HP1R_SHRTO_SHIFT				     0
1640  
1641  /* (0x0293)  Accessory_Detect_Mode_1 */
1642  #define MADERA_ACCDET_SRC				0x2000
1643  #define MADERA_ACCDET_SRC_MASK				0x2000
1644  #define MADERA_ACCDET_SRC_SHIFT				    13
1645  #define MADERA_ACCDET_POLARITY_INV_ENA			0x0080
1646  #define MADERA_ACCDET_POLARITY_INV_ENA_MASK		0x0080
1647  #define MADERA_ACCDET_POLARITY_INV_ENA_SHIFT		     7
1648  #define MADERA_ACCDET_MODE_MASK				0x0007
1649  #define MADERA_ACCDET_MODE_SHIFT			     0
1650  
1651  /* (0x0299)  Headphone_Detect_0 */
1652  #define MADERA_HPD_GND_SEL				0x0007
1653  #define MADERA_HPD_GND_SEL_MASK				0x0007
1654  #define MADERA_HPD_GND_SEL_SHIFT			     0
1655  #define MADERA_HPD_SENSE_SEL				0x00F0
1656  #define MADERA_HPD_SENSE_SEL_MASK			0x00F0
1657  #define MADERA_HPD_SENSE_SEL_SHIFT			     4
1658  #define MADERA_HPD_FRC_SEL				0x0F00
1659  #define MADERA_HPD_FRC_SEL_MASK				0x0F00
1660  #define MADERA_HPD_FRC_SEL_SHIFT			     8
1661  #define MADERA_HPD_OUT_SEL				0x7000
1662  #define MADERA_HPD_OUT_SEL_MASK				0x7000
1663  #define MADERA_HPD_OUT_SEL_SHIFT			    12
1664  #define MADERA_HPD_OVD_ENA_SEL				0x8000
1665  #define MADERA_HPD_OVD_ENA_SEL_MASK			0x8000
1666  #define MADERA_HPD_OVD_ENA_SEL_SHIFT			    15
1667  
1668  /* (0x029B)  Headphone_Detect_1 */
1669  #define MADERA_HP_IMPEDANCE_RANGE_MASK			0x0600
1670  #define MADERA_HP_IMPEDANCE_RANGE_SHIFT			     9
1671  #define MADERA_HP_STEP_SIZE				0x0100
1672  #define MADERA_HP_STEP_SIZE_MASK			0x0100
1673  #define MADERA_HP_STEP_SIZE_SHIFT			     8
1674  #define MADERA_HP_CLK_DIV_MASK				0x0018
1675  #define MADERA_HP_CLK_DIV_SHIFT				     3
1676  #define MADERA_HP_RATE_MASK				0x0006
1677  #define MADERA_HP_RATE_SHIFT				     1
1678  #define MADERA_HP_POLL					0x0001
1679  #define MADERA_HP_POLL_MASK				0x0001
1680  #define MADERA_HP_POLL_SHIFT				     0
1681  
1682  /* (0x029C)  Headphone_Detect_2 */
1683  #define MADERA_HP_DONE_MASK				0x8000
1684  #define MADERA_HP_DONE_SHIFT				    15
1685  #define MADERA_HP_LVL_MASK				0x7FFF
1686  #define MADERA_HP_LVL_SHIFT				     0
1687  
1688  /* (0x029D)  Headphone_Detect_3 */
1689  #define MADERA_HP_DACVAL_MASK				0x03FF
1690  #define MADERA_HP_DACVAL_SHIFT				     0
1691  
1692  /* (0x029F) - Headphone Detect 5 */
1693  #define MADERA_HP_DACVAL_DOWN_MASK			0x03FF
1694  #define MADERA_HP_DACVAL_DOWN_SHIFT			     0
1695  
1696  /* (0x02A2)  Mic_Detect_1_Control_0 */
1697  #define MADERA_MICD1_GND_MASK				0x0007
1698  #define MADERA_MICD1_GND_SHIFT				     0
1699  #define MADERA_MICD1_SENSE_MASK				0x00F0
1700  #define MADERA_MICD1_SENSE_SHIFT			     4
1701  #define MADERA_MICD1_ADC_MODE_MASK			0x8000
1702  #define MADERA_MICD1_ADC_MODE_SHIFT			    15
1703  
1704  /* (0x02A3)  Mic_Detect_1_Control_1 */
1705  #define MADERA_MICD_BIAS_STARTTIME_MASK			0xF000
1706  #define MADERA_MICD_BIAS_STARTTIME_SHIFT		    12
1707  #define MADERA_MICD_RATE_MASK				0x0F00
1708  #define MADERA_MICD_RATE_SHIFT				     8
1709  #define MADERA_MICD_BIAS_SRC_MASK			0x00F0
1710  #define MADERA_MICD_BIAS_SRC_SHIFT			     4
1711  #define MADERA_MICD_DBTIME				0x0002
1712  #define MADERA_MICD_DBTIME_MASK				0x0002
1713  #define MADERA_MICD_DBTIME_SHIFT			     1
1714  #define MADERA_MICD_ENA					0x0001
1715  #define MADERA_MICD_ENA_MASK				0x0001
1716  #define MADERA_MICD_ENA_SHIFT				     0
1717  
1718  /* (0x02A4)  Mic_Detect_1_Control_2 */
1719  #define MADERA_MICD_LVL_SEL_MASK			0x00FF
1720  #define MADERA_MICD_LVL_SEL_SHIFT			     0
1721  
1722  /* (0x02A5)  Mic_Detect_1_Control_3 */
1723  #define MADERA_MICD_LVL_0				0x0004
1724  #define MADERA_MICD_LVL_1				0x0008
1725  #define MADERA_MICD_LVL_2				0x0010
1726  #define MADERA_MICD_LVL_3				0x0020
1727  #define MADERA_MICD_LVL_4				0x0040
1728  #define MADERA_MICD_LVL_5				0x0080
1729  #define MADERA_MICD_LVL_6				0x0100
1730  #define MADERA_MICD_LVL_7				0x0200
1731  #define MADERA_MICD_LVL_8				0x0400
1732  #define MADERA_MICD_LVL_MASK				0x07FC
1733  #define MADERA_MICD_LVL_SHIFT				     2
1734  #define MADERA_MICD_VALID				0x0002
1735  #define MADERA_MICD_VALID_MASK				0x0002
1736  #define MADERA_MICD_VALID_SHIFT				     1
1737  #define MADERA_MICD_STS					0x0001
1738  #define MADERA_MICD_STS_MASK				0x0001
1739  #define MADERA_MICD_STS_SHIFT				     0
1740  
1741  /* (0x02AB)  Mic_Detect_1_Control_4 */
1742  #define MADERA_MICDET_ADCVAL_DIFF_MASK			0xFF00
1743  #define MADERA_MICDET_ADCVAL_DIFF_SHIFT			     8
1744  #define MADERA_MICDET_ADCVAL_MASK			0x007F
1745  #define MADERA_MICDET_ADCVAL_SHIFT			     0
1746  
1747  /* (0x02C6)  Micd_Clamp_control */
1748  #define MADERA_MICD_CLAMP_OVD				0x0010
1749  #define MADERA_MICD_CLAMP_OVD_MASK			0x0010
1750  #define MADERA_MICD_CLAMP_OVD_SHIFT			     4
1751  #define MADERA_MICD_CLAMP_MODE_MASK			0x000F
1752  #define MADERA_MICD_CLAMP_MODE_SHIFT			     0
1753  
1754  /* (0x02C8)  GP_Switch_1 */
1755  #define MADERA_SW2_MODE_MASK				0x000C
1756  #define MADERA_SW2_MODE_SHIFT				     2
1757  #define MADERA_SW1_MODE_MASK				0x0003
1758  #define MADERA_SW1_MODE_SHIFT				     0
1759  
1760  /* (0x02D3)  Jack_detect_analogue */
1761  #define MADERA_JD2_ENA					0x0002
1762  #define MADERA_JD2_ENA_MASK				0x0002
1763  #define MADERA_JD2_ENA_SHIFT				     1
1764  #define MADERA_JD1_ENA					0x0001
1765  #define MADERA_JD1_ENA_MASK				0x0001
1766  #define MADERA_JD1_ENA_SHIFT				     0
1767  
1768  /* (0x0300)  Input_Enables */
1769  #define MADERA_IN6L_ENA					0x0800
1770  #define MADERA_IN6L_ENA_MASK				0x0800
1771  #define MADERA_IN6L_ENA_SHIFT				    11
1772  #define MADERA_IN6R_ENA					0x0400
1773  #define MADERA_IN6R_ENA_MASK				0x0400
1774  #define MADERA_IN6R_ENA_SHIFT				    10
1775  #define MADERA_IN5L_ENA					0x0200
1776  #define MADERA_IN5L_ENA_MASK				0x0200
1777  #define MADERA_IN5L_ENA_SHIFT				     9
1778  #define MADERA_IN5R_ENA					0x0100
1779  #define MADERA_IN5R_ENA_MASK				0x0100
1780  #define MADERA_IN5R_ENA_SHIFT				     8
1781  #define MADERA_IN4L_ENA					0x0080
1782  #define MADERA_IN4L_ENA_MASK				0x0080
1783  #define MADERA_IN4L_ENA_SHIFT				     7
1784  #define MADERA_IN4R_ENA					0x0040
1785  #define MADERA_IN4R_ENA_MASK				0x0040
1786  #define MADERA_IN4R_ENA_SHIFT				     6
1787  #define MADERA_IN3L_ENA					0x0020
1788  #define MADERA_IN3L_ENA_MASK				0x0020
1789  #define MADERA_IN3L_ENA_SHIFT				     5
1790  #define MADERA_IN3R_ENA					0x0010
1791  #define MADERA_IN3R_ENA_MASK				0x0010
1792  #define MADERA_IN3R_ENA_SHIFT				     4
1793  #define MADERA_IN2L_ENA					0x0008
1794  #define MADERA_IN2L_ENA_MASK				0x0008
1795  #define MADERA_IN2L_ENA_SHIFT				     3
1796  #define MADERA_IN2R_ENA					0x0004
1797  #define MADERA_IN2R_ENA_MASK				0x0004
1798  #define MADERA_IN2R_ENA_SHIFT				     2
1799  #define MADERA_IN1L_ENA					0x0002
1800  #define MADERA_IN1L_ENA_MASK				0x0002
1801  #define MADERA_IN1L_ENA_SHIFT				     1
1802  #define MADERA_IN1R_ENA					0x0001
1803  #define MADERA_IN1R_ENA_MASK				0x0001
1804  #define MADERA_IN1R_ENA_SHIFT				     0
1805  
1806  /* (0x0308)  Input_Rate */
1807  #define MADERA_IN_RATE_MASK				0xF800
1808  #define MADERA_IN_RATE_SHIFT				    11
1809  #define MADERA_IN_MODE_MASK				0x0400
1810  #define MADERA_IN_MODE_SHIFT				    10
1811  
1812  /* (0x0309)  Input_Volume_Ramp */
1813  #define MADERA_IN_VD_RAMP_MASK				0x0070
1814  #define MADERA_IN_VD_RAMP_SHIFT				     4
1815  #define MADERA_IN_VI_RAMP_MASK				0x0007
1816  #define MADERA_IN_VI_RAMP_SHIFT				     0
1817  
1818  /* (0x030C)  HPF_Control */
1819  #define MADERA_IN_HPF_CUT_MASK				0x0007
1820  #define MADERA_IN_HPF_CUT_SHIFT				     0
1821  
1822  /* (0x0310)  IN1L_Control */
1823  #define MADERA_IN1L_HPF_MASK				0x8000
1824  #define MADERA_IN1L_HPF_SHIFT				    15
1825  #define MADERA_IN1_DMIC_SUP_MASK			0x1800
1826  #define MADERA_IN1_DMIC_SUP_SHIFT			    11
1827  #define MADERA_IN1_MODE_MASK				0x0400
1828  #define MADERA_IN1_MODE_SHIFT				    10
1829  #define MADERA_IN1L_PGA_VOL_MASK			0x00FE
1830  #define MADERA_IN1L_PGA_VOL_SHIFT			     1
1831  
1832  /* (0x0311)  ADC_Digital_Volume_1L */
1833  #define MADERA_IN1L_SRC_MASK				0x4000
1834  #define MADERA_IN1L_SRC_SHIFT				    14
1835  #define MADERA_IN1L_SRC_SE_MASK				0x2000
1836  #define MADERA_IN1L_SRC_SE_SHIFT			    13
1837  #define MADERA_IN1L_LP_MODE				0x0800
1838  #define MADERA_IN1L_LP_MODE_MASK			0x0800
1839  #define MADERA_IN1L_LP_MODE_SHIFT			    11
1840  #define MADERA_IN_VU					0x0200
1841  #define MADERA_IN_VU_MASK				0x0200
1842  #define MADERA_IN_VU_SHIFT				     9
1843  #define MADERA_IN1L_MUTE				0x0100
1844  #define MADERA_IN1L_MUTE_MASK				0x0100
1845  #define MADERA_IN1L_MUTE_SHIFT				     8
1846  #define MADERA_IN1L_DIG_VOL_MASK			0x00FF
1847  #define MADERA_IN1L_DIG_VOL_SHIFT			     0
1848  
1849  /* (0x0312)  DMIC1L_Control */
1850  #define MADERA_IN1_OSR_MASK				0x0700
1851  #define MADERA_IN1_OSR_SHIFT				     8
1852  
1853  /* (0x0313)  IN1L_Rate_Control */
1854  #define MADERA_IN1L_RATE_MASK				0xF800
1855  #define MADERA_IN1L_RATE_SHIFT				    11
1856  
1857  /* (0x0314)  IN1R_Control */
1858  #define MADERA_IN1R_HPF_MASK				0x8000
1859  #define MADERA_IN1R_HPF_SHIFT				    15
1860  #define MADERA_IN1R_PGA_VOL_MASK			0x00FE
1861  #define MADERA_IN1R_PGA_VOL_SHIFT			     1
1862  #define MADERA_IN1_DMICCLK_SRC_MASK			0x1800
1863  #define MADERA_IN1_DMICCLK_SRC_SHIFT			    11
1864  
1865  /* (0x0315)  ADC_Digital_Volume_1R */
1866  #define MADERA_IN1R_SRC_MASK				0x4000
1867  #define MADERA_IN1R_SRC_SHIFT				    14
1868  #define MADERA_IN1R_SRC_SE_MASK				0x2000
1869  #define MADERA_IN1R_SRC_SE_SHIFT			    13
1870  #define MADERA_IN1R_LP_MODE				0x0800
1871  #define MADERA_IN1R_LP_MODE_MASK			0x0800
1872  #define MADERA_IN1R_LP_MODE_SHIFT			    11
1873  #define MADERA_IN1R_MUTE				0x0100
1874  #define MADERA_IN1R_MUTE_MASK				0x0100
1875  #define MADERA_IN1R_MUTE_SHIFT				     8
1876  #define MADERA_IN1R_DIG_VOL_MASK			0x00FF
1877  #define MADERA_IN1R_DIG_VOL_SHIFT			     0
1878  
1879  /* (0x0317)  IN1R_Rate_Control */
1880  #define MADERA_IN1R_RATE_MASK				0xF800
1881  #define MADERA_IN1R_RATE_SHIFT				    11
1882  
1883  /* (0x0318)  IN2L_Control */
1884  #define MADERA_IN2L_HPF_MASK				0x8000
1885  #define MADERA_IN2L_HPF_SHIFT				    15
1886  #define MADERA_IN2_DMIC_SUP_MASK			0x1800
1887  #define MADERA_IN2_DMIC_SUP_SHIFT			    11
1888  #define MADERA_IN2_MODE_MASK				0x0400
1889  #define MADERA_IN2_MODE_SHIFT				    10
1890  #define MADERA_IN2L_PGA_VOL_MASK			0x00FE
1891  #define MADERA_IN2L_PGA_VOL_SHIFT			     1
1892  
1893  /* (0x0319)  ADC_Digital_Volume_2L */
1894  #define MADERA_IN2L_SRC_MASK				0x4000
1895  #define MADERA_IN2L_SRC_SHIFT				    14
1896  #define MADERA_IN2L_SRC_SE_MASK				0x2000
1897  #define MADERA_IN2L_SRC_SE_SHIFT			    13
1898  #define MADERA_IN2L_LP_MODE				0x0800
1899  #define MADERA_IN2L_LP_MODE_MASK			0x0800
1900  #define MADERA_IN2L_LP_MODE_SHIFT			    11
1901  #define MADERA_IN2L_MUTE				0x0100
1902  #define MADERA_IN2L_MUTE_MASK				0x0100
1903  #define MADERA_IN2L_MUTE_SHIFT				     8
1904  #define MADERA_IN2L_DIG_VOL_MASK			0x00FF
1905  #define MADERA_IN2L_DIG_VOL_SHIFT			     0
1906  
1907  /* (0x031A)  DMIC2L_Control */
1908  #define MADERA_IN2_OSR_MASK				0x0700
1909  #define MADERA_IN2_OSR_SHIFT				     8
1910  
1911  /* (0x031C)  IN2R_Control */
1912  #define MADERA_IN2R_HPF_MASK				0x8000
1913  #define MADERA_IN2R_HPF_SHIFT				    15
1914  #define MADERA_IN2R_PGA_VOL_MASK			0x00FE
1915  #define MADERA_IN2R_PGA_VOL_SHIFT			     1
1916  #define MADERA_IN2_DMICCLK_SRC_MASK			0x1800
1917  #define MADERA_IN2_DMICCLK_SRC_SHIFT			    11
1918  
1919  /* (0x031D)  ADC_Digital_Volume_2R */
1920  #define MADERA_IN2R_SRC_MASK				0x4000
1921  #define MADERA_IN2R_SRC_SHIFT				    14
1922  #define MADERA_IN2R_SRC_SE_MASK				0x2000
1923  #define MADERA_IN2R_SRC_SE_SHIFT			    13
1924  #define MADERA_IN2R_LP_MODE				0x0800
1925  #define MADERA_IN2R_LP_MODE_MASK			0x0800
1926  #define MADERA_IN2R_LP_MODE_SHIFT			    11
1927  #define MADERA_IN2R_MUTE				0x0100
1928  #define MADERA_IN2R_MUTE_MASK				0x0100
1929  #define MADERA_IN2R_MUTE_SHIFT				     8
1930  #define MADERA_IN2R_DIG_VOL_MASK			0x00FF
1931  #define MADERA_IN2R_DIG_VOL_SHIFT			     0
1932  
1933  /* (0x0320)  IN3L_Control */
1934  #define MADERA_IN3L_HPF_MASK				0x8000
1935  #define MADERA_IN3L_HPF_SHIFT				    15
1936  #define MADERA_IN3_DMIC_SUP_MASK			0x1800
1937  #define MADERA_IN3_DMIC_SUP_SHIFT			    11
1938  #define MADERA_IN3_MODE_MASK				0x0400
1939  #define MADERA_IN3_MODE_SHIFT				    10
1940  #define MADERA_IN3L_PGA_VOL_MASK			0x00FE
1941  #define MADERA_IN3L_PGA_VOL_SHIFT			     1
1942  
1943  /* (0x0321)  ADC_Digital_Volume_3L */
1944  #define MADERA_IN3L_MUTE				0x0100
1945  #define MADERA_IN3L_MUTE_MASK				0x0100
1946  #define MADERA_IN3L_MUTE_SHIFT				     8
1947  #define MADERA_IN3L_DIG_VOL_MASK			0x00FF
1948  #define MADERA_IN3L_DIG_VOL_SHIFT			     0
1949  
1950  /* (0x0322)  DMIC3L_Control */
1951  #define MADERA_IN3_OSR_MASK				0x0700
1952  #define MADERA_IN3_OSR_SHIFT				     8
1953  
1954  /* (0x0324)  IN3R_Control */
1955  #define MADERA_IN3R_HPF_MASK				0x8000
1956  #define MADERA_IN3R_HPF_SHIFT				    15
1957  #define MADERA_IN3R_PGA_VOL_MASK			0x00FE
1958  #define MADERA_IN3R_PGA_VOL_SHIFT			     1
1959  #define MADERA_IN3_DMICCLK_SRC_MASK			0x1800
1960  #define MADERA_IN3_DMICCLK_SRC_SHIFT			    11
1961  
1962  /* (0x0325)  ADC_Digital_Volume_3R */
1963  #define MADERA_IN3R_MUTE				0x0100
1964  #define MADERA_IN3R_MUTE_MASK				0x0100
1965  #define MADERA_IN3R_MUTE_SHIFT				     8
1966  #define MADERA_IN3R_DIG_VOL_MASK			0x00FF
1967  #define MADERA_IN3R_DIG_VOL_SHIFT			     0
1968  
1969  /* (0x0328)  IN4L_Control */
1970  #define MADERA_IN4L_HPF_MASK				0x8000
1971  #define MADERA_IN4L_HPF_SHIFT				    15
1972  #define MADERA_IN4_DMIC_SUP_MASK			0x1800
1973  #define MADERA_IN4_DMIC_SUP_SHIFT			    11
1974  
1975  /* (0x0329)  ADC_Digital_Volume_4L */
1976  #define MADERA_IN4L_MUTE				0x0100
1977  #define MADERA_IN4L_MUTE_MASK				0x0100
1978  #define MADERA_IN4L_MUTE_SHIFT				     8
1979  #define MADERA_IN4L_DIG_VOL_MASK			0x00FF
1980  #define MADERA_IN4L_DIG_VOL_SHIFT			     0
1981  
1982  /* (0x032A)  DMIC4L_Control */
1983  #define MADERA_IN4_OSR_MASK				0x0700
1984  #define MADERA_IN4_OSR_SHIFT				     8
1985  
1986  /* (0x032C)  IN4R_Control */
1987  #define MADERA_IN4R_HPF_MASK				0x8000
1988  #define MADERA_IN4R_HPF_SHIFT				    15
1989  #define MADERA_IN4_DMICCLK_SRC_MASK			0x1800
1990  #define MADERA_IN4_DMICCLK_SRC_SHIFT			    11
1991  
1992  /* (0x032D)  ADC_Digital_Volume_4R */
1993  #define MADERA_IN4R_MUTE				0x0100
1994  #define MADERA_IN4R_MUTE_MASK				0x0100
1995  #define MADERA_IN4R_MUTE_SHIFT				     8
1996  #define MADERA_IN4R_DIG_VOL_MASK			0x00FF
1997  #define MADERA_IN4R_DIG_VOL_SHIFT			     0
1998  
1999  /* (0x0330)  IN5L_Control */
2000  #define MADERA_IN5L_HPF_MASK				0x8000
2001  #define MADERA_IN5L_HPF_SHIFT				    15
2002  #define MADERA_IN5_DMIC_SUP_MASK			0x1800
2003  #define MADERA_IN5_DMIC_SUP_SHIFT			    11
2004  
2005  /* (0x0331)  ADC_Digital_Volume_5L */
2006  #define MADERA_IN5L_MUTE				0x0100
2007  #define MADERA_IN5L_MUTE_MASK				0x0100
2008  #define MADERA_IN5L_MUTE_SHIFT				     8
2009  #define MADERA_IN5L_DIG_VOL_MASK			0x00FF
2010  #define MADERA_IN5L_DIG_VOL_SHIFT			     0
2011  
2012  /* (0x0332)  DMIC5L_Control */
2013  #define MADERA_IN5_OSR_MASK				0x0700
2014  #define MADERA_IN5_OSR_SHIFT				     8
2015  
2016  /* (0x0334)  IN5R_Control */
2017  #define MADERA_IN5R_HPF_MASK				0x8000
2018  #define MADERA_IN5R_HPF_SHIFT				    15
2019  #define MADERA_IN5_DMICCLK_SRC_MASK			0x1800
2020  #define MADERA_IN5_DMICCLK_SRC_SHIFT			    11
2021  
2022  /* (0x0335)  ADC_Digital_Volume_5R */
2023  #define MADERA_IN5R_MUTE				0x0100
2024  #define MADERA_IN5R_MUTE_MASK				0x0100
2025  #define MADERA_IN5R_MUTE_SHIFT				     8
2026  #define MADERA_IN5R_DIG_VOL_MASK			0x00FF
2027  #define MADERA_IN5R_DIG_VOL_SHIFT			     0
2028  
2029  /* (0x0338)  IN6L_Control */
2030  #define MADERA_IN6L_HPF_MASK				0x8000
2031  #define MADERA_IN6L_HPF_SHIFT				    15
2032  #define MADERA_IN6_DMIC_SUP_MASK			0x1800
2033  #define MADERA_IN6_DMIC_SUP_SHIFT			    11
2034  
2035  /* (0x0339)  ADC_Digital_Volume_6L */
2036  #define MADERA_IN6L_MUTE				0x0100
2037  #define MADERA_IN6L_MUTE_MASK				0x0100
2038  #define MADERA_IN6L_MUTE_SHIFT				     8
2039  #define MADERA_IN6L_DIG_VOL_MASK			0x00FF
2040  #define MADERA_IN6L_DIG_VOL_SHIFT			     0
2041  
2042  /* (0x033A)  DMIC6L_Control */
2043  #define MADERA_IN6_OSR_MASK				0x0700
2044  #define MADERA_IN6_OSR_SHIFT				     8
2045  
2046  /* (0x033C)  IN6R_Control */
2047  #define MADERA_IN6R_HPF_MASK				0x8000
2048  #define MADERA_IN6R_HPF_SHIFT				    15
2049  
2050  /* (0x033D)  ADC_Digital_Volume_6R */
2051  #define MADERA_IN6R_MUTE				0x0100
2052  #define MADERA_IN6R_MUTE_MASK				0x0100
2053  #define MADERA_IN6R_MUTE_SHIFT				     8
2054  #define MADERA_IN6R_DIG_VOL_MASK			0x00FF
2055  #define MADERA_IN6R_DIG_VOL_SHIFT			     0
2056  
2057  /* (0x033E)  DMIC6R_Control */
2058  #define MADERA_IN6_DMICCLK_SRC_MASK			0x1800
2059  #define MADERA_IN6_DMICCLK_SRC_SHIFT			    11
2060  
2061  /* (0x0400)  Output_Enables_1 */
2062  #define MADERA_EP_SEL					0x8000
2063  #define MADERA_EP_SEL_MASK				0x8000
2064  #define MADERA_EP_SEL_SHIFT				    15
2065  #define MADERA_OUT6L_ENA				0x0800
2066  #define MADERA_OUT6L_ENA_MASK				0x0800
2067  #define MADERA_OUT6L_ENA_SHIFT				    11
2068  #define MADERA_OUT6R_ENA				0x0400
2069  #define MADERA_OUT6R_ENA_MASK				0x0400
2070  #define MADERA_OUT6R_ENA_SHIFT				    10
2071  #define MADERA_OUT5L_ENA				0x0200
2072  #define MADERA_OUT5L_ENA_MASK				0x0200
2073  #define MADERA_OUT5L_ENA_SHIFT				     9
2074  #define MADERA_OUT5R_ENA				0x0100
2075  #define MADERA_OUT5R_ENA_MASK				0x0100
2076  #define MADERA_OUT5R_ENA_SHIFT				     8
2077  #define MADERA_OUT4L_ENA				0x0080
2078  #define MADERA_OUT4L_ENA_MASK				0x0080
2079  #define MADERA_OUT4L_ENA_SHIFT				     7
2080  #define MADERA_OUT4R_ENA				0x0040
2081  #define MADERA_OUT4R_ENA_MASK				0x0040
2082  #define MADERA_OUT4R_ENA_SHIFT				     6
2083  #define MADERA_OUT3L_ENA				0x0020
2084  #define MADERA_OUT3L_ENA_MASK				0x0020
2085  #define MADERA_OUT3L_ENA_SHIFT				     5
2086  #define MADERA_OUT3R_ENA				0x0010
2087  #define MADERA_OUT3R_ENA_MASK				0x0010
2088  #define MADERA_OUT3R_ENA_SHIFT				     4
2089  #define MADERA_OUT2L_ENA				0x0008
2090  #define MADERA_OUT2L_ENA_MASK				0x0008
2091  #define MADERA_OUT2L_ENA_SHIFT				     3
2092  #define MADERA_OUT2R_ENA				0x0004
2093  #define MADERA_OUT2R_ENA_MASK				0x0004
2094  #define MADERA_OUT2R_ENA_SHIFT				     2
2095  #define MADERA_OUT1L_ENA				0x0002
2096  #define MADERA_OUT1L_ENA_MASK				0x0002
2097  #define MADERA_OUT1L_ENA_SHIFT				     1
2098  #define MADERA_OUT1R_ENA				0x0001
2099  #define MADERA_OUT1R_ENA_MASK				0x0001
2100  #define MADERA_OUT1R_ENA_SHIFT				     0
2101  
2102  /* (0x0408)  Output_Rate_1 */
2103  #define MADERA_CP_DAC_MODE_MASK				0x0040
2104  #define MADERA_CP_DAC_MODE_SHIFT			     6
2105  #define MADERA_OUT_EXT_CLK_DIV_MASK			0x0030
2106  #define MADERA_OUT_EXT_CLK_DIV_SHIFT			     4
2107  #define MADERA_OUT_CLK_SRC_MASK				0x0007
2108  #define MADERA_OUT_CLK_SRC_SHIFT			     0
2109  
2110  /* (0x0409)  Output_Volume_Ramp */
2111  #define MADERA_OUT_VD_RAMP_MASK				0x0070
2112  #define MADERA_OUT_VD_RAMP_SHIFT			     4
2113  #define MADERA_OUT_VI_RAMP_MASK				0x0007
2114  #define MADERA_OUT_VI_RAMP_SHIFT			     0
2115  
2116  /* (0x0410)  Output_Path_Config_1L */
2117  #define MADERA_OUT1_MONO				0x1000
2118  #define MADERA_OUT1_MONO_MASK				0x1000
2119  #define MADERA_OUT1_MONO_SHIFT				    12
2120  #define MADERA_OUT1L_ANC_SRC_MASK			0x0C00
2121  #define MADERA_OUT1L_ANC_SRC_SHIFT			    10
2122  
2123  /* (0x0411)  DAC_Digital_Volume_1L */
2124  #define MADERA_OUT1L_VU					0x0200
2125  #define MADERA_OUT1L_VU_MASK				0x0200
2126  #define MADERA_OUT1L_VU_SHIFT				     9
2127  #define MADERA_OUT1L_MUTE				0x0100
2128  #define MADERA_OUT1L_MUTE_MASK				0x0100
2129  #define MADERA_OUT1L_MUTE_SHIFT				     8
2130  #define MADERA_OUT1L_VOL_MASK				0x00FF
2131  #define MADERA_OUT1L_VOL_SHIFT				     0
2132  
2133  /* (0x0412)  Output_Path_Config_1 */
2134  #define MADERA_HP1_GND_SEL_MASK				0x0007
2135  #define MADERA_HP1_GND_SEL_SHIFT			     0
2136  
2137  /* (0x0414)  Output_Path_Config_1R */
2138  #define MADERA_OUT1R_ANC_SRC_MASK			0x0C00
2139  #define MADERA_OUT1R_ANC_SRC_SHIFT			    10
2140  
2141  /* (0x0415)  DAC_Digital_Volume_1R */
2142  #define MADERA_OUT1R_MUTE				0x0100
2143  #define MADERA_OUT1R_MUTE_MASK				0x0100
2144  #define MADERA_OUT1R_MUTE_SHIFT				     8
2145  #define MADERA_OUT1R_VOL_MASK				0x00FF
2146  #define MADERA_OUT1R_VOL_SHIFT				     0
2147  
2148  /* (0x0418)  Output_Path_Config_2L */
2149  #define MADERA_OUT2L_ANC_SRC_MASK			0x0C00
2150  #define MADERA_OUT2L_ANC_SRC_SHIFT			    10
2151  
2152  /* (0x0419)  DAC_Digital_Volume_2L */
2153  #define MADERA_OUT2L_MUTE				0x0100
2154  #define MADERA_OUT2L_MUTE_MASK				0x0100
2155  #define MADERA_OUT2L_MUTE_SHIFT				     8
2156  #define MADERA_OUT2L_VOL_MASK				0x00FF
2157  #define MADERA_OUT2L_VOL_SHIFT				     0
2158  
2159  /* (0x041A)  Output_Path_Config_2 */
2160  #define MADERA_HP2_GND_SEL_MASK				0x0007
2161  #define MADERA_HP2_GND_SEL_SHIFT			     0
2162  
2163  /* (0x041C)  Output_Path_Config_2R */
2164  #define MADERA_OUT2R_ANC_SRC_MASK			0x0C00
2165  #define MADERA_OUT2R_ANC_SRC_SHIFT			    10
2166  
2167  /* (0x041D)  DAC_Digital_Volume_2R */
2168  #define MADERA_OUT2R_MUTE				0x0100
2169  #define MADERA_OUT2R_MUTE_MASK				0x0100
2170  #define MADERA_OUT2R_MUTE_SHIFT				     8
2171  #define MADERA_OUT2R_VOL_MASK				0x00FF
2172  #define MADERA_OUT2R_VOL_SHIFT				     0
2173  
2174  /* (0x0420)  Output_Path_Config_3L */
2175  #define MADERA_OUT3L_ANC_SRC_MASK			0x0C00
2176  #define MADERA_OUT3L_ANC_SRC_SHIFT			    10
2177  
2178  /* (0x0421)  DAC_Digital_Volume_3L */
2179  #define MADERA_OUT3L_MUTE				0x0100
2180  #define MADERA_OUT3L_MUTE_MASK				0x0100
2181  #define MADERA_OUT3L_MUTE_SHIFT				     8
2182  #define MADERA_OUT3L_VOL_MASK				0x00FF
2183  #define MADERA_OUT3L_VOL_SHIFT				     0
2184  
2185  /* (0x0424)  Output_Path_Config_3R */
2186  #define MADERA_OUT3R_ANC_SRC_MASK			0x0C00
2187  #define MADERA_OUT3R_ANC_SRC_SHIFT			    10
2188  
2189  /* (0x0425)  DAC_Digital_Volume_3R */
2190  #define MADERA_OUT3R_MUTE				0x0100
2191  #define MADERA_OUT3R_MUTE_MASK				0x0100
2192  #define MADERA_OUT3R_MUTE_SHIFT				     8
2193  #define MADERA_OUT3R_VOL_MASK				0x00FF
2194  #define MADERA_OUT3R_VOL_SHIFT				     0
2195  
2196  /* (0x0428)  Output_Path_Config_4L */
2197  #define MADERA_OUT4L_ANC_SRC_MASK			0x0C00
2198  #define MADERA_OUT4L_ANC_SRC_SHIFT			    10
2199  
2200  /* (0x0429)  DAC_Digital_Volume_4L */
2201  #define MADERA_OUT4L_MUTE				0x0100
2202  #define MADERA_OUT4L_MUTE_MASK				0x0100
2203  #define MADERA_OUT4L_MUTE_SHIFT				     8
2204  #define MADERA_OUT4L_VOL_MASK				0x00FF
2205  #define MADERA_OUT4L_VOL_SHIFT				     0
2206  
2207  /* (0x042C)  Output_Path_Config_4R */
2208  #define MADERA_OUT4R_ANC_SRC_MASK			0x0C00
2209  #define MADERA_OUT4R_ANC_SRC_SHIFT			    10
2210  
2211  /* (0x042D)  DAC_Digital_Volume_4R */
2212  #define MADERA_OUT4R_MUTE				0x0100
2213  #define MADERA_OUT4R_MUTE_MASK				0x0100
2214  #define MADERA_OUT4R_MUTE_SHIFT				     8
2215  #define MADERA_OUT4R_VOL_MASK				0x00FF
2216  #define MADERA_OUT4R_VOL_SHIFT				     0
2217  
2218  /* (0x0430)  Output_Path_Config_5L */
2219  #define MADERA_OUT5_OSR					0x2000
2220  #define MADERA_OUT5_OSR_MASK				0x2000
2221  #define MADERA_OUT5_OSR_SHIFT				    13
2222  #define MADERA_OUT5L_ANC_SRC_MASK			0x0C00
2223  #define MADERA_OUT5L_ANC_SRC_SHIFT			    10
2224  
2225  /* (0x0431)  DAC_Digital_Volume_5L */
2226  #define MADERA_OUT5L_MUTE				0x0100
2227  #define MADERA_OUT5L_MUTE_MASK				0x0100
2228  #define MADERA_OUT5L_MUTE_SHIFT				     8
2229  #define MADERA_OUT5L_VOL_MASK				0x00FF
2230  #define MADERA_OUT5L_VOL_SHIFT				     0
2231  
2232  /* (0x0434)  Output_Path_Config_5R */
2233  #define MADERA_OUT5R_ANC_SRC_MASK			0x0C00
2234  #define MADERA_OUT5R_ANC_SRC_SHIFT			    10
2235  
2236  /* (0x0435)  DAC_Digital_Volume_5R */
2237  #define MADERA_OUT5R_MUTE				0x0100
2238  #define MADERA_OUT5R_MUTE_MASK				0x0100
2239  #define MADERA_OUT5R_MUTE_SHIFT				     8
2240  #define MADERA_OUT5R_VOL_MASK				0x00FF
2241  #define MADERA_OUT5R_VOL_SHIFT				     0
2242  
2243  /* (0x0438)  Output_Path_Config_6L */
2244  #define MADERA_OUT6_OSR					0x2000
2245  #define MADERA_OUT6_OSR_MASK				0x2000
2246  #define MADERA_OUT6_OSR_SHIFT				    13
2247  #define MADERA_OUT6L_ANC_SRC_MASK			0x0C00
2248  #define MADERA_OUT6L_ANC_SRC_SHIFT			    10
2249  
2250  /* (0x0439)  DAC_Digital_Volume_6L */
2251  #define MADERA_OUT6L_MUTE				0x0100
2252  #define MADERA_OUT6L_MUTE_MASK				0x0100
2253  #define MADERA_OUT6L_MUTE_SHIFT				     8
2254  #define MADERA_OUT6L_VOL_MASK				0x00FF
2255  #define MADERA_OUT6L_VOL_SHIFT				     0
2256  
2257  /* (0x043C)  Output_Path_Config_6R */
2258  #define MADERA_OUT6R_ANC_SRC_MASK			0x0C00
2259  #define MADERA_OUT6R_ANC_SRC_SHIFT			    10
2260  
2261  /* (0x043D)  DAC_Digital_Volume_6R */
2262  #define MADERA_OUT6R_MUTE				0x0100
2263  #define MADERA_OUT6R_MUTE_MASK				0x0100
2264  #define MADERA_OUT6R_MUTE_SHIFT				     8
2265  #define MADERA_OUT6R_VOL_MASK				0x00FF
2266  #define MADERA_OUT6R_VOL_SHIFT				     0
2267  
2268  /* (0x0450) - DAC AEC Control 1 */
2269  #define MADERA_AEC1_LOOPBACK_SRC_MASK			0x003C
2270  #define MADERA_AEC1_LOOPBACK_SRC_SHIFT			     2
2271  #define MADERA_AEC1_ENA_STS				0x0002
2272  #define MADERA_AEC1_ENA_STS_MASK			0x0002
2273  #define MADERA_AEC1_ENA_STS_SHIFT			     1
2274  #define MADERA_AEC1_LOOPBACK_ENA			0x0001
2275  #define MADERA_AEC1_LOOPBACK_ENA_MASK			0x0001
2276  #define MADERA_AEC1_LOOPBACK_ENA_SHIFT			     0
2277  
2278  /* (0x0451)  DAC_AEC_Control_2 */
2279  #define MADERA_AEC2_LOOPBACK_SRC_MASK			0x003C
2280  #define MADERA_AEC2_LOOPBACK_SRC_SHIFT			     2
2281  #define MADERA_AEC2_ENA_STS				0x0002
2282  #define MADERA_AEC2_ENA_STS_MASK			0x0002
2283  #define MADERA_AEC2_ENA_STS_SHIFT			     1
2284  #define MADERA_AEC2_LOOPBACK_ENA			0x0001
2285  #define MADERA_AEC2_LOOPBACK_ENA_MASK			0x0001
2286  #define MADERA_AEC2_LOOPBACK_ENA_SHIFT			     0
2287  
2288  /* (0x0458)  Noise_Gate_Control */
2289  #define MADERA_NGATE_HOLD_MASK				0x0030
2290  #define MADERA_NGATE_HOLD_SHIFT				     4
2291  #define MADERA_NGATE_THR_MASK				0x000E
2292  #define MADERA_NGATE_THR_SHIFT				     1
2293  #define MADERA_NGATE_ENA				0x0001
2294  #define MADERA_NGATE_ENA_MASK				0x0001
2295  #define MADERA_NGATE_ENA_SHIFT				     0
2296  
2297  /* (0x0490)  PDM_SPK1_CTRL_1 */
2298  #define MADERA_SPK1R_MUTE				0x2000
2299  #define MADERA_SPK1R_MUTE_MASK				0x2000
2300  #define MADERA_SPK1R_MUTE_SHIFT				    13
2301  #define MADERA_SPK1L_MUTE				0x1000
2302  #define MADERA_SPK1L_MUTE_MASK				0x1000
2303  #define MADERA_SPK1L_MUTE_SHIFT				    12
2304  #define MADERA_SPK1_MUTE_ENDIAN				0x0100
2305  #define MADERA_SPK1_MUTE_ENDIAN_MASK			0x0100
2306  #define MADERA_SPK1_MUTE_ENDIAN_SHIFT			     8
2307  #define MADERA_SPK1_MUTE_SEQ1_MASK			0x00FF
2308  #define MADERA_SPK1_MUTE_SEQ1_SHIFT			     0
2309  
2310  /* (0x0491)  PDM_SPK1_CTRL_2 */
2311  #define MADERA_SPK1_FMT					0x0001
2312  #define MADERA_SPK1_FMT_MASK				0x0001
2313  #define MADERA_SPK1_FMT_SHIFT				     0
2314  
2315  /* (0x0492)  PDM_SPK2_CTRL_1 */
2316  #define MADERA_SPK2R_MUTE				0x2000
2317  #define MADERA_SPK2R_MUTE_MASK				0x2000
2318  #define MADERA_SPK2R_MUTE_SHIFT				    13
2319  #define MADERA_SPK2L_MUTE				0x1000
2320  #define MADERA_SPK2L_MUTE_MASK				0x1000
2321  #define MADERA_SPK2L_MUTE_SHIFT				    12
2322  
2323  /* (0x04A0) - HP1 Short Circuit Ctrl */
2324  #define MADERA_HP1_SC_ENA				0x1000
2325  #define MADERA_HP1_SC_ENA_MASK				0x1000
2326  #define MADERA_HP1_SC_ENA_SHIFT				    12
2327  
2328  /* (0x04A1) - HP2 Short Circuit Ctrl */
2329  #define MADERA_HP2_SC_ENA				0x1000
2330  #define MADERA_HP2_SC_ENA_MASK				0x1000
2331  #define MADERA_HP2_SC_ENA_SHIFT				    12
2332  
2333  /* (0x04A2) - HP3 Short Circuit Ctrl */
2334  #define MADERA_HP3_SC_ENA				0x1000
2335  #define MADERA_HP3_SC_ENA_MASK				0x1000
2336  #define MADERA_HP3_SC_ENA_SHIFT				    12
2337  
2338  /* (0x04A8) - HP_Test_Ctrl_5 */
2339  #define MADERA_HP1L_ONEFLT				0x0100
2340  #define MADERA_HP1L_ONEFLT_MASK				0x0100
2341  #define MADERA_HP1L_ONEFLT_SHIFT			     8
2342  
2343  /* (0x04A9) - HP_Test_Ctrl_6 */
2344  #define MADERA_HP1R_ONEFLT				0x0100
2345  #define MADERA_HP1R_ONEFLT_MASK				0x0100
2346  #define MADERA_HP1R_ONEFLT_SHIFT			     8
2347  
2348  /* (0x0500)  AIF1_BCLK_Ctrl */
2349  #define MADERA_AIF1_BCLK_INV				0x0080
2350  #define MADERA_AIF1_BCLK_INV_MASK			0x0080
2351  #define MADERA_AIF1_BCLK_INV_SHIFT			     7
2352  #define MADERA_AIF1_BCLK_MSTR				0x0020
2353  #define MADERA_AIF1_BCLK_MSTR_MASK			0x0020
2354  #define MADERA_AIF1_BCLK_MSTR_SHIFT			     5
2355  #define MADERA_AIF1_BCLK_FREQ_MASK			0x001F
2356  #define MADERA_AIF1_BCLK_FREQ_SHIFT			     0
2357  
2358  /* (0x0501)  AIF1_Tx_Pin_Ctrl */
2359  #define MADERA_AIF1TX_LRCLK_SRC				0x0008
2360  #define MADERA_AIF1TX_LRCLK_SRC_MASK			0x0008
2361  #define MADERA_AIF1TX_LRCLK_SRC_SHIFT			     3
2362  #define MADERA_AIF1TX_LRCLK_INV				0x0004
2363  #define MADERA_AIF1TX_LRCLK_INV_MASK			0x0004
2364  #define MADERA_AIF1TX_LRCLK_INV_SHIFT			     2
2365  #define MADERA_AIF1TX_LRCLK_MSTR			0x0001
2366  #define MADERA_AIF1TX_LRCLK_MSTR_MASK			0x0001
2367  #define MADERA_AIF1TX_LRCLK_MSTR_SHIFT			     0
2368  
2369  /* (0x0502)  AIF1_Rx_Pin_Ctrl */
2370  #define MADERA_AIF1RX_LRCLK_INV				0x0004
2371  #define MADERA_AIF1RX_LRCLK_INV_MASK			0x0004
2372  #define MADERA_AIF1RX_LRCLK_INV_SHIFT			     2
2373  #define MADERA_AIF1RX_LRCLK_FRC				0x0002
2374  #define MADERA_AIF1RX_LRCLK_FRC_MASK			0x0002
2375  #define MADERA_AIF1RX_LRCLK_FRC_SHIFT			     1
2376  #define MADERA_AIF1RX_LRCLK_MSTR			0x0001
2377  #define MADERA_AIF1RX_LRCLK_MSTR_MASK			0x0001
2378  #define MADERA_AIF1RX_LRCLK_MSTR_SHIFT			     0
2379  
2380  /* (0x0503)  AIF1_Rate_Ctrl */
2381  #define MADERA_AIF1_RATE_MASK				0xF800
2382  #define MADERA_AIF1_RATE_SHIFT				    11
2383  #define MADERA_AIF1_TRI					0x0040
2384  #define MADERA_AIF1_TRI_MASK				0x0040
2385  #define MADERA_AIF1_TRI_SHIFT				     6
2386  
2387  /* (0x0504)  AIF1_Format */
2388  #define MADERA_AIF1_FMT_MASK				0x0007
2389  #define MADERA_AIF1_FMT_SHIFT				     0
2390  
2391  /* (0x0506)  AIF1_Rx_BCLK_Rate */
2392  #define MADERA_AIF1RX_BCPF_MASK				0x1FFF
2393  #define MADERA_AIF1RX_BCPF_SHIFT			     0
2394  
2395  /* (0x0507)  AIF1_Frame_Ctrl_1 */
2396  #define MADERA_AIF1TX_WL_MASK				0x3F00
2397  #define MADERA_AIF1TX_WL_SHIFT				     8
2398  #define MADERA_AIF1TX_SLOT_LEN_MASK			0x00FF
2399  #define MADERA_AIF1TX_SLOT_LEN_SHIFT			     0
2400  
2401  /* (0x0508)  AIF1_Frame_Ctrl_2 */
2402  #define MADERA_AIF1RX_WL_MASK				0x3F00
2403  #define MADERA_AIF1RX_WL_SHIFT				     8
2404  #define MADERA_AIF1RX_SLOT_LEN_MASK			0x00FF
2405  #define MADERA_AIF1RX_SLOT_LEN_SHIFT			     0
2406  
2407  /* (0x0509)  AIF1_Frame_Ctrl_3 */
2408  #define MADERA_AIF1TX1_SLOT_MASK			0x003F
2409  #define MADERA_AIF1TX1_SLOT_SHIFT			     0
2410  
2411  /* (0x0519)  AIF1_Tx_Enables */
2412  #define MADERA_AIF1TX8_ENA				0x0080
2413  #define MADERA_AIF1TX8_ENA_MASK				0x0080
2414  #define MADERA_AIF1TX8_ENA_SHIFT			     7
2415  #define MADERA_AIF1TX7_ENA				0x0040
2416  #define MADERA_AIF1TX7_ENA_MASK				0x0040
2417  #define MADERA_AIF1TX7_ENA_SHIFT			     6
2418  #define MADERA_AIF1TX6_ENA				0x0020
2419  #define MADERA_AIF1TX6_ENA_MASK				0x0020
2420  #define MADERA_AIF1TX6_ENA_SHIFT			     5
2421  #define MADERA_AIF1TX5_ENA				0x0010
2422  #define MADERA_AIF1TX5_ENA_MASK				0x0010
2423  #define MADERA_AIF1TX5_ENA_SHIFT			     4
2424  #define MADERA_AIF1TX4_ENA				0x0008
2425  #define MADERA_AIF1TX4_ENA_MASK				0x0008
2426  #define MADERA_AIF1TX4_ENA_SHIFT			     3
2427  #define MADERA_AIF1TX3_ENA				0x0004
2428  #define MADERA_AIF1TX3_ENA_MASK				0x0004
2429  #define MADERA_AIF1TX3_ENA_SHIFT			     2
2430  #define MADERA_AIF1TX2_ENA				0x0002
2431  #define MADERA_AIF1TX2_ENA_MASK				0x0002
2432  #define MADERA_AIF1TX2_ENA_SHIFT			     1
2433  #define MADERA_AIF1TX1_ENA				0x0001
2434  #define MADERA_AIF1TX1_ENA_MASK				0x0001
2435  #define MADERA_AIF1TX1_ENA_SHIFT			     0
2436  
2437  /* (0x051A)  AIF1_Rx_Enables */
2438  #define MADERA_AIF1RX8_ENA				0x0080
2439  #define MADERA_AIF1RX8_ENA_MASK				0x0080
2440  #define MADERA_AIF1RX8_ENA_SHIFT			     7
2441  #define MADERA_AIF1RX7_ENA				0x0040
2442  #define MADERA_AIF1RX7_ENA_MASK				0x0040
2443  #define MADERA_AIF1RX7_ENA_SHIFT			     6
2444  #define MADERA_AIF1RX6_ENA				0x0020
2445  #define MADERA_AIF1RX6_ENA_MASK				0x0020
2446  #define MADERA_AIF1RX6_ENA_SHIFT			     5
2447  #define MADERA_AIF1RX5_ENA				0x0010
2448  #define MADERA_AIF1RX5_ENA_MASK				0x0010
2449  #define MADERA_AIF1RX5_ENA_SHIFT			     4
2450  #define MADERA_AIF1RX4_ENA				0x0008
2451  #define MADERA_AIF1RX4_ENA_MASK				0x0008
2452  #define MADERA_AIF1RX4_ENA_SHIFT			     3
2453  #define MADERA_AIF1RX3_ENA				0x0004
2454  #define MADERA_AIF1RX3_ENA_MASK				0x0004
2455  #define MADERA_AIF1RX3_ENA_SHIFT			     2
2456  #define MADERA_AIF1RX2_ENA				0x0002
2457  #define MADERA_AIF1RX2_ENA_MASK				0x0002
2458  #define MADERA_AIF1RX2_ENA_SHIFT			     1
2459  #define MADERA_AIF1RX1_ENA				0x0001
2460  #define MADERA_AIF1RX1_ENA_MASK				0x0001
2461  #define MADERA_AIF1RX1_ENA_SHIFT			     0
2462  
2463  /* (0x0559)  AIF2_Tx_Enables */
2464  #define MADERA_AIF2TX8_ENA				0x0080
2465  #define MADERA_AIF2TX8_ENA_MASK				0x0080
2466  #define MADERA_AIF2TX8_ENA_SHIFT			     7
2467  #define MADERA_AIF2TX7_ENA				0x0040
2468  #define MADERA_AIF2TX7_ENA_MASK				0x0040
2469  #define MADERA_AIF2TX7_ENA_SHIFT			     6
2470  #define MADERA_AIF2TX6_ENA				0x0020
2471  #define MADERA_AIF2TX6_ENA_MASK				0x0020
2472  #define MADERA_AIF2TX6_ENA_SHIFT			     5
2473  #define MADERA_AIF2TX5_ENA				0x0010
2474  #define MADERA_AIF2TX5_ENA_MASK				0x0010
2475  #define MADERA_AIF2TX5_ENA_SHIFT			     4
2476  #define MADERA_AIF2TX4_ENA				0x0008
2477  #define MADERA_AIF2TX4_ENA_MASK				0x0008
2478  #define MADERA_AIF2TX4_ENA_SHIFT			     3
2479  #define MADERA_AIF2TX3_ENA				0x0004
2480  #define MADERA_AIF2TX3_ENA_MASK				0x0004
2481  #define MADERA_AIF2TX3_ENA_SHIFT			     2
2482  #define MADERA_AIF2TX2_ENA				0x0002
2483  #define MADERA_AIF2TX2_ENA_MASK				0x0002
2484  #define MADERA_AIF2TX2_ENA_SHIFT			     1
2485  #define MADERA_AIF2TX1_ENA				0x0001
2486  #define MADERA_AIF2TX1_ENA_MASK				0x0001
2487  #define MADERA_AIF2TX1_ENA_SHIFT			     0
2488  
2489  /* (0x055A)  AIF2_Rx_Enables */
2490  #define MADERA_AIF2RX8_ENA				0x0080
2491  #define MADERA_AIF2RX8_ENA_MASK				0x0080
2492  #define MADERA_AIF2RX8_ENA_SHIFT			     7
2493  #define MADERA_AIF2RX7_ENA				0x0040
2494  #define MADERA_AIF2RX7_ENA_MASK				0x0040
2495  #define MADERA_AIF2RX7_ENA_SHIFT			     6
2496  #define MADERA_AIF2RX6_ENA				0x0020
2497  #define MADERA_AIF2RX6_ENA_MASK				0x0020
2498  #define MADERA_AIF2RX6_ENA_SHIFT			     5
2499  #define MADERA_AIF2RX5_ENA				0x0010
2500  #define MADERA_AIF2RX5_ENA_MASK				0x0010
2501  #define MADERA_AIF2RX5_ENA_SHIFT			     4
2502  #define MADERA_AIF2RX4_ENA				0x0008
2503  #define MADERA_AIF2RX4_ENA_MASK				0x0008
2504  #define MADERA_AIF2RX4_ENA_SHIFT			     3
2505  #define MADERA_AIF2RX3_ENA				0x0004
2506  #define MADERA_AIF2RX3_ENA_MASK				0x0004
2507  #define MADERA_AIF2RX3_ENA_SHIFT			     2
2508  #define MADERA_AIF2RX2_ENA				0x0002
2509  #define MADERA_AIF2RX2_ENA_MASK				0x0002
2510  #define MADERA_AIF2RX2_ENA_SHIFT			     1
2511  #define MADERA_AIF2RX1_ENA				0x0001
2512  #define MADERA_AIF2RX1_ENA_MASK				0x0001
2513  #define MADERA_AIF2RX1_ENA_SHIFT			     0
2514  
2515  /* (0x0599)  AIF3_Tx_Enables */
2516  #define MADERA_AIF3TX8_ENA				0x0080
2517  #define MADERA_AIF3TX8_ENA_MASK				0x0080
2518  #define MADERA_AIF3TX8_ENA_SHIFT			     7
2519  #define MADERA_AIF3TX7_ENA				0x0040
2520  #define MADERA_AIF3TX7_ENA_MASK				0x0040
2521  #define MADERA_AIF3TX7_ENA_SHIFT			     6
2522  #define MADERA_AIF3TX6_ENA				0x0020
2523  #define MADERA_AIF3TX6_ENA_MASK				0x0020
2524  #define MADERA_AIF3TX6_ENA_SHIFT			     5
2525  #define MADERA_AIF3TX5_ENA				0x0010
2526  #define MADERA_AIF3TX5_ENA_MASK				0x0010
2527  #define MADERA_AIF3TX5_ENA_SHIFT			     4
2528  #define MADERA_AIF3TX4_ENA				0x0008
2529  #define MADERA_AIF3TX4_ENA_MASK				0x0008
2530  #define MADERA_AIF3TX4_ENA_SHIFT			     3
2531  #define MADERA_AIF3TX3_ENA				0x0004
2532  #define MADERA_AIF3TX3_ENA_MASK				0x0004
2533  #define MADERA_AIF3TX3_ENA_SHIFT			     2
2534  #define MADERA_AIF3TX2_ENA				0x0002
2535  #define MADERA_AIF3TX2_ENA_MASK				0x0002
2536  #define MADERA_AIF3TX2_ENA_SHIFT			     1
2537  #define MADERA_AIF3TX1_ENA				0x0001
2538  #define MADERA_AIF3TX1_ENA_MASK				0x0001
2539  #define MADERA_AIF3TX1_ENA_SHIFT			     0
2540  
2541  /* (0x059A)  AIF3_Rx_Enables */
2542  #define MADERA_AIF3RX8_ENA				0x0080
2543  #define MADERA_AIF3RX8_ENA_MASK				0x0080
2544  #define MADERA_AIF3RX8_ENA_SHIFT			     7
2545  #define MADERA_AIF3RX7_ENA				0x0040
2546  #define MADERA_AIF3RX7_ENA_MASK				0x0040
2547  #define MADERA_AIF3RX7_ENA_SHIFT			     6
2548  #define MADERA_AIF3RX6_ENA				0x0020
2549  #define MADERA_AIF3RX6_ENA_MASK				0x0020
2550  #define MADERA_AIF3RX6_ENA_SHIFT			     5
2551  #define MADERA_AIF3RX5_ENA				0x0010
2552  #define MADERA_AIF3RX5_ENA_MASK				0x0010
2553  #define MADERA_AIF3RX5_ENA_SHIFT			     4
2554  #define MADERA_AIF3RX4_ENA				0x0008
2555  #define MADERA_AIF3RX4_ENA_MASK				0x0008
2556  #define MADERA_AIF3RX4_ENA_SHIFT			     3
2557  #define MADERA_AIF3RX3_ENA				0x0004
2558  #define MADERA_AIF3RX3_ENA_MASK				0x0004
2559  #define MADERA_AIF3RX3_ENA_SHIFT			     2
2560  #define MADERA_AIF3RX2_ENA				0x0002
2561  #define MADERA_AIF3RX2_ENA_MASK				0x0002
2562  #define MADERA_AIF3RX2_ENA_SHIFT			     1
2563  #define MADERA_AIF3RX1_ENA				0x0001
2564  #define MADERA_AIF3RX1_ENA_MASK				0x0001
2565  #define MADERA_AIF3RX1_ENA_SHIFT			     0
2566  
2567  /* (0x05B9)  AIF4_Tx_Enables */
2568  #define MADERA_AIF4TX2_ENA				0x0002
2569  #define MADERA_AIF4TX2_ENA_MASK				0x0002
2570  #define MADERA_AIF4TX2_ENA_SHIFT			     1
2571  #define MADERA_AIF4TX1_ENA				0x0001
2572  #define MADERA_AIF4TX1_ENA_MASK				0x0001
2573  #define MADERA_AIF4TX1_ENA_SHIFT			     0
2574  
2575  /* (0x05BA)  AIF4_Rx_Enables */
2576  #define MADERA_AIF4RX2_ENA				0x0002
2577  #define MADERA_AIF4RX2_ENA_MASK				0x0002
2578  #define MADERA_AIF4RX2_ENA_SHIFT			     1
2579  #define MADERA_AIF4RX1_ENA				0x0001
2580  #define MADERA_AIF4RX1_ENA_MASK				0x0001
2581  #define MADERA_AIF4RX1_ENA_SHIFT			     0
2582  
2583  /* (0x05C2)  SPD1_TX_Control */
2584  #define MADERA_SPD1_VAL2				0x2000
2585  #define MADERA_SPD1_VAL2_MASK				0x2000
2586  #define MADERA_SPD1_VAL2_SHIFT				    13
2587  #define MADERA_SPD1_VAL1				0x1000
2588  #define MADERA_SPD1_VAL1_MASK				0x1000
2589  #define MADERA_SPD1_VAL1_SHIFT				    12
2590  #define MADERA_SPD1_RATE_MASK				0x00F0
2591  #define MADERA_SPD1_RATE_SHIFT				     4
2592  #define MADERA_SPD1_ENA					0x0001
2593  #define MADERA_SPD1_ENA_MASK				0x0001
2594  #define MADERA_SPD1_ENA_SHIFT				     0
2595  
2596  /* (0x05F5)  SLIMbus_RX_Channel_Enable */
2597  #define MADERA_SLIMRX8_ENA				0x0080
2598  #define MADERA_SLIMRX8_ENA_MASK				0x0080
2599  #define MADERA_SLIMRX8_ENA_SHIFT			     7
2600  #define MADERA_SLIMRX7_ENA				0x0040
2601  #define MADERA_SLIMRX7_ENA_MASK				0x0040
2602  #define MADERA_SLIMRX7_ENA_SHIFT			     6
2603  #define MADERA_SLIMRX6_ENA				0x0020
2604  #define MADERA_SLIMRX6_ENA_MASK				0x0020
2605  #define MADERA_SLIMRX6_ENA_SHIFT			     5
2606  #define MADERA_SLIMRX5_ENA				0x0010
2607  #define MADERA_SLIMRX5_ENA_MASK				0x0010
2608  #define MADERA_SLIMRX5_ENA_SHIFT			     4
2609  #define MADERA_SLIMRX4_ENA				0x0008
2610  #define MADERA_SLIMRX4_ENA_MASK				0x0008
2611  #define MADERA_SLIMRX4_ENA_SHIFT			     3
2612  #define MADERA_SLIMRX3_ENA				0x0004
2613  #define MADERA_SLIMRX3_ENA_MASK				0x0004
2614  #define MADERA_SLIMRX3_ENA_SHIFT			     2
2615  #define MADERA_SLIMRX2_ENA				0x0002
2616  #define MADERA_SLIMRX2_ENA_MASK				0x0002
2617  #define MADERA_SLIMRX2_ENA_SHIFT			     1
2618  #define MADERA_SLIMRX1_ENA				0x0001
2619  #define MADERA_SLIMRX1_ENA_MASK				0x0001
2620  #define MADERA_SLIMRX1_ENA_SHIFT			     0
2621  
2622  /* (0x05F6)  SLIMbus_TX_Channel_Enable */
2623  #define MADERA_SLIMTX8_ENA				0x0080
2624  #define MADERA_SLIMTX8_ENA_MASK				0x0080
2625  #define MADERA_SLIMTX8_ENA_SHIFT			     7
2626  #define MADERA_SLIMTX7_ENA				0x0040
2627  #define MADERA_SLIMTX7_ENA_MASK				0x0040
2628  #define MADERA_SLIMTX7_ENA_SHIFT			     6
2629  #define MADERA_SLIMTX6_ENA				0x0020
2630  #define MADERA_SLIMTX6_ENA_MASK				0x0020
2631  #define MADERA_SLIMTX6_ENA_SHIFT			     5
2632  #define MADERA_SLIMTX5_ENA				0x0010
2633  #define MADERA_SLIMTX5_ENA_MASK				0x0010
2634  #define MADERA_SLIMTX5_ENA_SHIFT			     4
2635  #define MADERA_SLIMTX4_ENA				0x0008
2636  #define MADERA_SLIMTX4_ENA_MASK				0x0008
2637  #define MADERA_SLIMTX4_ENA_SHIFT			     3
2638  #define MADERA_SLIMTX3_ENA				0x0004
2639  #define MADERA_SLIMTX3_ENA_MASK				0x0004
2640  #define MADERA_SLIMTX3_ENA_SHIFT			     2
2641  #define MADERA_SLIMTX2_ENA				0x0002
2642  #define MADERA_SLIMTX2_ENA_MASK				0x0002
2643  #define MADERA_SLIMTX2_ENA_SHIFT			     1
2644  #define MADERA_SLIMTX1_ENA				0x0001
2645  #define MADERA_SLIMTX1_ENA_MASK				0x0001
2646  #define MADERA_SLIMTX1_ENA_SHIFT			     0
2647  
2648  /* (0x0E10)  EQ1_1 */
2649  #define MADERA_EQ1_B1_GAIN_MASK				0xF800
2650  #define MADERA_EQ1_B1_GAIN_SHIFT			    11
2651  #define MADERA_EQ1_B2_GAIN_MASK				0x07C0
2652  #define MADERA_EQ1_B2_GAIN_SHIFT			     6
2653  #define MADERA_EQ1_B3_GAIN_MASK				0x003E
2654  #define MADERA_EQ1_B3_GAIN_SHIFT			     1
2655  #define MADERA_EQ1_ENA					0x0001
2656  #define MADERA_EQ1_ENA_MASK				0x0001
2657  #define MADERA_EQ1_ENA_SHIFT				     0
2658  
2659  /* (0x0E11)  EQ1_2 */
2660  #define MADERA_EQ1_B4_GAIN_MASK				0xF800
2661  #define MADERA_EQ1_B4_GAIN_SHIFT			    11
2662  #define MADERA_EQ1_B5_GAIN_MASK				0x07C0
2663  #define MADERA_EQ1_B5_GAIN_SHIFT			     6
2664  #define MADERA_EQ1_B1_MODE				0x0001
2665  #define MADERA_EQ1_B1_MODE_MASK				0x0001
2666  #define MADERA_EQ1_B1_MODE_SHIFT			     0
2667  
2668  /* (0x0E26)  EQ2_1 */
2669  #define MADERA_EQ2_B1_GAIN_MASK				0xF800
2670  #define MADERA_EQ2_B1_GAIN_SHIFT			    11
2671  #define MADERA_EQ2_B2_GAIN_MASK				0x07C0
2672  #define MADERA_EQ2_B2_GAIN_SHIFT			     6
2673  #define MADERA_EQ2_B3_GAIN_MASK				0x003E
2674  #define MADERA_EQ2_B3_GAIN_SHIFT			     1
2675  #define MADERA_EQ2_ENA					0x0001
2676  #define MADERA_EQ2_ENA_MASK				0x0001
2677  #define MADERA_EQ2_ENA_SHIFT				     0
2678  
2679  /* (0x0E27)  EQ2_2 */
2680  #define MADERA_EQ2_B4_GAIN_MASK				0xF800
2681  #define MADERA_EQ2_B4_GAIN_SHIFT			    11
2682  #define MADERA_EQ2_B5_GAIN_MASK				0x07C0
2683  #define MADERA_EQ2_B5_GAIN_SHIFT			     6
2684  #define MADERA_EQ2_B1_MODE				0x0001
2685  #define MADERA_EQ2_B1_MODE_MASK				0x0001
2686  #define MADERA_EQ2_B1_MODE_SHIFT			     0
2687  
2688  /* (0x0E3C)  EQ3_1 */
2689  #define MADERA_EQ3_B1_GAIN_MASK				0xF800
2690  #define MADERA_EQ3_B1_GAIN_SHIFT			    11
2691  #define MADERA_EQ3_B2_GAIN_MASK				0x07C0
2692  #define MADERA_EQ3_B2_GAIN_SHIFT			     6
2693  #define MADERA_EQ3_B3_GAIN_MASK				0x003E
2694  #define MADERA_EQ3_B3_GAIN_SHIFT			     1
2695  #define MADERA_EQ3_ENA					0x0001
2696  #define MADERA_EQ3_ENA_MASK				0x0001
2697  #define MADERA_EQ3_ENA_SHIFT				     0
2698  
2699  /* (0x0E3D)  EQ3_2 */
2700  #define MADERA_EQ3_B4_GAIN_MASK				0xF800
2701  #define MADERA_EQ3_B4_GAIN_SHIFT			    11
2702  #define MADERA_EQ3_B5_GAIN_MASK				0x07C0
2703  #define MADERA_EQ3_B5_GAIN_SHIFT			     6
2704  #define MADERA_EQ3_B1_MODE				0x0001
2705  #define MADERA_EQ3_B1_MODE_MASK				0x0001
2706  #define MADERA_EQ3_B1_MODE_SHIFT			     0
2707  
2708  /* (0x0E52)  EQ4_1 */
2709  #define MADERA_EQ4_B1_GAIN_MASK				0xF800
2710  #define MADERA_EQ4_B1_GAIN_SHIFT			    11
2711  #define MADERA_EQ4_B2_GAIN_MASK				0x07C0
2712  #define MADERA_EQ4_B2_GAIN_SHIFT			     6
2713  #define MADERA_EQ4_B3_GAIN_MASK				0x003E
2714  #define MADERA_EQ4_B3_GAIN_SHIFT			     1
2715  #define MADERA_EQ4_ENA					0x0001
2716  #define MADERA_EQ4_ENA_MASK				0x0001
2717  #define MADERA_EQ4_ENA_SHIFT				     0
2718  
2719  /* (0x0E53)  EQ4_2 */
2720  #define MADERA_EQ4_B4_GAIN_MASK				0xF800
2721  #define MADERA_EQ4_B4_GAIN_SHIFT			    11
2722  #define MADERA_EQ4_B5_GAIN_MASK				0x07C0
2723  #define MADERA_EQ4_B5_GAIN_SHIFT			     6
2724  #define MADERA_EQ4_B1_MODE				0x0001
2725  #define MADERA_EQ4_B1_MODE_MASK				0x0001
2726  #define MADERA_EQ4_B1_MODE_SHIFT			     0
2727  
2728  /* (0x0E80)  DRC1_ctrl1 */
2729  #define MADERA_DRC1L_ENA				0x0002
2730  #define MADERA_DRC1L_ENA_MASK				0x0002
2731  #define MADERA_DRC1L_ENA_SHIFT				     1
2732  #define MADERA_DRC1R_ENA				0x0001
2733  #define MADERA_DRC1R_ENA_MASK				0x0001
2734  #define MADERA_DRC1R_ENA_SHIFT				     0
2735  
2736  /* (0x0E88)  DRC2_ctrl1 */
2737  #define MADERA_DRC2L_ENA				0x0002
2738  #define MADERA_DRC2L_ENA_MASK				0x0002
2739  #define MADERA_DRC2L_ENA_SHIFT				     1
2740  #define MADERA_DRC2R_ENA				0x0001
2741  #define MADERA_DRC2R_ENA_MASK				0x0001
2742  #define MADERA_DRC2R_ENA_SHIFT				     0
2743  
2744  /* (0x0EC0)  HPLPF1_1 */
2745  #define MADERA_LHPF1_MODE				0x0002
2746  #define MADERA_LHPF1_MODE_MASK				0x0002
2747  #define MADERA_LHPF1_MODE_SHIFT				     1
2748  #define MADERA_LHPF1_ENA				0x0001
2749  #define MADERA_LHPF1_ENA_MASK				0x0001
2750  #define MADERA_LHPF1_ENA_SHIFT				     0
2751  
2752  /* (0x0EC1)  HPLPF1_2 */
2753  #define MADERA_LHPF1_COEFF_MASK				0xFFFF
2754  #define MADERA_LHPF1_COEFF_SHIFT			     0
2755  
2756  /* (0x0EC4)  HPLPF2_1 */
2757  #define MADERA_LHPF2_MODE				0x0002
2758  #define MADERA_LHPF2_MODE_MASK				0x0002
2759  #define MADERA_LHPF2_MODE_SHIFT				     1
2760  #define MADERA_LHPF2_ENA				0x0001
2761  #define MADERA_LHPF2_ENA_MASK				0x0001
2762  #define MADERA_LHPF2_ENA_SHIFT				     0
2763  
2764  /* (0x0EC5)  HPLPF2_2 */
2765  #define MADERA_LHPF2_COEFF_MASK				0xFFFF
2766  #define MADERA_LHPF2_COEFF_SHIFT			     0
2767  
2768  /* (0x0EC8)  HPLPF3_1 */
2769  #define MADERA_LHPF3_MODE				0x0002
2770  #define MADERA_LHPF3_MODE_MASK				0x0002
2771  #define MADERA_LHPF3_MODE_SHIFT				     1
2772  #define MADERA_LHPF3_ENA				0x0001
2773  #define MADERA_LHPF3_ENA_MASK				0x0001
2774  #define MADERA_LHPF3_ENA_SHIFT				     0
2775  
2776  /* (0x0EC9)  HPLPF3_2 */
2777  #define MADERA_LHPF3_COEFF_MASK				0xFFFF
2778  #define MADERA_LHPF3_COEFF_SHIFT			     0
2779  
2780  /* (0x0ECC)  HPLPF4_1 */
2781  #define MADERA_LHPF4_MODE				0x0002
2782  #define MADERA_LHPF4_MODE_MASK				0x0002
2783  #define MADERA_LHPF4_MODE_SHIFT				     1
2784  #define MADERA_LHPF4_ENA				0x0001
2785  #define MADERA_LHPF4_ENA_MASK				0x0001
2786  #define MADERA_LHPF4_ENA_SHIFT				     0
2787  
2788  /* (0x0ECD)  HPLPF4_2 */
2789  #define MADERA_LHPF4_COEFF_MASK				0xFFFF
2790  #define MADERA_LHPF4_COEFF_SHIFT			     0
2791  
2792  /* (0x0ED0)  ASRC2_ENABLE */
2793  #define MADERA_ASRC2_IN2L_ENA				0x0008
2794  #define MADERA_ASRC2_IN2L_ENA_MASK			0x0008
2795  #define MADERA_ASRC2_IN2L_ENA_SHIFT			     3
2796  #define MADERA_ASRC2_IN2R_ENA				0x0004
2797  #define MADERA_ASRC2_IN2R_ENA_MASK			0x0004
2798  #define MADERA_ASRC2_IN2R_ENA_SHIFT			     2
2799  #define MADERA_ASRC2_IN1L_ENA				0x0002
2800  #define MADERA_ASRC2_IN1L_ENA_MASK			0x0002
2801  #define MADERA_ASRC2_IN1L_ENA_SHIFT			     1
2802  #define MADERA_ASRC2_IN1R_ENA				0x0001
2803  #define MADERA_ASRC2_IN1R_ENA_MASK			0x0001
2804  #define MADERA_ASRC2_IN1R_ENA_SHIFT			     0
2805  
2806  /* (0x0ED2)  ASRC2_RATE1 */
2807  #define MADERA_ASRC2_RATE1_MASK				0xF800
2808  #define MADERA_ASRC2_RATE1_SHIFT			    11
2809  
2810  /* (0x0ED3)  ASRC2_RATE2 */
2811  #define MADERA_ASRC2_RATE2_MASK				0xF800
2812  #define MADERA_ASRC2_RATE2_SHIFT			    11
2813  
2814  /* (0x0EE0)  ASRC1_ENABLE */
2815  #define MADERA_ASRC1_IN2L_ENA				0x0008
2816  #define MADERA_ASRC1_IN2L_ENA_MASK			0x0008
2817  #define MADERA_ASRC1_IN2L_ENA_SHIFT			     3
2818  #define MADERA_ASRC1_IN2R_ENA				0x0004
2819  #define MADERA_ASRC1_IN2R_ENA_MASK			0x0004
2820  #define MADERA_ASRC1_IN2R_ENA_SHIFT			     2
2821  #define MADERA_ASRC1_IN1L_ENA				0x0002
2822  #define MADERA_ASRC1_IN1L_ENA_MASK			0x0002
2823  #define MADERA_ASRC1_IN1L_ENA_SHIFT			     1
2824  #define MADERA_ASRC1_IN1R_ENA				0x0001
2825  #define MADERA_ASRC1_IN1R_ENA_MASK			0x0001
2826  #define MADERA_ASRC1_IN1R_ENA_SHIFT			     0
2827  
2828  /* (0x0EE2)  ASRC1_RATE1 */
2829  #define MADERA_ASRC1_RATE1_MASK				0xF800
2830  #define MADERA_ASRC1_RATE1_SHIFT			    11
2831  
2832  /* (0x0EE3)  ASRC1_RATE2 */
2833  #define MADERA_ASRC1_RATE2_MASK				0xF800
2834  #define MADERA_ASRC1_RATE2_SHIFT			    11
2835  
2836  /* (0x0EF0) - ISRC1 CTRL 1 */
2837  #define MADERA_ISRC1_FSH_MASK				0xF800
2838  #define MADERA_ISRC1_FSH_SHIFT				    11
2839  #define MADERA_ISRC1_CLK_SEL_MASK			0x0700
2840  #define MADERA_ISRC1_CLK_SEL_SHIFT			     8
2841  
2842  /* (0x0EF1)  ISRC1_CTRL_2 */
2843  #define MADERA_ISRC1_FSL_MASK				0xF800
2844  #define MADERA_ISRC1_FSL_SHIFT				    11
2845  
2846  /* (0x0EF2)  ISRC1_CTRL_3 */
2847  #define MADERA_ISRC1_INT1_ENA				0x8000
2848  #define MADERA_ISRC1_INT1_ENA_MASK			0x8000
2849  #define MADERA_ISRC1_INT1_ENA_SHIFT			    15
2850  #define MADERA_ISRC1_INT2_ENA				0x4000
2851  #define MADERA_ISRC1_INT2_ENA_MASK			0x4000
2852  #define MADERA_ISRC1_INT2_ENA_SHIFT			    14
2853  #define MADERA_ISRC1_INT3_ENA				0x2000
2854  #define MADERA_ISRC1_INT3_ENA_MASK			0x2000
2855  #define MADERA_ISRC1_INT3_ENA_SHIFT			    13
2856  #define MADERA_ISRC1_INT4_ENA				0x1000
2857  #define MADERA_ISRC1_INT4_ENA_MASK			0x1000
2858  #define MADERA_ISRC1_INT4_ENA_SHIFT			    12
2859  #define MADERA_ISRC1_DEC1_ENA				0x0200
2860  #define MADERA_ISRC1_DEC1_ENA_MASK			0x0200
2861  #define MADERA_ISRC1_DEC1_ENA_SHIFT			     9
2862  #define MADERA_ISRC1_DEC2_ENA				0x0100
2863  #define MADERA_ISRC1_DEC2_ENA_MASK			0x0100
2864  #define MADERA_ISRC1_DEC2_ENA_SHIFT			     8
2865  #define MADERA_ISRC1_DEC3_ENA				0x0080
2866  #define MADERA_ISRC1_DEC3_ENA_MASK			0x0080
2867  #define MADERA_ISRC1_DEC3_ENA_SHIFT			     7
2868  #define MADERA_ISRC1_DEC4_ENA				0x0040
2869  #define MADERA_ISRC1_DEC4_ENA_MASK			0x0040
2870  #define MADERA_ISRC1_DEC4_ENA_SHIFT			     6
2871  #define MADERA_ISRC1_NOTCH_ENA				0x0001
2872  #define MADERA_ISRC1_NOTCH_ENA_MASK			0x0001
2873  #define MADERA_ISRC1_NOTCH_ENA_SHIFT			     0
2874  
2875  /* (0x0EF3)  ISRC2_CTRL_1 */
2876  #define MADERA_ISRC2_FSH_MASK				0xF800
2877  #define MADERA_ISRC2_FSH_SHIFT				    11
2878  #define MADERA_ISRC2_CLK_SEL_MASK			0x0700
2879  #define MADERA_ISRC2_CLK_SEL_SHIFT			     8
2880  
2881  /* (0x0EF4)  ISRC2_CTRL_2 */
2882  #define MADERA_ISRC2_FSL_MASK				0xF800
2883  #define MADERA_ISRC2_FSL_SHIFT				    11
2884  
2885  /* (0x0EF5)  ISRC2_CTRL_3 */
2886  #define MADERA_ISRC2_INT1_ENA				0x8000
2887  #define MADERA_ISRC2_INT1_ENA_MASK			0x8000
2888  #define MADERA_ISRC2_INT1_ENA_SHIFT			    15
2889  #define MADERA_ISRC2_INT2_ENA				0x4000
2890  #define MADERA_ISRC2_INT2_ENA_MASK			0x4000
2891  #define MADERA_ISRC2_INT2_ENA_SHIFT			    14
2892  #define MADERA_ISRC2_INT3_ENA				0x2000
2893  #define MADERA_ISRC2_INT3_ENA_MASK			0x2000
2894  #define MADERA_ISRC2_INT3_ENA_SHIFT			    13
2895  #define MADERA_ISRC2_INT4_ENA				0x1000
2896  #define MADERA_ISRC2_INT4_ENA_MASK			0x1000
2897  #define MADERA_ISRC2_INT4_ENA_SHIFT			    12
2898  #define MADERA_ISRC2_DEC1_ENA				0x0200
2899  #define MADERA_ISRC2_DEC1_ENA_MASK			0x0200
2900  #define MADERA_ISRC2_DEC1_ENA_SHIFT			     9
2901  #define MADERA_ISRC2_DEC2_ENA				0x0100
2902  #define MADERA_ISRC2_DEC2_ENA_MASK			0x0100
2903  #define MADERA_ISRC2_DEC2_ENA_SHIFT			     8
2904  #define MADERA_ISRC2_DEC3_ENA				0x0080
2905  #define MADERA_ISRC2_DEC3_ENA_MASK			0x0080
2906  #define MADERA_ISRC2_DEC3_ENA_SHIFT			     7
2907  #define MADERA_ISRC2_DEC4_ENA				0x0040
2908  #define MADERA_ISRC2_DEC4_ENA_MASK			0x0040
2909  #define MADERA_ISRC2_DEC4_ENA_SHIFT			     6
2910  #define MADERA_ISRC2_NOTCH_ENA				0x0001
2911  #define MADERA_ISRC2_NOTCH_ENA_MASK			0x0001
2912  #define MADERA_ISRC2_NOTCH_ENA_SHIFT			     0
2913  
2914  /* (0x0EF6)  ISRC3_CTRL_1 */
2915  #define MADERA_ISRC3_FSH_MASK				0xF800
2916  #define MADERA_ISRC3_FSH_SHIFT				    11
2917  #define MADERA_ISRC3_CLK_SEL_MASK			0x0700
2918  #define MADERA_ISRC3_CLK_SEL_SHIFT			     8
2919  
2920  /* (0x0EF7)  ISRC3_CTRL_2 */
2921  #define MADERA_ISRC3_FSL_MASK				0xF800
2922  #define MADERA_ISRC3_FSL_SHIFT				    11
2923  
2924  /* (0x0EF8)  ISRC3_CTRL_3 */
2925  #define MADERA_ISRC3_INT1_ENA				0x8000
2926  #define MADERA_ISRC3_INT1_ENA_MASK			0x8000
2927  #define MADERA_ISRC3_INT1_ENA_SHIFT			    15
2928  #define MADERA_ISRC3_INT2_ENA				0x4000
2929  #define MADERA_ISRC3_INT2_ENA_MASK			0x4000
2930  #define MADERA_ISRC3_INT2_ENA_SHIFT			    14
2931  #define MADERA_ISRC3_INT3_ENA				0x2000
2932  #define MADERA_ISRC3_INT3_ENA_MASK			0x2000
2933  #define MADERA_ISRC3_INT3_ENA_SHIFT			    13
2934  #define MADERA_ISRC3_INT4_ENA				0x1000
2935  #define MADERA_ISRC3_INT4_ENA_MASK			0x1000
2936  #define MADERA_ISRC3_INT4_ENA_SHIFT			    12
2937  #define MADERA_ISRC3_DEC1_ENA				0x0200
2938  #define MADERA_ISRC3_DEC1_ENA_MASK			0x0200
2939  #define MADERA_ISRC3_DEC1_ENA_SHIFT			     9
2940  #define MADERA_ISRC3_DEC2_ENA				0x0100
2941  #define MADERA_ISRC3_DEC2_ENA_MASK			0x0100
2942  #define MADERA_ISRC3_DEC2_ENA_SHIFT			     8
2943  #define MADERA_ISRC3_DEC3_ENA				0x0080
2944  #define MADERA_ISRC3_DEC3_ENA_MASK			0x0080
2945  #define MADERA_ISRC3_DEC3_ENA_SHIFT			     7
2946  #define MADERA_ISRC3_DEC4_ENA				0x0040
2947  #define MADERA_ISRC3_DEC4_ENA_MASK			0x0040
2948  #define MADERA_ISRC3_DEC4_ENA_SHIFT			     6
2949  #define MADERA_ISRC3_NOTCH_ENA				0x0001
2950  #define MADERA_ISRC3_NOTCH_ENA_MASK			0x0001
2951  #define MADERA_ISRC3_NOTCH_ENA_SHIFT			     0
2952  
2953  /* (0x0EF9)  ISRC4_CTRL_1 */
2954  #define MADERA_ISRC4_FSH_MASK				0xF800
2955  #define MADERA_ISRC4_FSH_SHIFT				    11
2956  #define MADERA_ISRC4_CLK_SEL_MASK			0x0700
2957  #define MADERA_ISRC4_CLK_SEL_SHIFT			     8
2958  
2959  /* (0x0EFA)  ISRC4_CTRL_2 */
2960  #define MADERA_ISRC4_FSL_MASK				0xF800
2961  #define MADERA_ISRC4_FSL_SHIFT				    11
2962  
2963  /* (0x0EFB)  ISRC4_CTRL_3 */
2964  #define MADERA_ISRC4_INT1_ENA				0x8000
2965  #define MADERA_ISRC4_INT1_ENA_MASK			0x8000
2966  #define MADERA_ISRC4_INT1_ENA_SHIFT			    15
2967  #define MADERA_ISRC4_INT2_ENA				0x4000
2968  #define MADERA_ISRC4_INT2_ENA_MASK			0x4000
2969  #define MADERA_ISRC4_INT2_ENA_SHIFT			    14
2970  #define MADERA_ISRC4_INT3_ENA				0x2000
2971  #define MADERA_ISRC4_INT3_ENA_MASK			0x2000
2972  #define MADERA_ISRC4_INT3_ENA_SHIFT			    13
2973  #define MADERA_ISRC4_INT4_ENA				0x1000
2974  #define MADERA_ISRC4_INT4_ENA_MASK			0x1000
2975  #define MADERA_ISRC4_INT4_ENA_SHIFT			    12
2976  #define MADERA_ISRC4_DEC1_ENA				0x0200
2977  #define MADERA_ISRC4_DEC1_ENA_MASK			0x0200
2978  #define MADERA_ISRC4_DEC1_ENA_SHIFT			     9
2979  #define MADERA_ISRC4_DEC2_ENA				0x0100
2980  #define MADERA_ISRC4_DEC2_ENA_MASK			0x0100
2981  #define MADERA_ISRC4_DEC2_ENA_SHIFT			     8
2982  #define MADERA_ISRC4_DEC3_ENA				0x0080
2983  #define MADERA_ISRC4_DEC3_ENA_MASK			0x0080
2984  #define MADERA_ISRC4_DEC3_ENA_SHIFT			     7
2985  #define MADERA_ISRC4_DEC4_ENA				0x0040
2986  #define MADERA_ISRC4_DEC4_ENA_MASK			0x0040
2987  #define MADERA_ISRC4_DEC4_ENA_SHIFT			     6
2988  #define MADERA_ISRC4_NOTCH_ENA				0x0001
2989  #define MADERA_ISRC4_NOTCH_ENA_MASK			0x0001
2990  #define MADERA_ISRC4_NOTCH_ENA_SHIFT			     0
2991  
2992  /* (0x0F00)  Clock_Control */
2993  #define MADERA_EXT_NG_SEL_CLR				0x0080
2994  #define MADERA_EXT_NG_SEL_CLR_MASK			0x0080
2995  #define MADERA_EXT_NG_SEL_CLR_SHIFT			     7
2996  #define MADERA_EXT_NG_SEL_SET				0x0040
2997  #define MADERA_EXT_NG_SEL_SET_MASK			0x0040
2998  #define MADERA_EXT_NG_SEL_SET_SHIFT			     6
2999  #define MADERA_CLK_R_ENA_CLR				0x0020
3000  #define MADERA_CLK_R_ENA_CLR_MASK			0x0020
3001  #define MADERA_CLK_R_ENA_CLR_SHIFT			     5
3002  #define MADERA_CLK_R_ENA_SET				0x0010
3003  #define MADERA_CLK_R_ENA_SET_MASK			0x0010
3004  #define MADERA_CLK_R_ENA_SET_SHIFT			     4
3005  #define MADERA_CLK_NG_ENA_CLR				0x0008
3006  #define MADERA_CLK_NG_ENA_CLR_MASK			0x0008
3007  #define MADERA_CLK_NG_ENA_CLR_SHIFT			     3
3008  #define MADERA_CLK_NG_ENA_SET				0x0004
3009  #define MADERA_CLK_NG_ENA_SET_MASK			0x0004
3010  #define MADERA_CLK_NG_ENA_SET_SHIFT			     2
3011  #define MADERA_CLK_L_ENA_CLR				0x0002
3012  #define MADERA_CLK_L_ENA_CLR_MASK			0x0002
3013  #define MADERA_CLK_L_ENA_CLR_SHIFT			     1
3014  #define MADERA_CLK_L_ENA_SET				0x0001
3015  #define MADERA_CLK_L_ENA_SET_MASK			0x0001
3016  #define MADERA_CLK_L_ENA_SET_SHIFT			     0
3017  
3018  /* (0x0F01)  ANC_SRC */
3019  #define MADERA_IN_RXANCR_SEL_MASK			0x0070
3020  #define MADERA_IN_RXANCR_SEL_SHIFT			     4
3021  #define MADERA_IN_RXANCL_SEL_MASK			0x0007
3022  #define MADERA_IN_RXANCL_SEL_SHIFT			     0
3023  
3024  /* (0x0F17)  FCL_ADC_reformatter_control */
3025  #define MADERA_FCL_MIC_MODE_SEL				0x000C
3026  #define MADERA_FCL_MIC_MODE_SEL_SHIFT			     2
3027  
3028  /* (0x0F73)  FCR_ADC_reformatter_control */
3029  #define MADERA_FCR_MIC_MODE_SEL				0x000C
3030  #define MADERA_FCR_MIC_MODE_SEL_SHIFT			     2
3031  
3032  /* (0x10C0)  AUXPDM1_CTRL_0 */
3033  #define MADERA_AUXPDM1_SRC_MASK				0x0F00
3034  #define MADERA_AUXPDM1_SRC_SHIFT			     8
3035  #define MADERA_AUXPDM1_TXEDGE_MASK			0x0010
3036  #define MADERA_AUXPDM1_TXEDGE_SHIFT			     4
3037  #define MADERA_AUXPDM1_MSTR_MASK			0x0008
3038  #define MADERA_AUXPDM1_MSTR_SHIFT			     3
3039  #define MADERA_AUXPDM1_ENABLE_MASK			0x0001
3040  #define MADERA_AUXPDM1_ENABLE_SHIFT			     0
3041  
3042  /* (0x10C1)  AUXPDM1_CTRL_1 */
3043  #define MADERA_AUXPDM1_CLK_FREQ_MASK			0xC000
3044  #define MADERA_AUXPDM1_CLK_FREQ_SHIFT			    14
3045  
3046  /* (0x1480)  DFC1_CTRL_W0 */
3047  #define MADERA_DFC1_RATE_MASK				0x007C
3048  #define MADERA_DFC1_RATE_SHIFT				     2
3049  #define MADERA_DFC1_DITH_ENA				0x0002
3050  #define MADERA_DFC1_DITH_ENA_MASK			0x0002
3051  #define MADERA_DFC1_DITH_ENA_SHIFT			     1
3052  #define MADERA_DFC1_ENA					0x0001
3053  #define MADERA_DFC1_ENA_MASK				0x0001
3054  #define MADERA_DFC1_ENA_SHIFT				     0
3055  
3056  /* (0x1482)  DFC1_RX_W0 */
3057  #define MADERA_DFC1_RX_DATA_WIDTH_MASK			0x1F00
3058  #define MADERA_DFC1_RX_DATA_WIDTH_SHIFT			     8
3059  
3060  #define MADERA_DFC1_RX_DATA_TYPE_MASK			0x0007
3061  #define MADERA_DFC1_RX_DATA_TYPE_SHIFT			     0
3062  
3063  /* (0x1484)  DFC1_TX_W0 */
3064  #define MADERA_DFC1_TX_DATA_WIDTH_MASK			0x1F00
3065  #define MADERA_DFC1_TX_DATA_WIDTH_SHIFT			     8
3066  
3067  #define MADERA_DFC1_TX_DATA_TYPE_MASK			0x0007
3068  #define MADERA_DFC1_TX_DATA_TYPE_SHIFT			     0
3069  
3070  /* (0x1600)  ADSP2_IRQ0 */
3071  #define MADERA_DSP_IRQ2					0x0002
3072  #define MADERA_DSP_IRQ1					0x0001
3073  
3074  /* (0x1601)  ADSP2_IRQ1 */
3075  #define MADERA_DSP_IRQ4					0x0002
3076  #define MADERA_DSP_IRQ3					0x0001
3077  
3078  /* (0x1602)  ADSP2_IRQ2 */
3079  #define MADERA_DSP_IRQ6					0x0002
3080  #define MADERA_DSP_IRQ5					0x0001
3081  
3082  /* (0x1603)  ADSP2_IRQ3 */
3083  #define MADERA_DSP_IRQ8					0x0002
3084  #define MADERA_DSP_IRQ7					0x0001
3085  
3086  /* (0x1604)  ADSP2_IRQ4 */
3087  #define MADERA_DSP_IRQ10				0x0002
3088  #define MADERA_DSP_IRQ9					0x0001
3089  
3090  /* (0x1605)  ADSP2_IRQ5 */
3091  #define MADERA_DSP_IRQ12				0x0002
3092  #define MADERA_DSP_IRQ11				0x0001
3093  
3094  /* (0x1606)  ADSP2_IRQ6 */
3095  #define MADERA_DSP_IRQ14				0x0002
3096  #define MADERA_DSP_IRQ13				0x0001
3097  
3098  /* (0x1607)  ADSP2_IRQ7 */
3099  #define MADERA_DSP_IRQ16				0x0002
3100  #define MADERA_DSP_IRQ15				0x0001
3101  
3102  /* (0x1700)  GPIO1_CTRL_1 */
3103  #define MADERA_GP1_LVL					0x8000
3104  #define MADERA_GP1_LVL_MASK				0x8000
3105  #define MADERA_GP1_LVL_SHIFT				    15
3106  #define MADERA_GP1_OP_CFG				0x4000
3107  #define MADERA_GP1_OP_CFG_MASK				0x4000
3108  #define MADERA_GP1_OP_CFG_SHIFT				    14
3109  #define MADERA_GP1_DB					0x2000
3110  #define MADERA_GP1_DB_MASK				0x2000
3111  #define MADERA_GP1_DB_SHIFT				    13
3112  #define MADERA_GP1_POL					0x1000
3113  #define MADERA_GP1_POL_MASK				0x1000
3114  #define MADERA_GP1_POL_SHIFT				    12
3115  #define MADERA_GP1_IP_CFG				0x0800
3116  #define MADERA_GP1_IP_CFG_MASK				0x0800
3117  #define MADERA_GP1_IP_CFG_SHIFT				    11
3118  #define MADERA_GP1_FN_MASK				0x03FF
3119  #define MADERA_GP1_FN_SHIFT				     0
3120  
3121  /* (0x1701)  GPIO1_CTRL_2 */
3122  #define MADERA_GP1_DIR					0x8000
3123  #define MADERA_GP1_DIR_MASK				0x8000
3124  #define MADERA_GP1_DIR_SHIFT				    15
3125  #define MADERA_GP1_PU					0x4000
3126  #define MADERA_GP1_PU_MASK				0x4000
3127  #define MADERA_GP1_PU_SHIFT				    14
3128  #define MADERA_GP1_PD					0x2000
3129  #define MADERA_GP1_PD_MASK				0x2000
3130  #define MADERA_GP1_PD_SHIFT				    13
3131  #define MADERA_GP1_DRV_STR_MASK				0x1800
3132  #define MADERA_GP1_DRV_STR_SHIFT			    11
3133  
3134  /* (0x1800)  IRQ1_Status_1 */
3135  #define MADERA_CTRLIF_ERR_EINT1				0x1000
3136  #define MADERA_CTRLIF_ERR_EINT1_MASK			0x1000
3137  #define MADERA_CTRLIF_ERR_EINT1_SHIFT			    12
3138  #define MADERA_SYSCLK_FAIL_EINT1			0x0200
3139  #define MADERA_SYSCLK_FAIL_EINT1_MASK			0x0200
3140  #define MADERA_SYSCLK_FAIL_EINT1_SHIFT			     9
3141  #define MADERA_CLOCK_DETECT_EINT1			0x0100
3142  #define MADERA_CLOCK_DETECT_EINT1_MASK			0x0100
3143  #define MADERA_CLOCK_DETECT_EINT1_SHIFT			     8
3144  #define MADERA_BOOT_DONE_EINT1				0x0080
3145  #define MADERA_BOOT_DONE_EINT1_MASK			0x0080
3146  #define MADERA_BOOT_DONE_EINT1_SHIFT			     7
3147  
3148  /* (0x1801)  IRQ1_Status_2 */
3149  #define MADERA_FLLAO_LOCK_EINT1				0x0800
3150  #define MADERA_FLLAO_LOCK_EINT1_MASK			0x0800
3151  #define MADERA_FLLAO_LOCK_EINT1_SHIFT			    11
3152  #define MADERA_FLL3_LOCK_EINT1				0x0400
3153  #define MADERA_FLL3_LOCK_EINT1_MASK			0x0400
3154  #define MADERA_FLL3_LOCK_EINT1_SHIFT			    10
3155  #define MADERA_FLL2_LOCK_EINT1				0x0200
3156  #define MADERA_FLL2_LOCK_EINT1_MASK			0x0200
3157  #define MADERA_FLL2_LOCK_EINT1_SHIFT			     9
3158  #define MADERA_FLL1_LOCK_EINT1				0x0100
3159  #define MADERA_FLL1_LOCK_EINT1_MASK			0x0100
3160  #define MADERA_FLL1_LOCK_EINT1_SHIFT			     8
3161  
3162  /* (0x1805)  IRQ1_Status_6 */
3163  #define MADERA_MICDET2_EINT1				0x0200
3164  #define MADERA_MICDET2_EINT1_MASK			0x0200
3165  #define MADERA_MICDET2_EINT1_SHIFT			     9
3166  #define MADERA_MICDET1_EINT1				0x0100
3167  #define MADERA_MICDET1_EINT1_MASK			0x0100
3168  #define MADERA_MICDET1_EINT1_SHIFT			     8
3169  #define MADERA_HPDET_EINT1				0x0001
3170  #define MADERA_HPDET_EINT1_MASK				0x0001
3171  #define MADERA_HPDET_EINT1_SHIFT			     0
3172  
3173  /* (0x1806)  IRQ1_Status_7 */
3174  #define MADERA_MICD_CLAMP_FALL_EINT1			0x0020
3175  #define MADERA_MICD_CLAMP_FALL_EINT1_MASK		0x0020
3176  #define MADERA_MICD_CLAMP_FALL_EINT1_SHIFT		     5
3177  #define MADERA_MICD_CLAMP_RISE_EINT1			0x0010
3178  #define MADERA_MICD_CLAMP_RISE_EINT1_MASK		0x0010
3179  #define MADERA_MICD_CLAMP_RISE_EINT1_SHIFT		     4
3180  #define MADERA_JD2_FALL_EINT1				0x0008
3181  #define MADERA_JD2_FALL_EINT1_MASK			0x0008
3182  #define MADERA_JD2_FALL_EINT1_SHIFT			     3
3183  #define MADERA_JD2_RISE_EINT1				0x0004
3184  #define MADERA_JD2_RISE_EINT1_MASK			0x0004
3185  #define MADERA_JD2_RISE_EINT1_SHIFT			     2
3186  #define MADERA_JD1_FALL_EINT1				0x0002
3187  #define MADERA_JD1_FALL_EINT1_MASK			0x0002
3188  #define MADERA_JD1_FALL_EINT1_SHIFT			     1
3189  #define MADERA_JD1_RISE_EINT1				0x0001
3190  #define MADERA_JD1_RISE_EINT1_MASK			0x0001
3191  #define MADERA_JD1_RISE_EINT1_SHIFT			     0
3192  
3193  /* (0x1808)  IRQ1_Status_9 */
3194  #define MADERA_ASRC2_IN2_LOCK_EINT1			0x0800
3195  #define MADERA_ASRC2_IN2_LOCK_EINT1_MASK		0x0800
3196  #define MADERA_ASRC2_IN2_LOCK_EINT1_SHIFT		    11
3197  #define MADERA_ASRC2_IN1_LOCK_EINT1			0x0400
3198  #define MADERA_ASRC2_IN1_LOCK_EINT1_MASK		0x0400
3199  #define MADERA_ASRC2_IN1_LOCK_EINT1_SHIFT		    10
3200  #define MADERA_ASRC1_IN2_LOCK_EINT1			0x0200
3201  #define MADERA_ASRC1_IN2_LOCK_EINT1_MASK		0x0200
3202  #define MADERA_ASRC1_IN2_LOCK_EINT1_SHIFT		     9
3203  #define MADERA_ASRC1_IN1_LOCK_EINT1			0x0100
3204  #define MADERA_ASRC1_IN1_LOCK_EINT1_MASK		0x0100
3205  #define MADERA_ASRC1_IN1_LOCK_EINT1_SHIFT		     8
3206  #define MADERA_DRC2_SIG_DET_EINT1			0x0002
3207  #define MADERA_DRC2_SIG_DET_EINT1_MASK			0x0002
3208  #define MADERA_DRC2_SIG_DET_EINT1_SHIFT			     1
3209  #define MADERA_DRC1_SIG_DET_EINT1			0x0001
3210  #define MADERA_DRC1_SIG_DET_EINT1_MASK			0x0001
3211  #define MADERA_DRC1_SIG_DET_EINT1_SHIFT			     0
3212  
3213  /* (0x180A)  IRQ1_Status_11 */
3214  #define MADERA_DSP_IRQ16_EINT1				0x8000
3215  #define MADERA_DSP_IRQ16_EINT1_MASK			0x8000
3216  #define MADERA_DSP_IRQ16_EINT1_SHIFT			    15
3217  #define MADERA_DSP_IRQ15_EINT1				0x4000
3218  #define MADERA_DSP_IRQ15_EINT1_MASK			0x4000
3219  #define MADERA_DSP_IRQ15_EINT1_SHIFT			    14
3220  #define MADERA_DSP_IRQ14_EINT1				0x2000
3221  #define MADERA_DSP_IRQ14_EINT1_MASK			0x2000
3222  #define MADERA_DSP_IRQ14_EINT1_SHIFT			    13
3223  #define MADERA_DSP_IRQ13_EINT1				0x1000
3224  #define MADERA_DSP_IRQ13_EINT1_MASK			0x1000
3225  #define MADERA_DSP_IRQ13_EINT1_SHIFT			    12
3226  #define MADERA_DSP_IRQ12_EINT1				0x0800
3227  #define MADERA_DSP_IRQ12_EINT1_MASK			0x0800
3228  #define MADERA_DSP_IRQ12_EINT1_SHIFT			    11
3229  #define MADERA_DSP_IRQ11_EINT1				0x0400
3230  #define MADERA_DSP_IRQ11_EINT1_MASK			0x0400
3231  #define MADERA_DSP_IRQ11_EINT1_SHIFT			    10
3232  #define MADERA_DSP_IRQ10_EINT1				0x0200
3233  #define MADERA_DSP_IRQ10_EINT1_MASK			0x0200
3234  #define MADERA_DSP_IRQ10_EINT1_SHIFT			     9
3235  #define MADERA_DSP_IRQ9_EINT1				0x0100
3236  #define MADERA_DSP_IRQ9_EINT1_MASK			0x0100
3237  #define MADERA_DSP_IRQ9_EINT1_SHIFT			     8
3238  #define MADERA_DSP_IRQ8_EINT1				0x0080
3239  #define MADERA_DSP_IRQ8_EINT1_MASK			0x0080
3240  #define MADERA_DSP_IRQ8_EINT1_SHIFT			     7
3241  #define MADERA_DSP_IRQ7_EINT1				0x0040
3242  #define MADERA_DSP_IRQ7_EINT1_MASK			0x0040
3243  #define MADERA_DSP_IRQ7_EINT1_SHIFT			     6
3244  #define MADERA_DSP_IRQ6_EINT1				0x0020
3245  #define MADERA_DSP_IRQ6_EINT1_MASK			0x0020
3246  #define MADERA_DSP_IRQ6_EINT1_SHIFT			     5
3247  #define MADERA_DSP_IRQ5_EINT1				0x0010
3248  #define MADERA_DSP_IRQ5_EINT1_MASK			0x0010
3249  #define MADERA_DSP_IRQ5_EINT1_SHIFT			     4
3250  #define MADERA_DSP_IRQ4_EINT1				0x0008
3251  #define MADERA_DSP_IRQ4_EINT1_MASK			0x0008
3252  #define MADERA_DSP_IRQ4_EINT1_SHIFT			     3
3253  #define MADERA_DSP_IRQ3_EINT1				0x0004
3254  #define MADERA_DSP_IRQ3_EINT1_MASK			0x0004
3255  #define MADERA_DSP_IRQ3_EINT1_SHIFT			     2
3256  #define MADERA_DSP_IRQ2_EINT1				0x0002
3257  #define MADERA_DSP_IRQ2_EINT1_MASK			0x0002
3258  #define MADERA_DSP_IRQ2_EINT1_SHIFT			     1
3259  #define MADERA_DSP_IRQ1_EINT1				0x0001
3260  #define MADERA_DSP_IRQ1_EINT1_MASK			0x0001
3261  #define MADERA_DSP_IRQ1_EINT1_SHIFT			     0
3262  
3263  /* (0x180B)  IRQ1_Status_12 */
3264  #define MADERA_SPKOUTR_SC_EINT1				0x0080
3265  #define MADERA_SPKOUTR_SC_EINT1_MASK			0x0080
3266  #define MADERA_SPKOUTR_SC_EINT1_SHIFT			     7
3267  #define MADERA_SPKOUTL_SC_EINT1				0x0040
3268  #define MADERA_SPKOUTL_SC_EINT1_MASK			0x0040
3269  #define MADERA_SPKOUTL_SC_EINT1_SHIFT			     6
3270  #define MADERA_HP3R_SC_EINT1				0x0020
3271  #define MADERA_HP3R_SC_EINT1_MASK			0x0020
3272  #define MADERA_HP3R_SC_EINT1_SHIFT			     5
3273  #define MADERA_HP3L_SC_EINT1				0x0010
3274  #define MADERA_HP3L_SC_EINT1_MASK			0x0010
3275  #define MADERA_HP3L_SC_EINT1_SHIFT			     4
3276  #define MADERA_HP2R_SC_EINT1				0x0008
3277  #define MADERA_HP2R_SC_EINT1_MASK			0x0008
3278  #define MADERA_HP2R_SC_EINT1_SHIFT			     3
3279  #define MADERA_HP2L_SC_EINT1				0x0004
3280  #define MADERA_HP2L_SC_EINT1_MASK			0x0004
3281  #define MADERA_HP2L_SC_EINT1_SHIFT			     2
3282  #define MADERA_HP1R_SC_EINT1				0x0002
3283  #define MADERA_HP1R_SC_EINT1_MASK			0x0002
3284  #define MADERA_HP1R_SC_EINT1_SHIFT			     1
3285  #define MADERA_HP1L_SC_EINT1				0x0001
3286  #define MADERA_HP1L_SC_EINT1_MASK			0x0001
3287  #define MADERA_HP1L_SC_EINT1_SHIFT			     0
3288  
3289  /* (0x180E)  IRQ1_Status_15 */
3290  #define MADERA_SPK_OVERHEAT_WARN_EINT1			0x0004
3291  #define MADERA_SPK_OVERHEAT_WARN_EINT1_MASK		0x0004
3292  #define MADERA_SPK_OVERHEAT_WARN_EINT1_SHIFT		     2
3293  #define MADERA_SPK_OVERHEAT_EINT1			0x0002
3294  #define MADERA_SPK_OVERHEAT_EINT1_MASK			0x0002
3295  #define MADERA_SPK_OVERHEAT_EINT1_SHIFT			     1
3296  #define MADERA_SPK_SHUTDOWN_EINT1			0x0001
3297  #define MADERA_SPK_SHUTDOWN_EINT1_MASK			0x0001
3298  #define MADERA_SPK_SHUTDOWN_EINT1_SHIFT			     0
3299  
3300  /* (0x1820) - IRQ1 Status 33 */
3301  #define MADERA_DSP7_BUS_ERR_EINT1			0x0040
3302  #define MADERA_DSP7_BUS_ERR_EINT1_MASK			0x0040
3303  #define MADERA_DSP7_BUS_ERR_EINT1_SHIFT			     6
3304  #define MADERA_DSP6_BUS_ERR_EINT1			0x0020
3305  #define MADERA_DSP6_BUS_ERR_EINT1_MASK			0x0020
3306  #define MADERA_DSP6_BUS_ERR_EINT1_SHIFT			     5
3307  #define MADERA_DSP5_BUS_ERR_EINT1			0x0010
3308  #define MADERA_DSP5_BUS_ERR_EINT1_MASK			0x0010
3309  #define MADERA_DSP5_BUS_ERR_EINT1_SHIFT			     4
3310  #define MADERA_DSP4_BUS_ERR_EINT1			0x0008
3311  #define MADERA_DSP4_BUS_ERR_EINT1_MASK			0x0008
3312  #define MADERA_DSP4_BUS_ERR_EINT1_SHIFT			     3
3313  #define MADERA_DSP3_BUS_ERR_EINT1			0x0004
3314  #define MADERA_DSP3_BUS_ERR_EINT1_MASK			0x0004
3315  #define MADERA_DSP3_BUS_ERR_EINT1_SHIFT			     2
3316  #define MADERA_DSP2_BUS_ERR_EINT1			0x0002
3317  #define MADERA_DSP2_BUS_ERR_EINT1_MASK			0x0002
3318  #define MADERA_DSP2_BUS_ERR_EINT1_SHIFT			     1
3319  #define MADERA_DSP1_BUS_ERR_EINT1			0x0001
3320  #define MADERA_DSP1_BUS_ERR_EINT1_MASK			0x0001
3321  #define MADERA_DSP1_BUS_ERR_EINT1_SHIFT			     0
3322  
3323  /* (0x1845)  IRQ1_Mask_6 */
3324  #define MADERA_IM_MICDET2_EINT1				0x0200
3325  #define MADERA_IM_MICDET2_EINT1_MASK			0x0200
3326  #define MADERA_IM_MICDET2_EINT1_SHIFT			     9
3327  #define MADERA_IM_MICDET1_EINT1				0x0100
3328  #define MADERA_IM_MICDET1_EINT1_MASK			0x0100
3329  #define MADERA_IM_MICDET1_EINT1_SHIFT			     8
3330  #define MADERA_IM_HPDET_EINT1				0x0001
3331  #define MADERA_IM_HPDET_EINT1_MASK			0x0001
3332  #define MADERA_IM_HPDET_EINT1_SHIFT			     0
3333  /* (0x184E)  IRQ1_Mask_15 */
3334  #define MADERA_IM_SPK_OVERHEAT_WARN_EINT1		0x0004
3335  #define MADERA_IM_SPK_OVERHEAT_WARN_EINT1_MASK		0x0004
3336  #define MADERA_IM_SPK_OVERHEAT_WARN_EINT1_SHIFT		     2
3337  #define MADERA_IM_SPK_OVERHEAT_EINT1			0x0002
3338  #define MADERA_IM_SPK_OVERHEAT_EINT1_MASK		0x0002
3339  #define MADERA_IM_SPK_OVERHEAT_EINT1_SHIFT		     1
3340  #define MADERA_IM_SPK_SHUTDOWN_EINT1			0x0001
3341  #define MADERA_IM_SPK_SHUTDOWN_EINT1_MASK		0x0001
3342  #define MADERA_IM_SPK_SHUTDOWN_EINT1_SHIFT		     0
3343  
3344  /* (0x1880) - IRQ1 Raw Status 1 */
3345  #define MADERA_CTRLIF_ERR_STS1				0x1000
3346  #define MADERA_CTRLIF_ERR_STS1_MASK			0x1000
3347  #define MADERA_CTRLIF_ERR_STS1_SHIFT			    12
3348  #define MADERA_SYSCLK_FAIL_STS1				0x0200
3349  #define MADERA_SYSCLK_FAIL_STS1_MASK			0x0200
3350  #define MADERA_SYSCLK_FAIL_STS1_SHIFT			     9
3351  #define MADERA_CLOCK_DETECT_STS1			0x0100
3352  #define MADERA_CLOCK_DETECT_STS1_MASK			0x0100
3353  #define MADERA_CLOCK_DETECT_STS1_SHIFT			     8
3354  #define MADERA_BOOT_DONE_STS1				0x0080
3355  #define MADERA_BOOT_DONE_STS1_MASK			0x0080
3356  #define MADERA_BOOT_DONE_STS1_SHIFT			     7
3357  
3358  /* (0x1881) - IRQ1 Raw Status 2 */
3359  #define MADERA_FLL3_LOCK_STS1				0x0400
3360  #define MADERA_FLL3_LOCK_STS1_MASK			0x0400
3361  #define MADERA_FLL3_LOCK_STS1_SHIFT			    10
3362  #define MADERA_FLL2_LOCK_STS1				0x0200
3363  #define MADERA_FLL2_LOCK_STS1_MASK			0x0200
3364  #define MADERA_FLL2_LOCK_STS1_SHIFT			     9
3365  #define MADERA_FLL1_LOCK_STS1				0x0100
3366  #define MADERA_FLL1_LOCK_STS1_MASK			0x0100
3367  #define MADERA_FLL1_LOCK_STS1_SHIFT			     8
3368  
3369  /* (0x1886) - IRQ1 Raw Status 7 */
3370  #define MADERA_MICD_CLAMP_FALL_STS1			0x0020
3371  #define MADERA_MICD_CLAMP_FALL_STS1_MASK		0x0020
3372  #define MADERA_MICD_CLAMP_FALL_STS1_SHIFT		     5
3373  #define MADERA_MICD_CLAMP_RISE_STS1			0x0010
3374  #define MADERA_MICD_CLAMP_RISE_STS1_MASK		0x0010
3375  #define MADERA_MICD_CLAMP_RISE_STS1_SHIFT		     4
3376  #define MADERA_JD2_FALL_STS1				0x0008
3377  #define MADERA_JD2_FALL_STS1_MASK			0x0008
3378  #define MADERA_JD2_FALL_STS1_SHIFT			     3
3379  #define MADERA_JD2_RISE_STS1				0x0004
3380  #define MADERA_JD2_RISE_STS1_MASK			0x0004
3381  #define MADERA_JD2_RISE_STS1_SHIFT			     2
3382  #define MADERA_JD1_FALL_STS1				0x0002
3383  #define MADERA_JD1_FALL_STS1_MASK			0x0002
3384  #define MADERA_JD1_FALL_STS1_SHIFT			     1
3385  #define MADERA_JD1_RISE_STS1				0x0001
3386  #define MADERA_JD1_RISE_STS1_MASK			0x0001
3387  #define MADERA_JD1_RISE_STS1_SHIFT			     0
3388  
3389  /* (0x188E) - IRQ1 Raw Status 15 */
3390  #define MADERA_SPK_OVERHEAT_WARN_STS1			0x0004
3391  #define MADERA_SPK_OVERHEAT_WARN_STS1_MASK		0x0004
3392  #define MADERA_SPK_OVERHEAT_WARN_STS1_SHIFT		     2
3393  #define MADERA_SPK_OVERHEAT_STS1			0x0002
3394  #define MADERA_SPK_OVERHEAT_STS1_MASK			0x0002
3395  #define MADERA_SPK_OVERHEAT_STS1_SHIFT			     1
3396  #define MADERA_SPK_SHUTDOWN_STS1			0x0001
3397  #define MADERA_SPK_SHUTDOWN_STS1_MASK			0x0001
3398  #define MADERA_SPK_SHUTDOWN_STS1_SHIFT			     0
3399  
3400  /* (0x1A06)  Interrupt_Debounce_7 */
3401  #define MADERA_MICD_CLAMP_DB				0x0010
3402  #define MADERA_MICD_CLAMP_DB_MASK			0x0010
3403  #define MADERA_MICD_CLAMP_DB_SHIFT			     4
3404  #define MADERA_JD2_DB					0x0004
3405  #define MADERA_JD2_DB_MASK				0x0004
3406  #define MADERA_JD2_DB_SHIFT				     2
3407  #define MADERA_JD1_DB					0x0001
3408  #define MADERA_JD1_DB_MASK				0x0001
3409  #define MADERA_JD1_DB_SHIFT				     0
3410  
3411  /* (0x1A0E)  Interrupt_Debounce_15 */
3412  #define MADERA_SPK_OVERHEAT_WARN_DB			0x0004
3413  #define MADERA_SPK_OVERHEAT_WARN_DB_MASK		0x0004
3414  #define MADERA_SPK_OVERHEAT_WARN_DB_SHIFT		     2
3415  #define MADERA_SPK_OVERHEAT_DB				0x0002
3416  #define MADERA_SPK_OVERHEAT_DB_MASK			0x0002
3417  #define MADERA_SPK_OVERHEAT_DB_SHIFT			     1
3418  
3419  /* (0x1A80)  IRQ1_CTRL */
3420  #define MADERA_IM_IRQ1					0x0800
3421  #define MADERA_IM_IRQ1_MASK				0x0800
3422  #define MADERA_IM_IRQ1_SHIFT				    11
3423  #define MADERA_IRQ_POL					0x0400
3424  #define MADERA_IRQ_POL_MASK				0x0400
3425  #define MADERA_IRQ_POL_SHIFT				    10
3426  
3427  /* (0x20004)  OTP_HPDET_Cal_1 */
3428  #define MADERA_OTP_HPDET_CALIB_OFFSET_11	    0xFF000000
3429  #define MADERA_OTP_HPDET_CALIB_OFFSET_11_MASK	    0xFF000000
3430  #define MADERA_OTP_HPDET_CALIB_OFFSET_11_SHIFT		    24
3431  #define MADERA_OTP_HPDET_CALIB_OFFSET_10	    0x00FF0000
3432  #define MADERA_OTP_HPDET_CALIB_OFFSET_10_MASK	    0x00FF0000
3433  #define MADERA_OTP_HPDET_CALIB_OFFSET_10_SHIFT		    16
3434  #define MADERA_OTP_HPDET_CALIB_OFFSET_01	    0x0000FF00
3435  #define MADERA_OTP_HPDET_CALIB_OFFSET_01_MASK	    0x0000FF00
3436  #define MADERA_OTP_HPDET_CALIB_OFFSET_01_SHIFT		     8
3437  #define MADERA_OTP_HPDET_CALIB_OFFSET_00	    0x000000FF
3438  #define MADERA_OTP_HPDET_CALIB_OFFSET_00_MASK	    0x000000FF
3439  #define MADERA_OTP_HPDET_CALIB_OFFSET_00_SHIFT		     0
3440  
3441  /* (0x20006)  OTP_HPDET_Cal_2 */
3442  #define MADERA_OTP_HPDET_GRADIENT_1X		    0x0000FF00
3443  #define MADERA_OTP_HPDET_GRADIENT_1X_MASK	    0x0000FF00
3444  #define MADERA_OTP_HPDET_GRADIENT_1X_SHIFT		     8
3445  #define MADERA_OTP_HPDET_GRADIENT_0X		    0x000000FF
3446  #define MADERA_OTP_HPDET_GRADIENT_0X_MASK	    0x000000FF
3447  #define MADERA_OTP_HPDET_GRADIENT_0X_SHIFT		     0
3448  
3449  #endif
3450