Go to the documentation of this file.
15 #ifndef __MFD_WM8994_PDATA_H__
16 #define __MFD_WM8994_PDATA_H__
19 #define WM8904_GPIO_NO_CONFIG 0x8000
24 #define WM8904_MICDET_THR_MASK 0x0070
25 #define WM8904_MICDET_THR_SHIFT 4
26 #define WM8904_MICDET_THR_WIDTH 3
27 #define WM8904_MICSHORT_THR_MASK 0x000C
28 #define WM8904_MICSHORT_THR_SHIFT 2
29 #define WM8904_MICSHORT_THR_WIDTH 2
30 #define WM8904_MICDET_ENA 0x0002
31 #define WM8904_MICDET_ENA_MASK 0x0002
32 #define WM8904_MICDET_ENA_SHIFT 1
33 #define WM8904_MICDET_ENA_WIDTH 1
34 #define WM8904_MICBIAS_ENA 0x0001
35 #define WM8904_MICBIAS_ENA_MASK 0x0001
36 #define WM8904_MICBIAS_ENA_SHIFT 0
37 #define WM8904_MICBIAS_ENA_WIDTH 1
42 #define WM8904_MIC_DET_FILTER_ENA 0x8000
43 #define WM8904_MIC_DET_FILTER_ENA_MASK 0x8000
44 #define WM8904_MIC_DET_FILTER_ENA_SHIFT 15
45 #define WM8904_MIC_DET_FILTER_ENA_WIDTH 1
46 #define WM8904_MIC_SHORT_FILTER_ENA 0x4000
47 #define WM8904_MIC_SHORT_FILTER_ENA_MASK 0x4000
48 #define WM8904_MIC_SHORT_FILTER_ENA_SHIFT 14
49 #define WM8904_MIC_SHORT_FILTER_ENA_WIDTH 1
50 #define WM8904_MICBIAS_SEL_MASK 0x0007
51 #define WM8904_MICBIAS_SEL_SHIFT 0
52 #define WM8904_MICBIAS_SEL_WIDTH 3
58 #define WM8904_GPIO1_PU 0x0020
59 #define WM8904_GPIO1_PU_MASK 0x0020
60 #define WM8904_GPIO1_PU_SHIFT 5
61 #define WM8904_GPIO1_PU_WIDTH 1
62 #define WM8904_GPIO1_PD 0x0010
63 #define WM8904_GPIO1_PD_MASK 0x0010
64 #define WM8904_GPIO1_PD_SHIFT 4
65 #define WM8904_GPIO1_PD_WIDTH 1
66 #define WM8904_GPIO1_SEL_MASK 0x000F
67 #define WM8904_GPIO1_SEL_SHIFT 0
68 #define WM8904_GPIO1_SEL_WIDTH 4
73 #define WM8904_GPIO2_PU 0x0020
74 #define WM8904_GPIO2_PU_MASK 0x0020
75 #define WM8904_GPIO2_PU_SHIFT 5
76 #define WM8904_GPIO2_PU_WIDTH 1
77 #define WM8904_GPIO2_PD 0x0010
78 #define WM8904_GPIO2_PD_MASK 0x0010
79 #define WM8904_GPIO2_PD_SHIFT 4
80 #define WM8904_GPIO2_PD_WIDTH 1
81 #define WM8904_GPIO2_SEL_MASK 0x000F
82 #define WM8904_GPIO2_SEL_SHIFT 0
83 #define WM8904_GPIO2_SEL_WIDTH 4
88 #define WM8904_GPIO3_PU 0x0020
89 #define WM8904_GPIO3_PU_MASK 0x0020
90 #define WM8904_GPIO3_PU_SHIFT 5
91 #define WM8904_GPIO3_PU_WIDTH 1
92 #define WM8904_GPIO3_PD 0x0010
93 #define WM8904_GPIO3_PD_MASK 0x0010
94 #define WM8904_GPIO3_PD_SHIFT 4
95 #define WM8904_GPIO3_PD_WIDTH 1
96 #define WM8904_GPIO3_SEL_MASK 0x000F
97 #define WM8904_GPIO3_SEL_SHIFT 0
98 #define WM8904_GPIO3_SEL_WIDTH 4
103 #define WM8904_GPI7_ENA 0x0200
104 #define WM8904_GPI7_ENA_MASK 0x0200
105 #define WM8904_GPI7_ENA_SHIFT 9
106 #define WM8904_GPI7_ENA_WIDTH 1
107 #define WM8904_GPI8_ENA 0x0100
108 #define WM8904_GPI8_ENA_MASK 0x0100
109 #define WM8904_GPI8_ENA_SHIFT 8
110 #define WM8904_GPI8_ENA_WIDTH 1
111 #define WM8904_GPIO_BCLK_MODE_ENA 0x0080
112 #define WM8904_GPIO_BCLK_MODE_ENA_MASK 0x0080
113 #define WM8904_GPIO_BCLK_MODE_ENA_SHIFT 7
114 #define WM8904_GPIO_BCLK_MODE_ENA_WIDTH 1
115 #define WM8904_GPIO_BCLK_SEL_MASK 0x000F
116 #define WM8904_GPIO_BCLK_SEL_SHIFT 0
117 #define WM8904_GPIO_BCLK_SEL_WIDTH 4
119 #define WM8904_MIC_REGS 2
120 #define WM8904_GPIO_REGS 4
121 #define WM8904_DRC_REGS 4
122 #define WM8904_EQ_REGS 25