1
2
3
4
5
6
7
8
9
10 #ifndef __MFD_WM8994_GPIO_H__
11 #define __MFD_WM8994_GPIO_H__
12
13 #define WM8994_GPIO_MAX 11
14
15 #define WM8994_GP_FN_PIN_SPECIFIC 0
16 #define WM8994_GP_FN_GPIO 1
17 #define WM8994_GP_FN_SDOUT 2
18 #define WM8994_GP_FN_IRQ 3
19 #define WM8994_GP_FN_TEMPERATURE 4
20 #define WM8994_GP_FN_MICBIAS1_DET 5
21 #define WM8994_GP_FN_MICBIAS1_SHORT 6
22 #define WM8994_GP_FN_MICBIAS2_DET 7
23 #define WM8994_GP_FN_MICBIAS2_SHORT 8
24 #define WM8994_GP_FN_FLL1_LOCK 9
25 #define WM8994_GP_FN_FLL2_LOCK 10
26 #define WM8994_GP_FN_SRC1_LOCK 11
27 #define WM8994_GP_FN_SRC2_LOCK 12
28 #define WM8994_GP_FN_DRC1_ACT 13
29 #define WM8994_GP_FN_DRC2_ACT 14
30 #define WM8994_GP_FN_DRC3_ACT 15
31 #define WM8994_GP_FN_WSEQ_STATUS 16
32 #define WM8994_GP_FN_FIFO_ERROR 17
33 #define WM8994_GP_FN_OPCLK 18
34 #define WM8994_GP_FN_THW 19
35 #define WM8994_GP_FN_DCS_DONE 20
36 #define WM8994_GP_FN_FLL1_OUT 21
37 #define WM8994_GP_FN_FLL2_OUT 22
38
39 #define WM8994_GPN_DIR 0x8000
40 #define WM8994_GPN_DIR_MASK 0x8000
41 #define WM8994_GPN_DIR_SHIFT 15
42 #define WM8994_GPN_DIR_WIDTH 1
43 #define WM8994_GPN_PU 0x4000
44 #define WM8994_GPN_PU_MASK 0x4000
45 #define WM8994_GPN_PU_SHIFT 14
46 #define WM8994_GPN_PU_WIDTH 1
47 #define WM8994_GPN_PD 0x2000
48 #define WM8994_GPN_PD_MASK 0x2000
49 #define WM8994_GPN_PD_SHIFT 13
50 #define WM8994_GPN_PD_WIDTH 1
51 #define WM8994_GPN_POL 0x0400
52 #define WM8994_GPN_POL_MASK 0x0400
53 #define WM8994_GPN_POL_SHIFT 10
54 #define WM8994_GPN_POL_WIDTH 1
55 #define WM8994_GPN_OP_CFG 0x0200
56 #define WM8994_GPN_OP_CFG_MASK 0x0200
57 #define WM8994_GPN_OP_CFG_SHIFT 9
58 #define WM8994_GPN_OP_CFG_WIDTH 1
59 #define WM8994_GPN_DB 0x0100
60 #define WM8994_GPN_DB_MASK 0x0100
61 #define WM8994_GPN_DB_SHIFT 8
62 #define WM8994_GPN_DB_WIDTH 1
63 #define WM8994_GPN_LVL 0x0040
64 #define WM8994_GPN_LVL_MASK 0x0040
65 #define WM8994_GPN_LVL_SHIFT 6
66 #define WM8994_GPN_LVL_WIDTH 1
67 #define WM8994_GPN_FN_MASK 0x001F
68 #define WM8994_GPN_FN_SHIFT 0
69 #define WM8994_GPN_FN_WIDTH 5
70
71 #endif