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