1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * linux/sound/cs42l56.h -- Platform data for 2 * linux/sound/cs42l56.h -- Platform data for CS42L56 4 * 3 * 5 * Copyright (c) 2014 Cirrus Logic Inc. 4 * Copyright (c) 2014 Cirrus Logic Inc. >> 5 * >> 6 * This program is free software; you can redistribute it and/or modify >> 7 * it under the terms of the GNU General Public License version 2 as >> 8 * published by the Free Software Foundation. 6 */ 9 */ 7 10 8 #ifndef __CS42L56_H 11 #ifndef __CS42L56_H 9 #define __CS42L56_H 12 #define __CS42L56_H 10 13 11 struct cs42l56_platform_data { 14 struct cs42l56_platform_data { 12 15 13 /* GPIO for Reset */ 16 /* GPIO for Reset */ 14 unsigned int gpio_nreset; 17 unsigned int gpio_nreset; 15 18 16 /* MICBIAS Level. Check datasheet Pg48 19 /* MICBIAS Level. Check datasheet Pg48 */ 17 unsigned int micbias_lvl; 20 unsigned int micbias_lvl; 18 21 19 /* Analog Input 1A Reference 0=Single 22 /* Analog Input 1A Reference 0=Single 1=Pseudo-Differential */ 20 unsigned int ain1a_ref_cfg; 23 unsigned int ain1a_ref_cfg; 21 24 22 /* Analog Input 2A Reference 0=Single 25 /* Analog Input 2A Reference 0=Single 1=Pseudo-Differential */ 23 unsigned int ain2a_ref_cfg; 26 unsigned int ain2a_ref_cfg; 24 27 25 /* Analog Input 1B Reference 0=Single 28 /* Analog Input 1B Reference 0=Single 1=Pseudo-Differential */ 26 unsigned int ain1b_ref_cfg; 29 unsigned int ain1b_ref_cfg; 27 30 28 /* Analog Input 2B Reference 0=Single 31 /* Analog Input 2B Reference 0=Single 1=Pseudo-Differential */ 29 unsigned int ain2b_ref_cfg; 32 unsigned int ain2b_ref_cfg; 30 33 31 /* Charge Pump Freq. Check datasheet P 34 /* Charge Pump Freq. Check datasheet Pg62 */ 32 unsigned int chgfreq; 35 unsigned int chgfreq; 33 36 34 /* HighPass Filter Right Channel Corne 37 /* HighPass Filter Right Channel Corner Frequency */ 35 unsigned int hpfb_freq; 38 unsigned int hpfb_freq; 36 39 37 /* HighPass Filter Left Channel Corner 40 /* HighPass Filter Left Channel Corner Frequency */ 38 unsigned int hpfa_freq; 41 unsigned int hpfa_freq; 39 42 40 /* Adaptive Power Control for LO/HP */ 43 /* Adaptive Power Control for LO/HP */ 41 unsigned int adaptive_pwr; 44 unsigned int adaptive_pwr; 42 45 43 }; 46 }; 44 47 45 #endif /* __CS42L56_H */ 48 #endif /* __CS42L56_H */ 46 49
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.