18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * linux/sound/cs42l52.h -- Platform data for CS42L52 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2012 Cirrus Logic Inc. 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __CS42L52_H 98c2ecf20Sopenharmony_ci#define __CS42L52_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistruct cs42l52_platform_data { 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci /* MICBIAS Level. Check datasheet Pg48 */ 148c2ecf20Sopenharmony_ci unsigned int micbias_lvl; 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci /* MICA mode selection Differential or Single-ended */ 178c2ecf20Sopenharmony_ci bool mica_diff_cfg; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci /* MICB mode selection Differential or Single-ended */ 208c2ecf20Sopenharmony_ci bool micb_diff_cfg; 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci /* Charge Pump Freq. Check datasheet Pg73 */ 238c2ecf20Sopenharmony_ci unsigned int chgfreq; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci /* Reset GPIO */ 268c2ecf20Sopenharmony_ci unsigned int reset_gpio; 278c2ecf20Sopenharmony_ci}; 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#endif /* __CS42L52_H */ 30