2 * linux/sound/rt5659.h -- Platform data for RT5659
4 * Copyright 2013 Realtek Microelectronics
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.
11 #ifndef __LINUX_SND_RT5659_H
12 #define __LINUX_SND_RT5659_H
14 enum rt5659_dmic1_data_pin
{
16 RT5659_DMIC1_DATA_IN2N
,
17 RT5659_DMIC1_DATA_GPIO5
,
18 RT5659_DMIC1_DATA_GPIO9
,
19 RT5659_DMIC1_DATA_GPIO11
,
22 enum rt5659_dmic2_data_pin
{
24 RT5659_DMIC2_DATA_IN2P
,
25 RT5659_DMIC2_DATA_GPIO6
,
26 RT5659_DMIC2_DATA_GPIO10
,
27 RT5659_DMIC2_DATA_GPIO12
,
35 struct rt5659_platform_data
{
40 int ldo1_en
; /* GPIO for LDO1_EN */
41 int reset
; /* GPIO for RESET */
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
;