blob: 656c4d58948da2eeb760bbfb9363dcb322ffadf9 [file] [log] [blame]
Bard Liaod3cb2de2015-11-09 14:47:34 +08001/*
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
14enum 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
22enum 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
30enum rt5659_jd_src {
31 RT5659_JD_NULL,
32 RT5659_JD3,
33};
34
35struct rt5659_platform_data {
36 bool in1_diff;
37 bool in3_diff;
38 bool in4_diff;
39
40 int ldo1_en; /* GPIO for LDO1_EN */
41 int reset; /* GPIO for RESET */
42
43 enum rt5659_dmic1_data_pin dmic1_data_pin;
44 enum rt5659_dmic2_data_pin dmic2_data_pin;
45 enum rt5659_jd_src jd_src;
46};
47
48#endif
49