1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/sound/rt5659.h -- Platform data for RT5659
5 * Copyright 2013 Realtek Microelectronics
8 #ifndef __LINUX_SND_RT5659_H
9 #define __LINUX_SND_RT5659_H
11 enum rt5659_dmic1_data_pin
{
13 RT5659_DMIC1_DATA_IN2N
,
14 RT5659_DMIC1_DATA_GPIO5
,
15 RT5659_DMIC1_DATA_GPIO9
,
16 RT5659_DMIC1_DATA_GPIO11
,
19 enum rt5659_dmic2_data_pin
{
21 RT5659_DMIC2_DATA_IN2P
,
22 RT5659_DMIC2_DATA_GPIO6
,
23 RT5659_DMIC2_DATA_GPIO10
,
24 RT5659_DMIC2_DATA_GPIO12
,
33 struct rt5659_platform_data
{
38 int ldo1_en
; /* GPIO for LDO1_EN */
39 int reset
; /* GPIO for RESET */
41 enum rt5659_dmic1_data_pin dmic1_data_pin
;
42 enum rt5659_dmic2_data_pin dmic2_data_pin
;
43 enum rt5659_jd_src jd_src
;