headset driver: remove gpio info pdata.
[firefly-linux-kernel-4.4.55.git] / drivers / headset_observe / rk_headset.h
1 #ifndef RK_HEADSET_H
2 #define RK_HEADSET_H
3
4 #define HEADSET_IN_HIGH 0x00000001
5 #define HEADSET_IN_LOW  0x00000000
6
7 #define HOOK_DOWN_HIGH 0x00000001
8 #define HOOK_DOWN_LOW  0x00000000
9
10 struct io_info{
11         char    iomux_name[50];
12         int             iomux_mode;     
13 };
14
15
16 struct rk_headset_pdata{
17         unsigned int Hook_gpio;//Detection Headset--Must be set
18         unsigned int Sw_mic_gpio;
19         unsigned int Hp_mic_io_value;
20         unsigned int Main_mic_io_value;
21         unsigned int Hook_adc_chn; //adc channel
22         unsigned int Hook_down_type; //Hook key down status   
23         int     hook_key_code;
24         unsigned int Headset_gpio;//Detection Headset--Must be set
25         unsigned int headset_in_type;// Headphones into the state level--Must be set
26         int (*headset_io_init)(int);
27         int (*hook_io_init)(int);
28 };
29
30 #endif