xref: /openbmc/linux/sound/soc/codecs/wm9090.h (revision 2b27bdcc)
12b27bdccSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
239b8eab7SMark Brown /*
339b8eab7SMark Brown  * ALSA SoC WM9090 driver
439b8eab7SMark Brown  *
539b8eab7SMark Brown  * Copyright 2009 Wolfson Microelectronics
639b8eab7SMark Brown  *
739b8eab7SMark Brown  * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
839b8eab7SMark Brown  */
939b8eab7SMark Brown 
1039b8eab7SMark Brown #ifndef __WM9090_H
1139b8eab7SMark Brown #define __WM9090_H
1239b8eab7SMark Brown 
1339b8eab7SMark Brown /*
1439b8eab7SMark Brown  * Register values.
1539b8eab7SMark Brown  */
1639b8eab7SMark Brown #define WM9090_SOFTWARE_RESET                   0x00
1739b8eab7SMark Brown #define WM9090_POWER_MANAGEMENT_1               0x01
1839b8eab7SMark Brown #define WM9090_POWER_MANAGEMENT_2               0x02
1939b8eab7SMark Brown #define WM9090_POWER_MANAGEMENT_3               0x03
2039b8eab7SMark Brown #define WM9090_CLOCKING_1                       0x06
2139b8eab7SMark Brown #define WM9090_IN1_LINE_CONTROL                 0x16
2239b8eab7SMark Brown #define WM9090_IN2_LINE_CONTROL                 0x17
2339b8eab7SMark Brown #define WM9090_IN1_LINE_INPUT_A_VOLUME          0x18
2439b8eab7SMark Brown #define WM9090_IN1_LINE_INPUT_B_VOLUME          0x19
2539b8eab7SMark Brown #define WM9090_IN2_LINE_INPUT_A_VOLUME          0x1A
2639b8eab7SMark Brown #define WM9090_IN2_LINE_INPUT_B_VOLUME          0x1B
2739b8eab7SMark Brown #define WM9090_LEFT_OUTPUT_VOLUME               0x1C
2839b8eab7SMark Brown #define WM9090_RIGHT_OUTPUT_VOLUME              0x1D
2939b8eab7SMark Brown #define WM9090_SPKMIXL_ATTENUATION              0x22
3039b8eab7SMark Brown #define WM9090_SPKOUT_MIXERS                    0x24
3139b8eab7SMark Brown #define WM9090_CLASSD3                          0x25
3239b8eab7SMark Brown #define WM9090_SPEAKER_VOLUME_LEFT              0x26
3339b8eab7SMark Brown #define WM9090_OUTPUT_MIXER1                    0x2D
3439b8eab7SMark Brown #define WM9090_OUTPUT_MIXER2                    0x2E
3539b8eab7SMark Brown #define WM9090_OUTPUT_MIXER3                    0x2F
3639b8eab7SMark Brown #define WM9090_OUTPUT_MIXER4                    0x30
3739b8eab7SMark Brown #define WM9090_SPEAKER_MIXER                    0x36
3839b8eab7SMark Brown #define WM9090_ANTIPOP2                         0x39
3939b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_0                0x46
4039b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_1                0x47
4139b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_2                0x48
4239b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_3                0x49
4339b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_4                0x4A
4439b8eab7SMark Brown #define WM9090_WRITE_SEQUENCER_5                0x4B
4539b8eab7SMark Brown #define WM9090_CHARGE_PUMP_1                    0x4C
4639b8eab7SMark Brown #define WM9090_DC_SERVO_0                       0x54
4739b8eab7SMark Brown #define WM9090_DC_SERVO_1                       0x55
4839b8eab7SMark Brown #define WM9090_DC_SERVO_3                       0x57
4939b8eab7SMark Brown #define WM9090_DC_SERVO_READBACK_0              0x58
5039b8eab7SMark Brown #define WM9090_DC_SERVO_READBACK_1              0x59
5139b8eab7SMark Brown #define WM9090_DC_SERVO_READBACK_2              0x5A
5239b8eab7SMark Brown #define WM9090_ANALOGUE_HP_0                    0x60
5339b8eab7SMark Brown #define WM9090_AGC_CONTROL_0                    0x62
5439b8eab7SMark Brown #define WM9090_AGC_CONTROL_1                    0x63
5539b8eab7SMark Brown #define WM9090_AGC_CONTROL_2                    0x64
5639b8eab7SMark Brown 
5739b8eab7SMark Brown #define WM9090_REGISTER_COUNT                   40
5839b8eab7SMark Brown #define WM9090_MAX_REGISTER                     0x64
5939b8eab7SMark Brown 
6039b8eab7SMark Brown /*
6139b8eab7SMark Brown  * Field Definitions.
6239b8eab7SMark Brown  */
6339b8eab7SMark Brown 
6439b8eab7SMark Brown /*
6539b8eab7SMark Brown  * R0 (0x00) - Software Reset
6639b8eab7SMark Brown  */
6739b8eab7SMark Brown #define WM9090_SW_RESET_MASK                    0xFFFF  /* SW_RESET - [15:0] */
6839b8eab7SMark Brown #define WM9090_SW_RESET_SHIFT                        0  /* SW_RESET - [15:0] */
6939b8eab7SMark Brown #define WM9090_SW_RESET_WIDTH                       16  /* SW_RESET - [15:0] */
7039b8eab7SMark Brown 
7139b8eab7SMark Brown /*
7239b8eab7SMark Brown  * R1 (0x01) - Power Management (1)
7339b8eab7SMark Brown  */
7439b8eab7SMark Brown #define WM9090_SPKOUTL_ENA                      0x1000  /* SPKOUTL_ENA */
7539b8eab7SMark Brown #define WM9090_SPKOUTL_ENA_MASK                 0x1000  /* SPKOUTL_ENA */
7639b8eab7SMark Brown #define WM9090_SPKOUTL_ENA_SHIFT                    12  /* SPKOUTL_ENA */
7739b8eab7SMark Brown #define WM9090_SPKOUTL_ENA_WIDTH                     1  /* SPKOUTL_ENA */
7839b8eab7SMark Brown #define WM9090_HPOUT1L_ENA                      0x0200  /* HPOUT1L_ENA */
7939b8eab7SMark Brown #define WM9090_HPOUT1L_ENA_MASK                 0x0200  /* HPOUT1L_ENA */
8039b8eab7SMark Brown #define WM9090_HPOUT1L_ENA_SHIFT                     9  /* HPOUT1L_ENA */
8139b8eab7SMark Brown #define WM9090_HPOUT1L_ENA_WIDTH                     1  /* HPOUT1L_ENA */
8239b8eab7SMark Brown #define WM9090_HPOUT1R_ENA                      0x0100  /* HPOUT1R_ENA */
8339b8eab7SMark Brown #define WM9090_HPOUT1R_ENA_MASK                 0x0100  /* HPOUT1R_ENA */
8439b8eab7SMark Brown #define WM9090_HPOUT1R_ENA_SHIFT                     8  /* HPOUT1R_ENA */
8539b8eab7SMark Brown #define WM9090_HPOUT1R_ENA_WIDTH                     1  /* HPOUT1R_ENA */
8639b8eab7SMark Brown #define WM9090_OSC_ENA                          0x0008  /* OSC_ENA */
8739b8eab7SMark Brown #define WM9090_OSC_ENA_MASK                     0x0008  /* OSC_ENA */
8839b8eab7SMark Brown #define WM9090_OSC_ENA_SHIFT                         3  /* OSC_ENA */
8939b8eab7SMark Brown #define WM9090_OSC_ENA_WIDTH                         1  /* OSC_ENA */
9039b8eab7SMark Brown #define WM9090_VMID_RES_MASK                    0x0006  /* VMID_RES - [2:1] */
9139b8eab7SMark Brown #define WM9090_VMID_RES_SHIFT                        1  /* VMID_RES - [2:1] */
9239b8eab7SMark Brown #define WM9090_VMID_RES_WIDTH                        2  /* VMID_RES - [2:1] */
9339b8eab7SMark Brown #define WM9090_BIAS_ENA                         0x0001  /* BIAS_ENA */
9439b8eab7SMark Brown #define WM9090_BIAS_ENA_MASK                    0x0001  /* BIAS_ENA */
9539b8eab7SMark Brown #define WM9090_BIAS_ENA_SHIFT                        0  /* BIAS_ENA */
9639b8eab7SMark Brown #define WM9090_BIAS_ENA_WIDTH                        1  /* BIAS_ENA */
9739b8eab7SMark Brown 
9839b8eab7SMark Brown /*
9939b8eab7SMark Brown  * R2 (0x02) - Power Management (2)
10039b8eab7SMark Brown  */
10139b8eab7SMark Brown #define WM9090_TSHUT                            0x8000  /* TSHUT */
10239b8eab7SMark Brown #define WM9090_TSHUT_MASK                       0x8000  /* TSHUT */
10339b8eab7SMark Brown #define WM9090_TSHUT_SHIFT                          15  /* TSHUT */
10439b8eab7SMark Brown #define WM9090_TSHUT_WIDTH                           1  /* TSHUT */
10539b8eab7SMark Brown #define WM9090_TSHUT_ENA                        0x4000  /* TSHUT_ENA */
10639b8eab7SMark Brown #define WM9090_TSHUT_ENA_MASK                   0x4000  /* TSHUT_ENA */
10739b8eab7SMark Brown #define WM9090_TSHUT_ENA_SHIFT                      14  /* TSHUT_ENA */
10839b8eab7SMark Brown #define WM9090_TSHUT_ENA_WIDTH                       1  /* TSHUT_ENA */
10939b8eab7SMark Brown #define WM9090_TSHUT_OPDIS                      0x2000  /* TSHUT_OPDIS */
11039b8eab7SMark Brown #define WM9090_TSHUT_OPDIS_MASK                 0x2000  /* TSHUT_OPDIS */
11139b8eab7SMark Brown #define WM9090_TSHUT_OPDIS_SHIFT                    13  /* TSHUT_OPDIS */
11239b8eab7SMark Brown #define WM9090_TSHUT_OPDIS_WIDTH                     1  /* TSHUT_OPDIS */
11339b8eab7SMark Brown #define WM9090_IN1A_ENA                         0x0080  /* IN1A_ENA */
11439b8eab7SMark Brown #define WM9090_IN1A_ENA_MASK                    0x0080  /* IN1A_ENA */
11539b8eab7SMark Brown #define WM9090_IN1A_ENA_SHIFT                        7  /* IN1A_ENA */
11639b8eab7SMark Brown #define WM9090_IN1A_ENA_WIDTH                        1  /* IN1A_ENA */
11739b8eab7SMark Brown #define WM9090_IN1B_ENA                         0x0040  /* IN1B_ENA */
11839b8eab7SMark Brown #define WM9090_IN1B_ENA_MASK                    0x0040  /* IN1B_ENA */
11939b8eab7SMark Brown #define WM9090_IN1B_ENA_SHIFT                        6  /* IN1B_ENA */
12039b8eab7SMark Brown #define WM9090_IN1B_ENA_WIDTH                        1  /* IN1B_ENA */
12139b8eab7SMark Brown #define WM9090_IN2A_ENA                         0x0020  /* IN2A_ENA */
12239b8eab7SMark Brown #define WM9090_IN2A_ENA_MASK                    0x0020  /* IN2A_ENA */
12339b8eab7SMark Brown #define WM9090_IN2A_ENA_SHIFT                        5  /* IN2A_ENA */
12439b8eab7SMark Brown #define WM9090_IN2A_ENA_WIDTH                        1  /* IN2A_ENA */
12539b8eab7SMark Brown #define WM9090_IN2B_ENA                         0x0010  /* IN2B_ENA */
12639b8eab7SMark Brown #define WM9090_IN2B_ENA_MASK                    0x0010  /* IN2B_ENA */
12739b8eab7SMark Brown #define WM9090_IN2B_ENA_SHIFT                        4  /* IN2B_ENA */
12839b8eab7SMark Brown #define WM9090_IN2B_ENA_WIDTH                        1  /* IN2B_ENA */
12939b8eab7SMark Brown 
13039b8eab7SMark Brown /*
13139b8eab7SMark Brown  * R3 (0x03) - Power Management (3)
13239b8eab7SMark Brown  */
13339b8eab7SMark Brown #define WM9090_AGC_ENA                          0x4000  /* AGC_ENA */
13439b8eab7SMark Brown #define WM9090_AGC_ENA_MASK                     0x4000  /* AGC_ENA */
13539b8eab7SMark Brown #define WM9090_AGC_ENA_SHIFT                        14  /* AGC_ENA */
13639b8eab7SMark Brown #define WM9090_AGC_ENA_WIDTH                         1  /* AGC_ENA */
13739b8eab7SMark Brown #define WM9090_SPKLVOL_ENA                      0x0100  /* SPKLVOL_ENA */
13839b8eab7SMark Brown #define WM9090_SPKLVOL_ENA_MASK                 0x0100  /* SPKLVOL_ENA */
13939b8eab7SMark Brown #define WM9090_SPKLVOL_ENA_SHIFT                     8  /* SPKLVOL_ENA */
14039b8eab7SMark Brown #define WM9090_SPKLVOL_ENA_WIDTH                     1  /* SPKLVOL_ENA */
14139b8eab7SMark Brown #define WM9090_MIXOUTL_ENA                      0x0020  /* MIXOUTL_ENA */
14239b8eab7SMark Brown #define WM9090_MIXOUTL_ENA_MASK                 0x0020  /* MIXOUTL_ENA */
14339b8eab7SMark Brown #define WM9090_MIXOUTL_ENA_SHIFT                     5  /* MIXOUTL_ENA */
14439b8eab7SMark Brown #define WM9090_MIXOUTL_ENA_WIDTH                     1  /* MIXOUTL_ENA */
14539b8eab7SMark Brown #define WM9090_MIXOUTR_ENA                      0x0010  /* MIXOUTR_ENA */
14639b8eab7SMark Brown #define WM9090_MIXOUTR_ENA_MASK                 0x0010  /* MIXOUTR_ENA */
14739b8eab7SMark Brown #define WM9090_MIXOUTR_ENA_SHIFT                     4  /* MIXOUTR_ENA */
14839b8eab7SMark Brown #define WM9090_MIXOUTR_ENA_WIDTH                     1  /* MIXOUTR_ENA */
14939b8eab7SMark Brown #define WM9090_SPKMIX_ENA                       0x0008  /* SPKMIX_ENA */
15039b8eab7SMark Brown #define WM9090_SPKMIX_ENA_MASK                  0x0008  /* SPKMIX_ENA */
15139b8eab7SMark Brown #define WM9090_SPKMIX_ENA_SHIFT                      3  /* SPKMIX_ENA */
15239b8eab7SMark Brown #define WM9090_SPKMIX_ENA_WIDTH                      1  /* SPKMIX_ENA */
15339b8eab7SMark Brown 
15439b8eab7SMark Brown /*
15539b8eab7SMark Brown  * R6 (0x06) - Clocking 1
15639b8eab7SMark Brown  */
15739b8eab7SMark Brown #define WM9090_TOCLK_RATE                       0x8000  /* TOCLK_RATE */
15839b8eab7SMark Brown #define WM9090_TOCLK_RATE_MASK                  0x8000  /* TOCLK_RATE */
15939b8eab7SMark Brown #define WM9090_TOCLK_RATE_SHIFT                     15  /* TOCLK_RATE */
16039b8eab7SMark Brown #define WM9090_TOCLK_RATE_WIDTH                      1  /* TOCLK_RATE */
16139b8eab7SMark Brown #define WM9090_TOCLK_ENA                        0x4000  /* TOCLK_ENA */
16239b8eab7SMark Brown #define WM9090_TOCLK_ENA_MASK                   0x4000  /* TOCLK_ENA */
16339b8eab7SMark Brown #define WM9090_TOCLK_ENA_SHIFT                      14  /* TOCLK_ENA */
16439b8eab7SMark Brown #define WM9090_TOCLK_ENA_WIDTH                       1  /* TOCLK_ENA */
16539b8eab7SMark Brown 
16639b8eab7SMark Brown /*
16739b8eab7SMark Brown  * R22 (0x16) - IN1 Line Control
16839b8eab7SMark Brown  */
16939b8eab7SMark Brown #define WM9090_IN1_DIFF                         0x0002  /* IN1_DIFF */
17039b8eab7SMark Brown #define WM9090_IN1_DIFF_MASK                    0x0002  /* IN1_DIFF */
17139b8eab7SMark Brown #define WM9090_IN1_DIFF_SHIFT                        1  /* IN1_DIFF */
17239b8eab7SMark Brown #define WM9090_IN1_DIFF_WIDTH                        1  /* IN1_DIFF */
17339b8eab7SMark Brown #define WM9090_IN1_CLAMP                        0x0001  /* IN1_CLAMP */
17439b8eab7SMark Brown #define WM9090_IN1_CLAMP_MASK                   0x0001  /* IN1_CLAMP */
17539b8eab7SMark Brown #define WM9090_IN1_CLAMP_SHIFT                       0  /* IN1_CLAMP */
17639b8eab7SMark Brown #define WM9090_IN1_CLAMP_WIDTH                       1  /* IN1_CLAMP */
17739b8eab7SMark Brown 
17839b8eab7SMark Brown /*
17939b8eab7SMark Brown  * R23 (0x17) - IN2 Line Control
18039b8eab7SMark Brown  */
18139b8eab7SMark Brown #define WM9090_IN2_DIFF                         0x0002  /* IN2_DIFF */
18239b8eab7SMark Brown #define WM9090_IN2_DIFF_MASK                    0x0002  /* IN2_DIFF */
18339b8eab7SMark Brown #define WM9090_IN2_DIFF_SHIFT                        1  /* IN2_DIFF */
18439b8eab7SMark Brown #define WM9090_IN2_DIFF_WIDTH                        1  /* IN2_DIFF */
18539b8eab7SMark Brown #define WM9090_IN2_CLAMP                        0x0001  /* IN2_CLAMP */
18639b8eab7SMark Brown #define WM9090_IN2_CLAMP_MASK                   0x0001  /* IN2_CLAMP */
18739b8eab7SMark Brown #define WM9090_IN2_CLAMP_SHIFT                       0  /* IN2_CLAMP */
18839b8eab7SMark Brown #define WM9090_IN2_CLAMP_WIDTH                       1  /* IN2_CLAMP */
18939b8eab7SMark Brown 
19039b8eab7SMark Brown /*
19139b8eab7SMark Brown  * R24 (0x18) - IN1 Line Input A Volume
19239b8eab7SMark Brown  */
19339b8eab7SMark Brown #define WM9090_IN1_VU                           0x0100  /* IN1_VU */
19439b8eab7SMark Brown #define WM9090_IN1_VU_MASK                      0x0100  /* IN1_VU */
19539b8eab7SMark Brown #define WM9090_IN1_VU_SHIFT                          8  /* IN1_VU */
19639b8eab7SMark Brown #define WM9090_IN1_VU_WIDTH                          1  /* IN1_VU */
19739b8eab7SMark Brown #define WM9090_IN1A_MUTE                        0x0080  /* IN1A_MUTE */
19839b8eab7SMark Brown #define WM9090_IN1A_MUTE_MASK                   0x0080  /* IN1A_MUTE */
19939b8eab7SMark Brown #define WM9090_IN1A_MUTE_SHIFT                       7  /* IN1A_MUTE */
20039b8eab7SMark Brown #define WM9090_IN1A_MUTE_WIDTH                       1  /* IN1A_MUTE */
20139b8eab7SMark Brown #define WM9090_IN1A_ZC                          0x0040  /* IN1A_ZC */
20239b8eab7SMark Brown #define WM9090_IN1A_ZC_MASK                     0x0040  /* IN1A_ZC */
20339b8eab7SMark Brown #define WM9090_IN1A_ZC_SHIFT                         6  /* IN1A_ZC */
20439b8eab7SMark Brown #define WM9090_IN1A_ZC_WIDTH                         1  /* IN1A_ZC */
20539b8eab7SMark Brown #define WM9090_IN1A_VOL_MASK                    0x0007  /* IN1A_VOL - [2:0] */
20639b8eab7SMark Brown #define WM9090_IN1A_VOL_SHIFT                        0  /* IN1A_VOL - [2:0] */
20739b8eab7SMark Brown #define WM9090_IN1A_VOL_WIDTH                        3  /* IN1A_VOL - [2:0] */
20839b8eab7SMark Brown 
20939b8eab7SMark Brown /*
21039b8eab7SMark Brown  * R25 (0x19) - IN1  Line Input B Volume
21139b8eab7SMark Brown  */
21239b8eab7SMark Brown #define WM9090_IN1_VU                           0x0100  /* IN1_VU */
21339b8eab7SMark Brown #define WM9090_IN1_VU_MASK                      0x0100  /* IN1_VU */
21439b8eab7SMark Brown #define WM9090_IN1_VU_SHIFT                          8  /* IN1_VU */
21539b8eab7SMark Brown #define WM9090_IN1_VU_WIDTH                          1  /* IN1_VU */
21639b8eab7SMark Brown #define WM9090_IN1B_MUTE                        0x0080  /* IN1B_MUTE */
21739b8eab7SMark Brown #define WM9090_IN1B_MUTE_MASK                   0x0080  /* IN1B_MUTE */
21839b8eab7SMark Brown #define WM9090_IN1B_MUTE_SHIFT                       7  /* IN1B_MUTE */
21939b8eab7SMark Brown #define WM9090_IN1B_MUTE_WIDTH                       1  /* IN1B_MUTE */
22039b8eab7SMark Brown #define WM9090_IN1B_ZC                          0x0040  /* IN1B_ZC */
22139b8eab7SMark Brown #define WM9090_IN1B_ZC_MASK                     0x0040  /* IN1B_ZC */
22239b8eab7SMark Brown #define WM9090_IN1B_ZC_SHIFT                         6  /* IN1B_ZC */
22339b8eab7SMark Brown #define WM9090_IN1B_ZC_WIDTH                         1  /* IN1B_ZC */
22439b8eab7SMark Brown #define WM9090_IN1B_VOL_MASK                    0x0007  /* IN1B_VOL - [2:0] */
22539b8eab7SMark Brown #define WM9090_IN1B_VOL_SHIFT                        0  /* IN1B_VOL - [2:0] */
22639b8eab7SMark Brown #define WM9090_IN1B_VOL_WIDTH                        3  /* IN1B_VOL - [2:0] */
22739b8eab7SMark Brown 
22839b8eab7SMark Brown /*
22939b8eab7SMark Brown  * R26 (0x1A) - IN2 Line Input A Volume
23039b8eab7SMark Brown  */
23139b8eab7SMark Brown #define WM9090_IN2_VU                           0x0100  /* IN2_VU */
23239b8eab7SMark Brown #define WM9090_IN2_VU_MASK                      0x0100  /* IN2_VU */
23339b8eab7SMark Brown #define WM9090_IN2_VU_SHIFT                          8  /* IN2_VU */
23439b8eab7SMark Brown #define WM9090_IN2_VU_WIDTH                          1  /* IN2_VU */
23539b8eab7SMark Brown #define WM9090_IN2A_MUTE                        0x0080  /* IN2A_MUTE */
23639b8eab7SMark Brown #define WM9090_IN2A_MUTE_MASK                   0x0080  /* IN2A_MUTE */
23739b8eab7SMark Brown #define WM9090_IN2A_MUTE_SHIFT                       7  /* IN2A_MUTE */
23839b8eab7SMark Brown #define WM9090_IN2A_MUTE_WIDTH                       1  /* IN2A_MUTE */
23939b8eab7SMark Brown #define WM9090_IN2A_ZC                          0x0040  /* IN2A_ZC */
24039b8eab7SMark Brown #define WM9090_IN2A_ZC_MASK                     0x0040  /* IN2A_ZC */
24139b8eab7SMark Brown #define WM9090_IN2A_ZC_SHIFT                         6  /* IN2A_ZC */
24239b8eab7SMark Brown #define WM9090_IN2A_ZC_WIDTH                         1  /* IN2A_ZC */
24339b8eab7SMark Brown #define WM9090_IN2A_VOL_MASK                    0x0007  /* IN2A_VOL - [2:0] */
24439b8eab7SMark Brown #define WM9090_IN2A_VOL_SHIFT                        0  /* IN2A_VOL - [2:0] */
24539b8eab7SMark Brown #define WM9090_IN2A_VOL_WIDTH                        3  /* IN2A_VOL - [2:0] */
24639b8eab7SMark Brown 
24739b8eab7SMark Brown /*
24839b8eab7SMark Brown  * R27 (0x1B) - IN2 Line Input B Volume
24939b8eab7SMark Brown  */
25039b8eab7SMark Brown #define WM9090_IN2_VU                           0x0100  /* IN2_VU */
25139b8eab7SMark Brown #define WM9090_IN2_VU_MASK                      0x0100  /* IN2_VU */
25239b8eab7SMark Brown #define WM9090_IN2_VU_SHIFT                          8  /* IN2_VU */
25339b8eab7SMark Brown #define WM9090_IN2_VU_WIDTH                          1  /* IN2_VU */
25439b8eab7SMark Brown #define WM9090_IN2B_MUTE                        0x0080  /* IN2B_MUTE */
25539b8eab7SMark Brown #define WM9090_IN2B_MUTE_MASK                   0x0080  /* IN2B_MUTE */
25639b8eab7SMark Brown #define WM9090_IN2B_MUTE_SHIFT                       7  /* IN2B_MUTE */
25739b8eab7SMark Brown #define WM9090_IN2B_MUTE_WIDTH                       1  /* IN2B_MUTE */
25839b8eab7SMark Brown #define WM9090_IN2B_ZC                          0x0040  /* IN2B_ZC */
25939b8eab7SMark Brown #define WM9090_IN2B_ZC_MASK                     0x0040  /* IN2B_ZC */
26039b8eab7SMark Brown #define WM9090_IN2B_ZC_SHIFT                         6  /* IN2B_ZC */
26139b8eab7SMark Brown #define WM9090_IN2B_ZC_WIDTH                         1  /* IN2B_ZC */
26239b8eab7SMark Brown #define WM9090_IN2B_VOL_MASK                    0x0007  /* IN2B_VOL - [2:0] */
26339b8eab7SMark Brown #define WM9090_IN2B_VOL_SHIFT                        0  /* IN2B_VOL - [2:0] */
26439b8eab7SMark Brown #define WM9090_IN2B_VOL_WIDTH                        3  /* IN2B_VOL - [2:0] */
26539b8eab7SMark Brown 
26639b8eab7SMark Brown /*
26739b8eab7SMark Brown  * R28 (0x1C) - Left Output Volume
26839b8eab7SMark Brown  */
26939b8eab7SMark Brown #define WM9090_HPOUT1_VU                        0x0100  /* HPOUT1_VU */
27039b8eab7SMark Brown #define WM9090_HPOUT1_VU_MASK                   0x0100  /* HPOUT1_VU */
27139b8eab7SMark Brown #define WM9090_HPOUT1_VU_SHIFT                       8  /* HPOUT1_VU */
27239b8eab7SMark Brown #define WM9090_HPOUT1_VU_WIDTH                       1  /* HPOUT1_VU */
27339b8eab7SMark Brown #define WM9090_HPOUT1L_ZC                       0x0080  /* HPOUT1L_ZC */
27439b8eab7SMark Brown #define WM9090_HPOUT1L_ZC_MASK                  0x0080  /* HPOUT1L_ZC */
27539b8eab7SMark Brown #define WM9090_HPOUT1L_ZC_SHIFT                      7  /* HPOUT1L_ZC */
27639b8eab7SMark Brown #define WM9090_HPOUT1L_ZC_WIDTH                      1  /* HPOUT1L_ZC */
27739b8eab7SMark Brown #define WM9090_HPOUT1L_MUTE                     0x0040  /* HPOUT1L_MUTE */
27839b8eab7SMark Brown #define WM9090_HPOUT1L_MUTE_MASK                0x0040  /* HPOUT1L_MUTE */
27939b8eab7SMark Brown #define WM9090_HPOUT1L_MUTE_SHIFT                    6  /* HPOUT1L_MUTE */
28039b8eab7SMark Brown #define WM9090_HPOUT1L_MUTE_WIDTH                    1  /* HPOUT1L_MUTE */
28139b8eab7SMark Brown #define WM9090_HPOUT1L_VOL_MASK                 0x003F  /* HPOUT1L_VOL - [5:0] */
28239b8eab7SMark Brown #define WM9090_HPOUT1L_VOL_SHIFT                     0  /* HPOUT1L_VOL - [5:0] */
28339b8eab7SMark Brown #define WM9090_HPOUT1L_VOL_WIDTH                     6  /* HPOUT1L_VOL - [5:0] */
28439b8eab7SMark Brown 
28539b8eab7SMark Brown /*
28639b8eab7SMark Brown  * R29 (0x1D) - Right Output Volume
28739b8eab7SMark Brown  */
28839b8eab7SMark Brown #define WM9090_HPOUT1_VU                        0x0100  /* HPOUT1_VU */
28939b8eab7SMark Brown #define WM9090_HPOUT1_VU_MASK                   0x0100  /* HPOUT1_VU */
29039b8eab7SMark Brown #define WM9090_HPOUT1_VU_SHIFT                       8  /* HPOUT1_VU */
29139b8eab7SMark Brown #define WM9090_HPOUT1_VU_WIDTH                       1  /* HPOUT1_VU */
29239b8eab7SMark Brown #define WM9090_HPOUT1R_ZC                       0x0080  /* HPOUT1R_ZC */
29339b8eab7SMark Brown #define WM9090_HPOUT1R_ZC_MASK                  0x0080  /* HPOUT1R_ZC */
29439b8eab7SMark Brown #define WM9090_HPOUT1R_ZC_SHIFT                      7  /* HPOUT1R_ZC */
29539b8eab7SMark Brown #define WM9090_HPOUT1R_ZC_WIDTH                      1  /* HPOUT1R_ZC */
29639b8eab7SMark Brown #define WM9090_HPOUT1R_MUTE                     0x0040  /* HPOUT1R_MUTE */
29739b8eab7SMark Brown #define WM9090_HPOUT1R_MUTE_MASK                0x0040  /* HPOUT1R_MUTE */
29839b8eab7SMark Brown #define WM9090_HPOUT1R_MUTE_SHIFT                    6  /* HPOUT1R_MUTE */
29939b8eab7SMark Brown #define WM9090_HPOUT1R_MUTE_WIDTH                    1  /* HPOUT1R_MUTE */
30039b8eab7SMark Brown #define WM9090_HPOUT1R_VOL_MASK                 0x003F  /* HPOUT1R_VOL - [5:0] */
30139b8eab7SMark Brown #define WM9090_HPOUT1R_VOL_SHIFT                     0  /* HPOUT1R_VOL - [5:0] */
30239b8eab7SMark Brown #define WM9090_HPOUT1R_VOL_WIDTH                     6  /* HPOUT1R_VOL - [5:0] */
30339b8eab7SMark Brown 
30439b8eab7SMark Brown /*
30539b8eab7SMark Brown  * R34 (0x22) - SPKMIXL Attenuation
30639b8eab7SMark Brown  */
30739b8eab7SMark Brown #define WM9090_SPKMIX_MUTE                      0x0100  /* SPKMIX_MUTE */
30839b8eab7SMark Brown #define WM9090_SPKMIX_MUTE_MASK                 0x0100  /* SPKMIX_MUTE */
30939b8eab7SMark Brown #define WM9090_SPKMIX_MUTE_SHIFT                     8  /* SPKMIX_MUTE */
31039b8eab7SMark Brown #define WM9090_SPKMIX_MUTE_WIDTH                     1  /* SPKMIX_MUTE */
31139b8eab7SMark Brown #define WM9090_IN1A_SPKMIX_VOL_MASK             0x00C0  /* IN1A_SPKMIX_VOL - [7:6] */
31239b8eab7SMark Brown #define WM9090_IN1A_SPKMIX_VOL_SHIFT                 6  /* IN1A_SPKMIX_VOL - [7:6] */
31339b8eab7SMark Brown #define WM9090_IN1A_SPKMIX_VOL_WIDTH                 2  /* IN1A_SPKMIX_VOL - [7:6] */
31439b8eab7SMark Brown #define WM9090_IN1B_SPKMIX_VOL_MASK             0x0030  /* IN1B_SPKMIX_VOL - [5:4] */
31539b8eab7SMark Brown #define WM9090_IN1B_SPKMIX_VOL_SHIFT                 4  /* IN1B_SPKMIX_VOL - [5:4] */
31639b8eab7SMark Brown #define WM9090_IN1B_SPKMIX_VOL_WIDTH                 2  /* IN1B_SPKMIX_VOL - [5:4] */
31739b8eab7SMark Brown #define WM9090_IN2A_SPKMIX_VOL_MASK             0x000C  /* IN2A_SPKMIX_VOL - [3:2] */
31839b8eab7SMark Brown #define WM9090_IN2A_SPKMIX_VOL_SHIFT                 2  /* IN2A_SPKMIX_VOL - [3:2] */
31939b8eab7SMark Brown #define WM9090_IN2A_SPKMIX_VOL_WIDTH                 2  /* IN2A_SPKMIX_VOL - [3:2] */
32039b8eab7SMark Brown #define WM9090_IN2B_SPKMIX_VOL_MASK             0x0003  /* IN2B_SPKMIX_VOL - [1:0] */
32139b8eab7SMark Brown #define WM9090_IN2B_SPKMIX_VOL_SHIFT                 0  /* IN2B_SPKMIX_VOL - [1:0] */
32239b8eab7SMark Brown #define WM9090_IN2B_SPKMIX_VOL_WIDTH                 2  /* IN2B_SPKMIX_VOL - [1:0] */
32339b8eab7SMark Brown 
32439b8eab7SMark Brown /*
32539b8eab7SMark Brown  * R36 (0x24) - SPKOUT Mixers
32639b8eab7SMark Brown  */
32739b8eab7SMark Brown #define WM9090_SPKMIXL_TO_SPKOUTL               0x0010  /* SPKMIXL_TO_SPKOUTL */
32839b8eab7SMark Brown #define WM9090_SPKMIXL_TO_SPKOUTL_MASK          0x0010  /* SPKMIXL_TO_SPKOUTL */
32939b8eab7SMark Brown #define WM9090_SPKMIXL_TO_SPKOUTL_SHIFT              4  /* SPKMIXL_TO_SPKOUTL */
33039b8eab7SMark Brown #define WM9090_SPKMIXL_TO_SPKOUTL_WIDTH              1  /* SPKMIXL_TO_SPKOUTL */
33139b8eab7SMark Brown 
33239b8eab7SMark Brown /*
33339b8eab7SMark Brown  * R37 (0x25) - ClassD3
33439b8eab7SMark Brown  */
33539b8eab7SMark Brown #define WM9090_SPKOUTL_BOOST_MASK               0x0038  /* SPKOUTL_BOOST - [5:3] */
33639b8eab7SMark Brown #define WM9090_SPKOUTL_BOOST_SHIFT                   3  /* SPKOUTL_BOOST - [5:3] */
33739b8eab7SMark Brown #define WM9090_SPKOUTL_BOOST_WIDTH                   3  /* SPKOUTL_BOOST - [5:3] */
33839b8eab7SMark Brown 
33939b8eab7SMark Brown /*
34039b8eab7SMark Brown  * R38 (0x26) - Speaker Volume Left
34139b8eab7SMark Brown  */
34239b8eab7SMark Brown #define WM9090_SPKOUT_VU                        0x0100  /* SPKOUT_VU */
34339b8eab7SMark Brown #define WM9090_SPKOUT_VU_MASK                   0x0100  /* SPKOUT_VU */
34439b8eab7SMark Brown #define WM9090_SPKOUT_VU_SHIFT                       8  /* SPKOUT_VU */
34539b8eab7SMark Brown #define WM9090_SPKOUT_VU_WIDTH                       1  /* SPKOUT_VU */
34639b8eab7SMark Brown #define WM9090_SPKOUTL_ZC                       0x0080  /* SPKOUTL_ZC */
34739b8eab7SMark Brown #define WM9090_SPKOUTL_ZC_MASK                  0x0080  /* SPKOUTL_ZC */
34839b8eab7SMark Brown #define WM9090_SPKOUTL_ZC_SHIFT                      7  /* SPKOUTL_ZC */
34939b8eab7SMark Brown #define WM9090_SPKOUTL_ZC_WIDTH                      1  /* SPKOUTL_ZC */
35039b8eab7SMark Brown #define WM9090_SPKOUTL_MUTE                     0x0040  /* SPKOUTL_MUTE */
35139b8eab7SMark Brown #define WM9090_SPKOUTL_MUTE_MASK                0x0040  /* SPKOUTL_MUTE */
35239b8eab7SMark Brown #define WM9090_SPKOUTL_MUTE_SHIFT                    6  /* SPKOUTL_MUTE */
35339b8eab7SMark Brown #define WM9090_SPKOUTL_MUTE_WIDTH                    1  /* SPKOUTL_MUTE */
35439b8eab7SMark Brown #define WM9090_SPKOUTL_VOL_MASK                 0x003F  /* SPKOUTL_VOL - [5:0] */
35539b8eab7SMark Brown #define WM9090_SPKOUTL_VOL_SHIFT                     0  /* SPKOUTL_VOL - [5:0] */
35639b8eab7SMark Brown #define WM9090_SPKOUTL_VOL_WIDTH                     6  /* SPKOUTL_VOL - [5:0] */
35739b8eab7SMark Brown 
35839b8eab7SMark Brown /*
35939b8eab7SMark Brown  * R45 (0x2D) - Output Mixer1
36039b8eab7SMark Brown  */
36139b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTL                  0x0040  /* IN1A_TO_MIXOUTL */
36239b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTL_MASK             0x0040  /* IN1A_TO_MIXOUTL */
36339b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTL_SHIFT                 6  /* IN1A_TO_MIXOUTL */
36439b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTL_WIDTH                 1  /* IN1A_TO_MIXOUTL */
36539b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTL                  0x0004  /* IN2A_TO_MIXOUTL */
36639b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTL_MASK             0x0004  /* IN2A_TO_MIXOUTL */
36739b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTL_SHIFT                 2  /* IN2A_TO_MIXOUTL */
36839b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTL_WIDTH                 1  /* IN2A_TO_MIXOUTL */
36939b8eab7SMark Brown 
37039b8eab7SMark Brown /*
37139b8eab7SMark Brown  * R46 (0x2E) - Output Mixer2
37239b8eab7SMark Brown  */
37339b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTR                  0x0040  /* IN1A_TO_MIXOUTR */
37439b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTR_MASK             0x0040  /* IN1A_TO_MIXOUTR */
37539b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTR_SHIFT                 6  /* IN1A_TO_MIXOUTR */
37639b8eab7SMark Brown #define WM9090_IN1A_TO_MIXOUTR_WIDTH                 1  /* IN1A_TO_MIXOUTR */
37739b8eab7SMark Brown #define WM9090_IN1B_TO_MIXOUTR                  0x0010  /* IN1B_TO_MIXOUTR */
37839b8eab7SMark Brown #define WM9090_IN1B_TO_MIXOUTR_MASK             0x0010  /* IN1B_TO_MIXOUTR */
37939b8eab7SMark Brown #define WM9090_IN1B_TO_MIXOUTR_SHIFT                 4  /* IN1B_TO_MIXOUTR */
38039b8eab7SMark Brown #define WM9090_IN1B_TO_MIXOUTR_WIDTH                 1  /* IN1B_TO_MIXOUTR */
38139b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTR                  0x0004  /* IN2A_TO_MIXOUTR */
38239b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTR_MASK             0x0004  /* IN2A_TO_MIXOUTR */
38339b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTR_SHIFT                 2  /* IN2A_TO_MIXOUTR */
38439b8eab7SMark Brown #define WM9090_IN2A_TO_MIXOUTR_WIDTH                 1  /* IN2A_TO_MIXOUTR */
38539b8eab7SMark Brown #define WM9090_IN2B_TO_MIXOUTR                  0x0001  /* IN2B_TO_MIXOUTR */
38639b8eab7SMark Brown #define WM9090_IN2B_TO_MIXOUTR_MASK             0x0001  /* IN2B_TO_MIXOUTR */
38739b8eab7SMark Brown #define WM9090_IN2B_TO_MIXOUTR_SHIFT                 0  /* IN2B_TO_MIXOUTR */
38839b8eab7SMark Brown #define WM9090_IN2B_TO_MIXOUTR_WIDTH                 1  /* IN2B_TO_MIXOUTR */
38939b8eab7SMark Brown 
39039b8eab7SMark Brown /*
39139b8eab7SMark Brown  * R47 (0x2F) - Output Mixer3
39239b8eab7SMark Brown  */
39339b8eab7SMark Brown #define WM9090_MIXOUTL_MUTE                     0x0100  /* MIXOUTL_MUTE */
39439b8eab7SMark Brown #define WM9090_MIXOUTL_MUTE_MASK                0x0100  /* MIXOUTL_MUTE */
39539b8eab7SMark Brown #define WM9090_MIXOUTL_MUTE_SHIFT                    8  /* MIXOUTL_MUTE */
39639b8eab7SMark Brown #define WM9090_MIXOUTL_MUTE_WIDTH                    1  /* MIXOUTL_MUTE */
39739b8eab7SMark Brown #define WM9090_IN1A_MIXOUTL_VOL_MASK            0x00C0  /* IN1A_MIXOUTL_VOL - [7:6] */
39839b8eab7SMark Brown #define WM9090_IN1A_MIXOUTL_VOL_SHIFT                6  /* IN1A_MIXOUTL_VOL - [7:6] */
39939b8eab7SMark Brown #define WM9090_IN1A_MIXOUTL_VOL_WIDTH                2  /* IN1A_MIXOUTL_VOL - [7:6] */
40039b8eab7SMark Brown #define WM9090_IN2A_MIXOUTL_VOL_MASK            0x000C  /* IN2A_MIXOUTL_VOL - [3:2] */
40139b8eab7SMark Brown #define WM9090_IN2A_MIXOUTL_VOL_SHIFT                2  /* IN2A_MIXOUTL_VOL - [3:2] */
40239b8eab7SMark Brown #define WM9090_IN2A_MIXOUTL_VOL_WIDTH                2  /* IN2A_MIXOUTL_VOL - [3:2] */
40339b8eab7SMark Brown 
40439b8eab7SMark Brown /*
40539b8eab7SMark Brown  * R48 (0x30) - Output Mixer4
40639b8eab7SMark Brown  */
40739b8eab7SMark Brown #define WM9090_MIXOUTR_MUTE                     0x0100  /* MIXOUTR_MUTE */
40839b8eab7SMark Brown #define WM9090_MIXOUTR_MUTE_MASK                0x0100  /* MIXOUTR_MUTE */
40939b8eab7SMark Brown #define WM9090_MIXOUTR_MUTE_SHIFT                    8  /* MIXOUTR_MUTE */
41039b8eab7SMark Brown #define WM9090_MIXOUTR_MUTE_WIDTH                    1  /* MIXOUTR_MUTE */
41139b8eab7SMark Brown #define WM9090_IN1A_MIXOUTR_VOL_MASK            0x00C0  /* IN1A_MIXOUTR_VOL - [7:6] */
41239b8eab7SMark Brown #define WM9090_IN1A_MIXOUTR_VOL_SHIFT                6  /* IN1A_MIXOUTR_VOL - [7:6] */
41339b8eab7SMark Brown #define WM9090_IN1A_MIXOUTR_VOL_WIDTH                2  /* IN1A_MIXOUTR_VOL - [7:6] */
41439b8eab7SMark Brown #define WM9090_IN1B_MIXOUTR_VOL_MASK            0x0030  /* IN1B_MIXOUTR_VOL - [5:4] */
41539b8eab7SMark Brown #define WM9090_IN1B_MIXOUTR_VOL_SHIFT                4  /* IN1B_MIXOUTR_VOL - [5:4] */
41639b8eab7SMark Brown #define WM9090_IN1B_MIXOUTR_VOL_WIDTH                2  /* IN1B_MIXOUTR_VOL - [5:4] */
41739b8eab7SMark Brown #define WM9090_IN2A_MIXOUTR_VOL_MASK            0x000C  /* IN2A_MIXOUTR_VOL - [3:2] */
41839b8eab7SMark Brown #define WM9090_IN2A_MIXOUTR_VOL_SHIFT                2  /* IN2A_MIXOUTR_VOL - [3:2] */
41939b8eab7SMark Brown #define WM9090_IN2A_MIXOUTR_VOL_WIDTH                2  /* IN2A_MIXOUTR_VOL - [3:2] */
42039b8eab7SMark Brown #define WM9090_IN2B_MIXOUTR_VOL_MASK            0x0003  /* IN2B_MIXOUTR_VOL - [1:0] */
42139b8eab7SMark Brown #define WM9090_IN2B_MIXOUTR_VOL_SHIFT                0  /* IN2B_MIXOUTR_VOL - [1:0] */
42239b8eab7SMark Brown #define WM9090_IN2B_MIXOUTR_VOL_WIDTH                2  /* IN2B_MIXOUTR_VOL - [1:0] */
42339b8eab7SMark Brown 
42439b8eab7SMark Brown /*
42539b8eab7SMark Brown  * R54 (0x36) - Speaker Mixer
42639b8eab7SMark Brown  */
42739b8eab7SMark Brown #define WM9090_IN1A_TO_SPKMIX                   0x0040  /* IN1A_TO_SPKMIX */
42839b8eab7SMark Brown #define WM9090_IN1A_TO_SPKMIX_MASK              0x0040  /* IN1A_TO_SPKMIX */
42939b8eab7SMark Brown #define WM9090_IN1A_TO_SPKMIX_SHIFT                  6  /* IN1A_TO_SPKMIX */
43039b8eab7SMark Brown #define WM9090_IN1A_TO_SPKMIX_WIDTH                  1  /* IN1A_TO_SPKMIX */
43139b8eab7SMark Brown #define WM9090_IN1B_TO_SPKMIX                   0x0010  /* IN1B_TO_SPKMIX */
43239b8eab7SMark Brown #define WM9090_IN1B_TO_SPKMIX_MASK              0x0010  /* IN1B_TO_SPKMIX */
43339b8eab7SMark Brown #define WM9090_IN1B_TO_SPKMIX_SHIFT                  4  /* IN1B_TO_SPKMIX */
43439b8eab7SMark Brown #define WM9090_IN1B_TO_SPKMIX_WIDTH                  1  /* IN1B_TO_SPKMIX */
43539b8eab7SMark Brown #define WM9090_IN2A_TO_SPKMIX                   0x0004  /* IN2A_TO_SPKMIX */
43639b8eab7SMark Brown #define WM9090_IN2A_TO_SPKMIX_MASK              0x0004  /* IN2A_TO_SPKMIX */
43739b8eab7SMark Brown #define WM9090_IN2A_TO_SPKMIX_SHIFT                  2  /* IN2A_TO_SPKMIX */
43839b8eab7SMark Brown #define WM9090_IN2A_TO_SPKMIX_WIDTH                  1  /* IN2A_TO_SPKMIX */
43939b8eab7SMark Brown #define WM9090_IN2B_TO_SPKMIX                   0x0001  /* IN2B_TO_SPKMIX */
44039b8eab7SMark Brown #define WM9090_IN2B_TO_SPKMIX_MASK              0x0001  /* IN2B_TO_SPKMIX */
44139b8eab7SMark Brown #define WM9090_IN2B_TO_SPKMIX_SHIFT                  0  /* IN2B_TO_SPKMIX */
44239b8eab7SMark Brown #define WM9090_IN2B_TO_SPKMIX_WIDTH                  1  /* IN2B_TO_SPKMIX */
44339b8eab7SMark Brown 
44439b8eab7SMark Brown /*
44539b8eab7SMark Brown  * R57 (0x39) - AntiPOP2
44639b8eab7SMark Brown  */
44739b8eab7SMark Brown #define WM9090_VMID_BUF_ENA                     0x0008  /* VMID_BUF_ENA */
44839b8eab7SMark Brown #define WM9090_VMID_BUF_ENA_MASK                0x0008  /* VMID_BUF_ENA */
44939b8eab7SMark Brown #define WM9090_VMID_BUF_ENA_SHIFT                    3  /* VMID_BUF_ENA */
45039b8eab7SMark Brown #define WM9090_VMID_BUF_ENA_WIDTH                    1  /* VMID_BUF_ENA */
45139b8eab7SMark Brown #define WM9090_VMID_ENA                         0x0001  /* VMID_ENA */
45239b8eab7SMark Brown #define WM9090_VMID_ENA_MASK                    0x0001  /* VMID_ENA */
45339b8eab7SMark Brown #define WM9090_VMID_ENA_SHIFT                        0  /* VMID_ENA */
45439b8eab7SMark Brown #define WM9090_VMID_ENA_WIDTH                        1  /* VMID_ENA */
45539b8eab7SMark Brown 
45639b8eab7SMark Brown /*
45739b8eab7SMark Brown  * R70 (0x46) - Write Sequencer 0
45839b8eab7SMark Brown  */
45939b8eab7SMark Brown #define WM9090_WSEQ_ENA                         0x0100  /* WSEQ_ENA */
46039b8eab7SMark Brown #define WM9090_WSEQ_ENA_MASK                    0x0100  /* WSEQ_ENA */
46139b8eab7SMark Brown #define WM9090_WSEQ_ENA_SHIFT                        8  /* WSEQ_ENA */
46239b8eab7SMark Brown #define WM9090_WSEQ_ENA_WIDTH                        1  /* WSEQ_ENA */
46339b8eab7SMark Brown #define WM9090_WSEQ_WRITE_INDEX_MASK            0x000F  /* WSEQ_WRITE_INDEX - [3:0] */
46439b8eab7SMark Brown #define WM9090_WSEQ_WRITE_INDEX_SHIFT                0  /* WSEQ_WRITE_INDEX - [3:0] */
46539b8eab7SMark Brown #define WM9090_WSEQ_WRITE_INDEX_WIDTH                4  /* WSEQ_WRITE_INDEX - [3:0] */
46639b8eab7SMark Brown 
46739b8eab7SMark Brown /*
46839b8eab7SMark Brown  * R71 (0x47) - Write Sequencer 1
46939b8eab7SMark Brown  */
47039b8eab7SMark Brown #define WM9090_WSEQ_DATA_WIDTH_MASK             0x7000  /* WSEQ_DATA_WIDTH - [14:12] */
47139b8eab7SMark Brown #define WM9090_WSEQ_DATA_WIDTH_SHIFT                12  /* WSEQ_DATA_WIDTH - [14:12] */
47239b8eab7SMark Brown #define WM9090_WSEQ_DATA_WIDTH_WIDTH                 3  /* WSEQ_DATA_WIDTH - [14:12] */
47339b8eab7SMark Brown #define WM9090_WSEQ_DATA_START_MASK             0x0F00  /* WSEQ_DATA_START - [11:8] */
47439b8eab7SMark Brown #define WM9090_WSEQ_DATA_START_SHIFT                 8  /* WSEQ_DATA_START - [11:8] */
47539b8eab7SMark Brown #define WM9090_WSEQ_DATA_START_WIDTH                 4  /* WSEQ_DATA_START - [11:8] */
47639b8eab7SMark Brown #define WM9090_WSEQ_ADDR_MASK                   0x00FF  /* WSEQ_ADDR - [7:0] */
47739b8eab7SMark Brown #define WM9090_WSEQ_ADDR_SHIFT                       0  /* WSEQ_ADDR - [7:0] */
47839b8eab7SMark Brown #define WM9090_WSEQ_ADDR_WIDTH                       8  /* WSEQ_ADDR - [7:0] */
47939b8eab7SMark Brown 
48039b8eab7SMark Brown /*
48139b8eab7SMark Brown  * R72 (0x48) - Write Sequencer 2
48239b8eab7SMark Brown  */
48339b8eab7SMark Brown #define WM9090_WSEQ_EOS                         0x4000  /* WSEQ_EOS */
48439b8eab7SMark Brown #define WM9090_WSEQ_EOS_MASK                    0x4000  /* WSEQ_EOS */
48539b8eab7SMark Brown #define WM9090_WSEQ_EOS_SHIFT                       14  /* WSEQ_EOS */
48639b8eab7SMark Brown #define WM9090_WSEQ_EOS_WIDTH                        1  /* WSEQ_EOS */
48739b8eab7SMark Brown #define WM9090_WSEQ_DELAY_MASK                  0x0F00  /* WSEQ_DELAY - [11:8] */
48839b8eab7SMark Brown #define WM9090_WSEQ_DELAY_SHIFT                      8  /* WSEQ_DELAY - [11:8] */
48939b8eab7SMark Brown #define WM9090_WSEQ_DELAY_WIDTH                      4  /* WSEQ_DELAY - [11:8] */
49039b8eab7SMark Brown #define WM9090_WSEQ_DATA_MASK                   0x00FF  /* WSEQ_DATA - [7:0] */
49139b8eab7SMark Brown #define WM9090_WSEQ_DATA_SHIFT                       0  /* WSEQ_DATA - [7:0] */
49239b8eab7SMark Brown #define WM9090_WSEQ_DATA_WIDTH                       8  /* WSEQ_DATA - [7:0] */
49339b8eab7SMark Brown 
49439b8eab7SMark Brown /*
49539b8eab7SMark Brown  * R73 (0x49) - Write Sequencer 3
49639b8eab7SMark Brown  */
49739b8eab7SMark Brown #define WM9090_WSEQ_ABORT                       0x0200  /* WSEQ_ABORT */
49839b8eab7SMark Brown #define WM9090_WSEQ_ABORT_MASK                  0x0200  /* WSEQ_ABORT */
49939b8eab7SMark Brown #define WM9090_WSEQ_ABORT_SHIFT                      9  /* WSEQ_ABORT */
50039b8eab7SMark Brown #define WM9090_WSEQ_ABORT_WIDTH                      1  /* WSEQ_ABORT */
50139b8eab7SMark Brown #define WM9090_WSEQ_START                       0x0100  /* WSEQ_START */
50239b8eab7SMark Brown #define WM9090_WSEQ_START_MASK                  0x0100  /* WSEQ_START */
50339b8eab7SMark Brown #define WM9090_WSEQ_START_SHIFT                      8  /* WSEQ_START */
50439b8eab7SMark Brown #define WM9090_WSEQ_START_WIDTH                      1  /* WSEQ_START */
50539b8eab7SMark Brown #define WM9090_WSEQ_START_INDEX_MASK            0x003F  /* WSEQ_START_INDEX - [5:0] */
50639b8eab7SMark Brown #define WM9090_WSEQ_START_INDEX_SHIFT                0  /* WSEQ_START_INDEX - [5:0] */
50739b8eab7SMark Brown #define WM9090_WSEQ_START_INDEX_WIDTH                6  /* WSEQ_START_INDEX - [5:0] */
50839b8eab7SMark Brown 
50939b8eab7SMark Brown /*
51039b8eab7SMark Brown  * R74 (0x4A) - Write Sequencer 4
51139b8eab7SMark Brown  */
51239b8eab7SMark Brown #define WM9090_WSEQ_BUSY                        0x0001  /* WSEQ_BUSY */
51339b8eab7SMark Brown #define WM9090_WSEQ_BUSY_MASK                   0x0001  /* WSEQ_BUSY */
51439b8eab7SMark Brown #define WM9090_WSEQ_BUSY_SHIFT                       0  /* WSEQ_BUSY */
51539b8eab7SMark Brown #define WM9090_WSEQ_BUSY_WIDTH                       1  /* WSEQ_BUSY */
51639b8eab7SMark Brown 
51739b8eab7SMark Brown /*
51839b8eab7SMark Brown  * R75 (0x4B) - Write Sequencer 5
51939b8eab7SMark Brown  */
52039b8eab7SMark Brown #define WM9090_WSEQ_CURRENT_INDEX_MASK          0x003F  /* WSEQ_CURRENT_INDEX - [5:0] */
52139b8eab7SMark Brown #define WM9090_WSEQ_CURRENT_INDEX_SHIFT              0  /* WSEQ_CURRENT_INDEX - [5:0] */
52239b8eab7SMark Brown #define WM9090_WSEQ_CURRENT_INDEX_WIDTH              6  /* WSEQ_CURRENT_INDEX - [5:0] */
52339b8eab7SMark Brown 
52439b8eab7SMark Brown /*
52539b8eab7SMark Brown  * R76 (0x4C) - Charge Pump 1
52639b8eab7SMark Brown  */
52739b8eab7SMark Brown #define WM9090_CP_ENA                           0x8000  /* CP_ENA */
52839b8eab7SMark Brown #define WM9090_CP_ENA_MASK                      0x8000  /* CP_ENA */
52939b8eab7SMark Brown #define WM9090_CP_ENA_SHIFT                         15  /* CP_ENA */
53039b8eab7SMark Brown #define WM9090_CP_ENA_WIDTH                          1  /* CP_ENA */
53139b8eab7SMark Brown 
53239b8eab7SMark Brown /*
53339b8eab7SMark Brown  * R84 (0x54) - DC Servo 0
53439b8eab7SMark Brown  */
53539b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_1                0x2000  /* DCS_TRIG_SINGLE_1 */
53639b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_1_MASK           0x2000  /* DCS_TRIG_SINGLE_1 */
53739b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_1_SHIFT              13  /* DCS_TRIG_SINGLE_1 */
53839b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_1_WIDTH               1  /* DCS_TRIG_SINGLE_1 */
53939b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_0                0x1000  /* DCS_TRIG_SINGLE_0 */
54039b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_0_MASK           0x1000  /* DCS_TRIG_SINGLE_0 */
54139b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_0_SHIFT              12  /* DCS_TRIG_SINGLE_0 */
54239b8eab7SMark Brown #define WM9090_DCS_TRIG_SINGLE_0_WIDTH               1  /* DCS_TRIG_SINGLE_0 */
54339b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_1                0x0200  /* DCS_TRIG_SERIES_1 */
54439b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_1_MASK           0x0200  /* DCS_TRIG_SERIES_1 */
54539b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_1_SHIFT               9  /* DCS_TRIG_SERIES_1 */
54639b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_1_WIDTH               1  /* DCS_TRIG_SERIES_1 */
54739b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_0                0x0100  /* DCS_TRIG_SERIES_0 */
54839b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_0_MASK           0x0100  /* DCS_TRIG_SERIES_0 */
54939b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_0_SHIFT               8  /* DCS_TRIG_SERIES_0 */
55039b8eab7SMark Brown #define WM9090_DCS_TRIG_SERIES_0_WIDTH               1  /* DCS_TRIG_SERIES_0 */
55139b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_1               0x0020  /* DCS_TRIG_STARTUP_1 */
55239b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_1_MASK          0x0020  /* DCS_TRIG_STARTUP_1 */
55339b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_1_SHIFT              5  /* DCS_TRIG_STARTUP_1 */
55439b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_1_WIDTH              1  /* DCS_TRIG_STARTUP_1 */
55539b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_0               0x0010  /* DCS_TRIG_STARTUP_0 */
55639b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_0_MASK          0x0010  /* DCS_TRIG_STARTUP_0 */
55739b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_0_SHIFT              4  /* DCS_TRIG_STARTUP_0 */
55839b8eab7SMark Brown #define WM9090_DCS_TRIG_STARTUP_0_WIDTH              1  /* DCS_TRIG_STARTUP_0 */
55939b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_1                0x0008  /* DCS_TRIG_DAC_WR_1 */
56039b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_1_MASK           0x0008  /* DCS_TRIG_DAC_WR_1 */
56139b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_1_SHIFT               3  /* DCS_TRIG_DAC_WR_1 */
56239b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_1_WIDTH               1  /* DCS_TRIG_DAC_WR_1 */
56339b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_0                0x0004  /* DCS_TRIG_DAC_WR_0 */
56439b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_0_MASK           0x0004  /* DCS_TRIG_DAC_WR_0 */
56539b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_0_SHIFT               2  /* DCS_TRIG_DAC_WR_0 */
56639b8eab7SMark Brown #define WM9090_DCS_TRIG_DAC_WR_0_WIDTH               1  /* DCS_TRIG_DAC_WR_0 */
56739b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_1                   0x0002  /* DCS_ENA_CHAN_1 */
56839b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_1_MASK              0x0002  /* DCS_ENA_CHAN_1 */
56939b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_1_SHIFT                  1  /* DCS_ENA_CHAN_1 */
57039b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_1_WIDTH                  1  /* DCS_ENA_CHAN_1 */
57139b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_0                   0x0001  /* DCS_ENA_CHAN_0 */
57239b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_0_MASK              0x0001  /* DCS_ENA_CHAN_0 */
57339b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_0_SHIFT                  0  /* DCS_ENA_CHAN_0 */
57439b8eab7SMark Brown #define WM9090_DCS_ENA_CHAN_0_WIDTH                  1  /* DCS_ENA_CHAN_0 */
57539b8eab7SMark Brown 
57639b8eab7SMark Brown /*
57739b8eab7SMark Brown  * R85 (0x55) - DC Servo 1
57839b8eab7SMark Brown  */
57939b8eab7SMark Brown #define WM9090_DCS_SERIES_NO_01_MASK            0x0FE0  /* DCS_SERIES_NO_01 - [11:5] */
58039b8eab7SMark Brown #define WM9090_DCS_SERIES_NO_01_SHIFT                5  /* DCS_SERIES_NO_01 - [11:5] */
58139b8eab7SMark Brown #define WM9090_DCS_SERIES_NO_01_WIDTH                7  /* DCS_SERIES_NO_01 - [11:5] */
58239b8eab7SMark Brown #define WM9090_DCS_TIMER_PERIOD_01_MASK         0x000F  /* DCS_TIMER_PERIOD_01 - [3:0] */
58339b8eab7SMark Brown #define WM9090_DCS_TIMER_PERIOD_01_SHIFT             0  /* DCS_TIMER_PERIOD_01 - [3:0] */
58439b8eab7SMark Brown #define WM9090_DCS_TIMER_PERIOD_01_WIDTH             4  /* DCS_TIMER_PERIOD_01 - [3:0] */
58539b8eab7SMark Brown 
58639b8eab7SMark Brown /*
58739b8eab7SMark Brown  * R87 (0x57) - DC Servo 3
58839b8eab7SMark Brown  */
58939b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_MASK            0xFF00  /* DCS_DAC_WR_VAL_1 - [15:8] */
59039b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_SHIFT                8  /* DCS_DAC_WR_VAL_1 - [15:8] */
59139b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_WIDTH                8  /* DCS_DAC_WR_VAL_1 - [15:8] */
59239b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_MASK            0x00FF  /* DCS_DAC_WR_VAL_0 - [7:0] */
59339b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_SHIFT                0  /* DCS_DAC_WR_VAL_0 - [7:0] */
59439b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_WIDTH                8  /* DCS_DAC_WR_VAL_0 - [7:0] */
59539b8eab7SMark Brown 
59639b8eab7SMark Brown /*
59739b8eab7SMark Brown  * R88 (0x58) - DC Servo Readback 0
59839b8eab7SMark Brown  */
59939b8eab7SMark Brown #define WM9090_DCS_CAL_COMPLETE_MASK            0x0300  /* DCS_CAL_COMPLETE - [9:8] */
60039b8eab7SMark Brown #define WM9090_DCS_CAL_COMPLETE_SHIFT                8  /* DCS_CAL_COMPLETE - [9:8] */
60139b8eab7SMark Brown #define WM9090_DCS_CAL_COMPLETE_WIDTH                2  /* DCS_CAL_COMPLETE - [9:8] */
60239b8eab7SMark Brown #define WM9090_DCS_DAC_WR_COMPLETE_MASK         0x0030  /* DCS_DAC_WR_COMPLETE - [5:4] */
60339b8eab7SMark Brown #define WM9090_DCS_DAC_WR_COMPLETE_SHIFT             4  /* DCS_DAC_WR_COMPLETE - [5:4] */
60439b8eab7SMark Brown #define WM9090_DCS_DAC_WR_COMPLETE_WIDTH             2  /* DCS_DAC_WR_COMPLETE - [5:4] */
60539b8eab7SMark Brown #define WM9090_DCS_STARTUP_COMPLETE_MASK        0x0003  /* DCS_STARTUP_COMPLETE - [1:0] */
60639b8eab7SMark Brown #define WM9090_DCS_STARTUP_COMPLETE_SHIFT            0  /* DCS_STARTUP_COMPLETE - [1:0] */
60739b8eab7SMark Brown #define WM9090_DCS_STARTUP_COMPLETE_WIDTH            2  /* DCS_STARTUP_COMPLETE - [1:0] */
60839b8eab7SMark Brown 
60939b8eab7SMark Brown /*
61039b8eab7SMark Brown  * R89 (0x59) - DC Servo Readback 1
61139b8eab7SMark Brown  */
61239b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_RD_MASK         0x00FF  /* DCS_DAC_WR_VAL_1_RD - [7:0] */
61339b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_RD_SHIFT             0  /* DCS_DAC_WR_VAL_1_RD - [7:0] */
61439b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_1_RD_WIDTH             8  /* DCS_DAC_WR_VAL_1_RD - [7:0] */
61539b8eab7SMark Brown 
61639b8eab7SMark Brown /*
61739b8eab7SMark Brown  * R90 (0x5A) - DC Servo Readback 2
61839b8eab7SMark Brown  */
61939b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_RD_MASK         0x00FF  /* DCS_DAC_WR_VAL_0_RD - [7:0] */
62039b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_RD_SHIFT             0  /* DCS_DAC_WR_VAL_0_RD - [7:0] */
62139b8eab7SMark Brown #define WM9090_DCS_DAC_WR_VAL_0_RD_WIDTH             8  /* DCS_DAC_WR_VAL_0_RD - [7:0] */
62239b8eab7SMark Brown 
62339b8eab7SMark Brown /*
62439b8eab7SMark Brown  * R96 (0x60) - Analogue HP 0
62539b8eab7SMark Brown  */
62639b8eab7SMark Brown #define WM9090_HPOUT1L_RMV_SHORT                0x0080  /* HPOUT1L_RMV_SHORT */
62739b8eab7SMark Brown #define WM9090_HPOUT1L_RMV_SHORT_MASK           0x0080  /* HPOUT1L_RMV_SHORT */
62839b8eab7SMark Brown #define WM9090_HPOUT1L_RMV_SHORT_SHIFT               7  /* HPOUT1L_RMV_SHORT */
62939b8eab7SMark Brown #define WM9090_HPOUT1L_RMV_SHORT_WIDTH               1  /* HPOUT1L_RMV_SHORT */
63039b8eab7SMark Brown #define WM9090_HPOUT1L_OUTP                     0x0040  /* HPOUT1L_OUTP */
63139b8eab7SMark Brown #define WM9090_HPOUT1L_OUTP_MASK                0x0040  /* HPOUT1L_OUTP */
63239b8eab7SMark Brown #define WM9090_HPOUT1L_OUTP_SHIFT                    6  /* HPOUT1L_OUTP */
63339b8eab7SMark Brown #define WM9090_HPOUT1L_OUTP_WIDTH                    1  /* HPOUT1L_OUTP */
63439b8eab7SMark Brown #define WM9090_HPOUT1L_DLY                      0x0020  /* HPOUT1L_DLY */
63539b8eab7SMark Brown #define WM9090_HPOUT1L_DLY_MASK                 0x0020  /* HPOUT1L_DLY */
63639b8eab7SMark Brown #define WM9090_HPOUT1L_DLY_SHIFT                     5  /* HPOUT1L_DLY */
63739b8eab7SMark Brown #define WM9090_HPOUT1L_DLY_WIDTH                     1  /* HPOUT1L_DLY */
63839b8eab7SMark Brown #define WM9090_HPOUT1R_RMV_SHORT                0x0008  /* HPOUT1R_RMV_SHORT */
63939b8eab7SMark Brown #define WM9090_HPOUT1R_RMV_SHORT_MASK           0x0008  /* HPOUT1R_RMV_SHORT */
64039b8eab7SMark Brown #define WM9090_HPOUT1R_RMV_SHORT_SHIFT               3  /* HPOUT1R_RMV_SHORT */
64139b8eab7SMark Brown #define WM9090_HPOUT1R_RMV_SHORT_WIDTH               1  /* HPOUT1R_RMV_SHORT */
64239b8eab7SMark Brown #define WM9090_HPOUT1R_OUTP                     0x0004  /* HPOUT1R_OUTP */
64339b8eab7SMark Brown #define WM9090_HPOUT1R_OUTP_MASK                0x0004  /* HPOUT1R_OUTP */
64439b8eab7SMark Brown #define WM9090_HPOUT1R_OUTP_SHIFT                    2  /* HPOUT1R_OUTP */
64539b8eab7SMark Brown #define WM9090_HPOUT1R_OUTP_WIDTH                    1  /* HPOUT1R_OUTP */
64639b8eab7SMark Brown #define WM9090_HPOUT1R_DLY                      0x0002  /* HPOUT1R_DLY */
64739b8eab7SMark Brown #define WM9090_HPOUT1R_DLY_MASK                 0x0002  /* HPOUT1R_DLY */
64839b8eab7SMark Brown #define WM9090_HPOUT1R_DLY_SHIFT                     1  /* HPOUT1R_DLY */
64939b8eab7SMark Brown #define WM9090_HPOUT1R_DLY_WIDTH                     1  /* HPOUT1R_DLY */
65039b8eab7SMark Brown 
65139b8eab7SMark Brown /*
65239b8eab7SMark Brown  * R98 (0x62) - AGC Control 0
65339b8eab7SMark Brown  */
65439b8eab7SMark Brown #define WM9090_AGC_CLIP_ENA                     0x8000  /* AGC_CLIP_ENA */
65539b8eab7SMark Brown #define WM9090_AGC_CLIP_ENA_MASK                0x8000  /* AGC_CLIP_ENA */
65639b8eab7SMark Brown #define WM9090_AGC_CLIP_ENA_SHIFT                   15  /* AGC_CLIP_ENA */
65739b8eab7SMark Brown #define WM9090_AGC_CLIP_ENA_WIDTH                    1  /* AGC_CLIP_ENA */
65839b8eab7SMark Brown #define WM9090_AGC_CLIP_THR_MASK                0x0F00  /* AGC_CLIP_THR - [11:8] */
65939b8eab7SMark Brown #define WM9090_AGC_CLIP_THR_SHIFT                    8  /* AGC_CLIP_THR - [11:8] */
66039b8eab7SMark Brown #define WM9090_AGC_CLIP_THR_WIDTH                    4  /* AGC_CLIP_THR - [11:8] */
66139b8eab7SMark Brown #define WM9090_AGC_CLIP_ATK_MASK                0x0070  /* AGC_CLIP_ATK - [6:4] */
66239b8eab7SMark Brown #define WM9090_AGC_CLIP_ATK_SHIFT                    4  /* AGC_CLIP_ATK - [6:4] */
66339b8eab7SMark Brown #define WM9090_AGC_CLIP_ATK_WIDTH                    3  /* AGC_CLIP_ATK - [6:4] */
66439b8eab7SMark Brown #define WM9090_AGC_CLIP_DCY_MASK                0x0007  /* AGC_CLIP_DCY - [2:0] */
66539b8eab7SMark Brown #define WM9090_AGC_CLIP_DCY_SHIFT                    0  /* AGC_CLIP_DCY - [2:0] */
66639b8eab7SMark Brown #define WM9090_AGC_CLIP_DCY_WIDTH                    3  /* AGC_CLIP_DCY - [2:0] */
66739b8eab7SMark Brown 
66839b8eab7SMark Brown /*
66939b8eab7SMark Brown  * R99 (0x63) - AGC Control 1
67039b8eab7SMark Brown  */
67139b8eab7SMark Brown #define WM9090_AGC_PWR_ENA                      0x8000  /* AGC_PWR_ENA */
67239b8eab7SMark Brown #define WM9090_AGC_PWR_ENA_MASK                 0x8000  /* AGC_PWR_ENA */
67339b8eab7SMark Brown #define WM9090_AGC_PWR_ENA_SHIFT                    15  /* AGC_PWR_ENA */
67439b8eab7SMark Brown #define WM9090_AGC_PWR_ENA_WIDTH                     1  /* AGC_PWR_ENA */
67539b8eab7SMark Brown #define WM9090_AGC_PWR_AVG                      0x1000  /* AGC_PWR_AVG */
67639b8eab7SMark Brown #define WM9090_AGC_PWR_AVG_MASK                 0x1000  /* AGC_PWR_AVG */
67739b8eab7SMark Brown #define WM9090_AGC_PWR_AVG_SHIFT                    12  /* AGC_PWR_AVG */
67839b8eab7SMark Brown #define WM9090_AGC_PWR_AVG_WIDTH                     1  /* AGC_PWR_AVG */
67939b8eab7SMark Brown #define WM9090_AGC_PWR_THR_MASK                 0x0F00  /* AGC_PWR_THR - [11:8] */
68039b8eab7SMark Brown #define WM9090_AGC_PWR_THR_SHIFT                     8  /* AGC_PWR_THR - [11:8] */
68139b8eab7SMark Brown #define WM9090_AGC_PWR_THR_WIDTH                     4  /* AGC_PWR_THR - [11:8] */
68239b8eab7SMark Brown #define WM9090_AGC_PWR_ATK_MASK                 0x0070  /* AGC_PWR_ATK - [6:4] */
68339b8eab7SMark Brown #define WM9090_AGC_PWR_ATK_SHIFT                     4  /* AGC_PWR_ATK - [6:4] */
68439b8eab7SMark Brown #define WM9090_AGC_PWR_ATK_WIDTH                     3  /* AGC_PWR_ATK - [6:4] */
68539b8eab7SMark Brown #define WM9090_AGC_PWR_DCY_MASK                 0x0007  /* AGC_PWR_DCY - [2:0] */
68639b8eab7SMark Brown #define WM9090_AGC_PWR_DCY_SHIFT                     0  /* AGC_PWR_DCY - [2:0] */
68739b8eab7SMark Brown #define WM9090_AGC_PWR_DCY_WIDTH                     3  /* AGC_PWR_DCY - [2:0] */
68839b8eab7SMark Brown 
68939b8eab7SMark Brown /*
69039b8eab7SMark Brown  * R100 (0x64) - AGC Control 2
69139b8eab7SMark Brown  */
69239b8eab7SMark Brown #define WM9090_AGC_RAMP                         0x0100  /* AGC_RAMP */
69339b8eab7SMark Brown #define WM9090_AGC_RAMP_MASK                    0x0100  /* AGC_RAMP */
69439b8eab7SMark Brown #define WM9090_AGC_RAMP_SHIFT                        8  /* AGC_RAMP */
69539b8eab7SMark Brown #define WM9090_AGC_RAMP_WIDTH                        1  /* AGC_RAMP */
69639b8eab7SMark Brown #define WM9090_AGC_MINGAIN_MASK                 0x003F  /* AGC_MINGAIN - [5:0] */
69739b8eab7SMark Brown #define WM9090_AGC_MINGAIN_SHIFT                     0  /* AGC_MINGAIN - [5:0] */
69839b8eab7SMark Brown #define WM9090_AGC_MINGAIN_WIDTH                     6  /* AGC_MINGAIN - [5:0] */
69939b8eab7SMark Brown 
70039b8eab7SMark Brown #endif
701