18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/sound/rt5682.h -- Platform data for RT5682 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright 2018 Realtek Microelectronics 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __LINUX_SND_RT5682_H 98c2ecf20Sopenharmony_ci#define __LINUX_SND_RT5682_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cienum rt5682_dmic1_data_pin { 128c2ecf20Sopenharmony_ci RT5682_DMIC1_NULL, 138c2ecf20Sopenharmony_ci RT5682_DMIC1_DATA_GPIO2, 148c2ecf20Sopenharmony_ci RT5682_DMIC1_DATA_GPIO5, 158c2ecf20Sopenharmony_ci}; 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_cienum rt5682_dmic1_clk_pin { 188c2ecf20Sopenharmony_ci RT5682_DMIC1_CLK_GPIO1, 198c2ecf20Sopenharmony_ci RT5682_DMIC1_CLK_GPIO3, 208c2ecf20Sopenharmony_ci}; 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_cienum rt5682_jd_src { 238c2ecf20Sopenharmony_ci RT5682_JD_NULL, 248c2ecf20Sopenharmony_ci RT5682_JD1, 258c2ecf20Sopenharmony_ci}; 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cienum rt5682_dai_clks { 288c2ecf20Sopenharmony_ci RT5682_DAI_WCLK_IDX, 298c2ecf20Sopenharmony_ci RT5682_DAI_BCLK_IDX, 308c2ecf20Sopenharmony_ci RT5682_DAI_NUM_CLKS, 318c2ecf20Sopenharmony_ci}; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_cistruct rt5682_platform_data { 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci int ldo1_en; /* GPIO for LDO1_EN */ 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci enum rt5682_dmic1_data_pin dmic1_data_pin; 388c2ecf20Sopenharmony_ci enum rt5682_dmic1_clk_pin dmic1_clk_pin; 398c2ecf20Sopenharmony_ci enum rt5682_jd_src jd_src; 408c2ecf20Sopenharmony_ci unsigned int btndet_delay; 418c2ecf20Sopenharmony_ci unsigned int dmic_clk_rate; 428c2ecf20Sopenharmony_ci unsigned int dmic_delay; 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci const char *dai_clk_names[RT5682_DAI_NUM_CLKS]; 458c2ecf20Sopenharmony_ci}; 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci#endif 488c2ecf20Sopenharmony_ci 49