xref: /linux/include/sound/rt5682.h (revision d2912cb15bdda8ba4a5dd73396ad62641af2f520)
1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
20ddce71cSBard Liao /*
30ddce71cSBard Liao  * linux/sound/rt5682.h -- Platform data for RT5682
40ddce71cSBard Liao  *
50ddce71cSBard Liao  * Copyright 2018 Realtek Microelectronics
60ddce71cSBard Liao  */
70ddce71cSBard Liao 
80ddce71cSBard Liao #ifndef __LINUX_SND_RT5682_H
90ddce71cSBard Liao #define __LINUX_SND_RT5682_H
100ddce71cSBard Liao 
110ddce71cSBard Liao enum rt5682_dmic1_data_pin {
120ddce71cSBard Liao 	RT5682_DMIC1_NULL,
130ddce71cSBard Liao 	RT5682_DMIC1_DATA_GPIO2,
140ddce71cSBard Liao 	RT5682_DMIC1_DATA_GPIO5,
150ddce71cSBard Liao };
160ddce71cSBard Liao 
170ddce71cSBard Liao enum rt5682_dmic1_clk_pin {
180ddce71cSBard Liao 	RT5682_DMIC1_CLK_GPIO1,
190ddce71cSBard Liao 	RT5682_DMIC1_CLK_GPIO3,
200ddce71cSBard Liao };
210ddce71cSBard Liao 
220ddce71cSBard Liao enum rt5682_jd_src {
230ddce71cSBard Liao 	RT5682_JD_NULL,
240ddce71cSBard Liao 	RT5682_JD1,
250ddce71cSBard Liao };
260ddce71cSBard Liao 
270ddce71cSBard Liao struct rt5682_platform_data {
280ddce71cSBard Liao 
290ddce71cSBard Liao 	int ldo1_en; /* GPIO for LDO1_EN */
300ddce71cSBard Liao 
310ddce71cSBard Liao 	enum rt5682_dmic1_data_pin dmic1_data_pin;
320ddce71cSBard Liao 	enum rt5682_dmic1_clk_pin dmic1_clk_pin;
330ddce71cSBard Liao 	enum rt5682_jd_src jd_src;
340ddce71cSBard Liao };
350ddce71cSBard Liao 
360ddce71cSBard Liao #endif
370ddce71cSBard Liao 
38