xref: /linux/include/sound/rt5682.h (revision 0ddce71c21f03fd19867c4939d3ca710f37cdf1a)
1*0ddce71cSBard Liao /*
2*0ddce71cSBard Liao  * linux/sound/rt5682.h -- Platform data for RT5682
3*0ddce71cSBard Liao  *
4*0ddce71cSBard Liao  * Copyright 2018 Realtek Microelectronics
5*0ddce71cSBard Liao  *
6*0ddce71cSBard Liao  * This program is free software; you can redistribute it and/or modify
7*0ddce71cSBard Liao  * it under the terms of the GNU General Public License version 2 as
8*0ddce71cSBard Liao  * published by the Free Software Foundation.
9*0ddce71cSBard Liao  */
10*0ddce71cSBard Liao 
11*0ddce71cSBard Liao #ifndef __LINUX_SND_RT5682_H
12*0ddce71cSBard Liao #define __LINUX_SND_RT5682_H
13*0ddce71cSBard Liao 
14*0ddce71cSBard Liao enum rt5682_dmic1_data_pin {
15*0ddce71cSBard Liao 	RT5682_DMIC1_NULL,
16*0ddce71cSBard Liao 	RT5682_DMIC1_DATA_GPIO2,
17*0ddce71cSBard Liao 	RT5682_DMIC1_DATA_GPIO5,
18*0ddce71cSBard Liao };
19*0ddce71cSBard Liao 
20*0ddce71cSBard Liao enum rt5682_dmic1_clk_pin {
21*0ddce71cSBard Liao 	RT5682_DMIC1_CLK_GPIO1,
22*0ddce71cSBard Liao 	RT5682_DMIC1_CLK_GPIO3,
23*0ddce71cSBard Liao };
24*0ddce71cSBard Liao 
25*0ddce71cSBard Liao enum rt5682_jd_src {
26*0ddce71cSBard Liao 	RT5682_JD_NULL,
27*0ddce71cSBard Liao 	RT5682_JD1,
28*0ddce71cSBard Liao };
29*0ddce71cSBard Liao 
30*0ddce71cSBard Liao struct rt5682_platform_data {
31*0ddce71cSBard Liao 
32*0ddce71cSBard Liao 	int ldo1_en; /* GPIO for LDO1_EN */
33*0ddce71cSBard Liao 
34*0ddce71cSBard Liao 	enum rt5682_dmic1_data_pin dmic1_data_pin;
35*0ddce71cSBard Liao 	enum rt5682_dmic1_clk_pin dmic1_clk_pin;
36*0ddce71cSBard Liao 	enum rt5682_jd_src jd_src;
37*0ddce71cSBard Liao };
38*0ddce71cSBard Liao 
39*0ddce71cSBard Liao #endif
40*0ddce71cSBard Liao 
41