xref: /linux/include/sound/rt5659.h (revision f79e4d5f92a129a1159c973735007d4ddc8541f3)
1 /*
2  * linux/sound/rt5659.h -- Platform data for RT5659
3  *
4  * Copyright 2013 Realtek Microelectronics
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10 
11 #ifndef __LINUX_SND_RT5659_H
12 #define __LINUX_SND_RT5659_H
13 
14 enum rt5659_dmic1_data_pin {
15 	RT5659_DMIC1_NULL,
16 	RT5659_DMIC1_DATA_IN2N,
17 	RT5659_DMIC1_DATA_GPIO5,
18 	RT5659_DMIC1_DATA_GPIO9,
19 	RT5659_DMIC1_DATA_GPIO11,
20 };
21 
22 enum rt5659_dmic2_data_pin {
23 	RT5659_DMIC2_NULL,
24 	RT5659_DMIC2_DATA_IN2P,
25 	RT5659_DMIC2_DATA_GPIO6,
26 	RT5659_DMIC2_DATA_GPIO10,
27 	RT5659_DMIC2_DATA_GPIO12,
28 };
29 
30 enum rt5659_jd_src {
31 	RT5659_JD_NULL,
32 	RT5659_JD3,
33 	RT5659_JD_HDA_HEADER,
34 };
35 
36 struct rt5659_platform_data {
37 	bool in1_diff;
38 	bool in3_diff;
39 	bool in4_diff;
40 
41 	int ldo1_en; /* GPIO for LDO1_EN */
42 	int reset; /* GPIO for RESET */
43 
44 	enum rt5659_dmic1_data_pin dmic1_data_pin;
45 	enum rt5659_dmic2_data_pin dmic2_data_pin;
46 	enum rt5659_jd_src jd_src;
47 };
48 
49 #endif
50 
51