18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/sound/cs42l56.h -- Platform data for CS42L56 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2014 Cirrus Logic Inc. 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __CS42L56_H 98c2ecf20Sopenharmony_ci#define __CS42L56_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistruct cs42l56_platform_data { 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci /* GPIO for Reset */ 148c2ecf20Sopenharmony_ci unsigned int gpio_nreset; 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci /* MICBIAS Level. Check datasheet Pg48 */ 178c2ecf20Sopenharmony_ci unsigned int micbias_lvl; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci /* Analog Input 1A Reference 0=Single 1=Pseudo-Differential */ 208c2ecf20Sopenharmony_ci unsigned int ain1a_ref_cfg; 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci /* Analog Input 2A Reference 0=Single 1=Pseudo-Differential */ 238c2ecf20Sopenharmony_ci unsigned int ain2a_ref_cfg; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci /* Analog Input 1B Reference 0=Single 1=Pseudo-Differential */ 268c2ecf20Sopenharmony_ci unsigned int ain1b_ref_cfg; 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci /* Analog Input 2B Reference 0=Single 1=Pseudo-Differential */ 298c2ecf20Sopenharmony_ci unsigned int ain2b_ref_cfg; 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci /* Charge Pump Freq. Check datasheet Pg62 */ 328c2ecf20Sopenharmony_ci unsigned int chgfreq; 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci /* HighPass Filter Right Channel Corner Frequency */ 358c2ecf20Sopenharmony_ci unsigned int hpfb_freq; 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci /* HighPass Filter Left Channel Corner Frequency */ 388c2ecf20Sopenharmony_ci unsigned int hpfa_freq; 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci /* Adaptive Power Control for LO/HP */ 418c2ecf20Sopenharmony_ci unsigned int adaptive_pwr; 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci}; 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#endif /* __CS42L56_H */ 46