18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/sound/rt5645.h -- Platform data for RT5645 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright 2013 Realtek Microelectronics 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __LINUX_SND_RT5645_H 98c2ecf20Sopenharmony_ci#define __LINUX_SND_RT5645_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistruct rt5645_platform_data { 128c2ecf20Sopenharmony_ci /* IN2 can optionally be differential */ 138c2ecf20Sopenharmony_ci bool in2_diff; 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci unsigned int dmic1_data_pin; 168c2ecf20Sopenharmony_ci /* 0 = IN2N; 1 = GPIO5; 2 = GPIO11 */ 178c2ecf20Sopenharmony_ci unsigned int dmic2_data_pin; 188c2ecf20Sopenharmony_ci /* 0 = IN2P; 1 = GPIO6; 2 = GPIO10; 3 = GPIO12 */ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci unsigned int jd_mode; 218c2ecf20Sopenharmony_ci /* Use level triggered irq */ 228c2ecf20Sopenharmony_ci bool level_trigger_irq; 238c2ecf20Sopenharmony_ci /* Invert JD1_1 status polarity */ 248c2ecf20Sopenharmony_ci bool inv_jd1_1; 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci /* Value to asign to snd_soc_card.long_name */ 278c2ecf20Sopenharmony_ci const char *long_name; 288c2ecf20Sopenharmony_ci}; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#endif 31