Go to the documentation of this file.
6 #ifndef _LINUX_WM97XX_H
7 #define _LINUX_WM97XX_H
13 #include <linux/types.h>
14 #include <linux/list.h>
15 #include <linux/input.h>
21 #define WM97xx_GENERIC 0x0000
22 #define WM97xx_WM1613 0x1613
27 #define AC97_WM97XX_DIGITISER1 0x76
28 #define AC97_WM97XX_DIGITISER2 0x78
29 #define AC97_WM97XX_DIGITISER_RD 0x7a
30 #define AC97_WM9713_DIG1 0x74
31 #define AC97_WM9713_DIG2 AC97_WM97XX_DIGITISER1
32 #define AC97_WM9713_DIG3 AC97_WM97XX_DIGITISER2
37 #define WM97XX_POLL 0x8000
38 #define WM97XX_ADCSEL_X 0x1000
39 #define WM97XX_ADCSEL_Y 0x2000
40 #define WM97XX_ADCSEL_PRES 0x3000
41 #define WM97XX_AUX_ID1 0x4000
42 #define WM97XX_AUX_ID2 0x5000
43 #define WM97XX_AUX_ID3 0x6000
44 #define WM97XX_AUX_ID4 0x7000
45 #define WM97XX_ADCSEL_MASK 0x7000
46 #define WM97XX_COO 0x0800
47 #define WM97XX_CTC 0x0400
48 #define WM97XX_CM_RATE_93 0x0000
49 #define WM97XX_CM_RATE_187 0x0100
50 #define WM97XX_CM_RATE_375 0x0200
51 #define WM97XX_CM_RATE_750 0x0300
52 #define WM97XX_CM_RATE_8K 0x00f0
53 #define WM97XX_CM_RATE_12K 0x01f0
54 #define WM97XX_CM_RATE_24K 0x02f0
55 #define WM97XX_CM_RATE_48K 0x03f0
56 #define WM97XX_CM_RATE_MASK 0x03f0
57 #define WM97XX_RATE(i) (((i & 3) << 8) | ((i & 4) ? 0xf0 : 0))
58 #define WM97XX_DELAY(i) ((i << 4) & 0x00f0)
59 #define WM97XX_DELAY_MASK 0x00f0
60 #define WM97XX_SLEN 0x0008
61 #define WM97XX_SLT(i) ((i - 5) & 0x7)
62 #define WM97XX_SLT_MASK 0x0007
63 #define WM97XX_PRP_DETW 0x4000
64 #define WM97XX_PRP_DET 0x8000
65 #define WM97XX_PRP_DET_DIG 0xc000
66 #define WM97XX_RPR 0x2000
67 #define WM97XX_PEN_DOWN 0x8000
70 #define WM9712_45W 0x1000
71 #define WM9712_PDEN 0x0800
72 #define WM9712_WAIT 0x0200
73 #define WM9712_PIL 0x0100
74 #define WM9712_MASK_HI 0x0040
75 #define WM9712_MASK_EDGE 0x0080
76 #define WM9712_MASK_SYNC 0x00c0
77 #define WM9712_RPU(i) (i&0x3f)
78 #define WM9712_PD(i) (0x1 << i)
81 #define AC97_WM9712_POWER 0x24
82 #define AC97_WM9712_REV 0x58
85 #define WM9705_PDEN 0x1000
86 #define WM9705_PINV 0x0800
87 #define WM9705_BSEN 0x0400
88 #define WM9705_BINV 0x0200
89 #define WM9705_WAIT 0x0100
90 #define WM9705_PIL 0x0080
91 #define WM9705_PHIZ 0x0040
92 #define WM9705_MASK_HI 0x0010
93 #define WM9705_MASK_EDGE 0x0020
94 #define WM9705_MASK_SYNC 0x0030
95 #define WM9705_PDD(i) (i & 0x000f)
99 #define WM9713_PDPOL 0x0400
100 #define WM9713_POLL 0x0200
101 #define WM9713_CTC 0x0100
102 #define WM9713_ADCSEL_X 0x0002
103 #define WM9713_ADCSEL_Y 0x0004
104 #define WM9713_ADCSEL_PRES 0x0008
105 #define WM9713_COO 0x0001
106 #define WM9713_45W 0x1000
107 #define WM9713_PDEN 0x0800
108 #define WM9713_ADCSEL_MASK 0x00fe
109 #define WM9713_WAIT 0x0200
118 #define WM97XX_ID1 0x574d
119 #define WM9712_ID2 0x4c12
120 #define WM9705_ID2 0x4c05
121 #define WM9713_ID2 0x4c13
124 #define WM97XX_MAX_GPIO 16
125 #define WM97XX_GPIO_1 (1 << 1)
126 #define WM97XX_GPIO_2 (1 << 2)
127 #define WM97XX_GPIO_3 (1 << 3)
128 #define WM97XX_GPIO_4 (1 << 4)
129 #define WM97XX_GPIO_5 (1 << 5)
130 #define WM97XX_GPIO_6 (1 << 6)
131 #define WM97XX_GPIO_7 (1 << 7)
132 #define WM97XX_GPIO_8 (1 << 8)
133 #define WM97XX_GPIO_9 (1 << 9)
134 #define WM97XX_GPIO_10 (1 << 10)
135 #define WM97XX_GPIO_11 (1 << 11)
136 #define WM97XX_GPIO_12 (1 << 12)
137 #define WM97XX_GPIO_13 (1 << 13)
138 #define WM97XX_GPIO_14 (1 << 14)
139 #define WM97XX_GPIO_15 (1 << 15)
142 #define AC97_LINK_FRAME 21
148 #define RC_AGAIN 0x00000001
150 #define RC_VALID 0x00000002
152 #define RC_PENUP 0x00000004
156 #define RC_PENDOWN 0x00000008
213 #define WM97XX_DIG_START 0x1
214 #define WM97XX_DIG_STOP 0x2
215 #define WM97XX_PHY_INIT 0x3
216 #define WM97XX_AUX_PREPARE 0x4
217 #define WM97XX_DIG_RESTORE 0x5