xref: /openbmc/linux/include/sound/cs42l52.h (revision 44b2ed54)
1dfe0f98bSBrian Austin /*
2dfe0f98bSBrian Austin  * linux/sound/cs42l52.h -- Platform data for CS42L52
3dfe0f98bSBrian Austin  *
4dfe0f98bSBrian Austin  * Copyright (c) 2012 Cirrus Logic Inc.
5dfe0f98bSBrian Austin  *
6dfe0f98bSBrian Austin  * This program is free software; you can redistribute it and/or modify
7dfe0f98bSBrian Austin  * it under the terms of the GNU General Public License version 2 as
8dfe0f98bSBrian Austin  * published by the Free Software Foundation.
9dfe0f98bSBrian Austin  */
10dfe0f98bSBrian Austin 
11dfe0f98bSBrian Austin #ifndef __CS42L52_H
12dfe0f98bSBrian Austin #define __CS42L52_H
13dfe0f98bSBrian Austin 
14dfe0f98bSBrian Austin struct cs42l52_platform_data {
15dfe0f98bSBrian Austin 
16dfe0f98bSBrian Austin 	/* MICBIAS Level. Check datasheet Pg48 */
17dfe0f98bSBrian Austin 	unsigned int micbias_lvl;
18dfe0f98bSBrian Austin 
1944b2ed54SBrian Austin 	/* MICA mode selection Differential or Single-ended */
2044b2ed54SBrian Austin 	bool mica_diff_cfg;
21dfe0f98bSBrian Austin 
2244b2ed54SBrian Austin 	/* MICB mode selection Differential or Single-ended */
2344b2ed54SBrian Austin 	bool micb_diff_cfg;
24dfe0f98bSBrian Austin 
25dfe0f98bSBrian Austin 	/* Charge Pump Freq. Check datasheet Pg73 */
26dfe0f98bSBrian Austin 	unsigned int chgfreq;
27dfe0f98bSBrian Austin 
286dd17757SBrian Austin 	/* Reset GPIO */
296dd17757SBrian Austin 	unsigned int reset_gpio;
30dfe0f98bSBrian Austin };
31dfe0f98bSBrian Austin 
32dfe0f98bSBrian Austin #endif /* __CS42L52_H */
33