xref: /linux/include/sound/cs35l41.h (revision 68550cbc6129159b7a6434796b721e8b66ee12f6)
1 /* SPDX-License-Identifier: GPL-2.0
2  *
3  * linux/sound/cs35l41.h -- Platform data for CS35L41
4  *
5  * Copyright (c) 2017-2021 Cirrus Logic Inc.
6  *
7  * Author: David Rhodes	<david.rhodes@cirrus.com>
8  */
9 
10 #ifndef __CS35L41_H
11 #define __CS35L41_H
12 
13 enum cs35l41_clk_ids {
14 	CS35L41_CLKID_SCLK = 0,
15 	CS35L41_CLKID_LRCLK = 1,
16 	CS35L41_CLKID_MCLK = 4,
17 };
18 
19 struct cs35l41_irq_cfg {
20 	bool irq_pol_inv;
21 	bool irq_out_en;
22 	int irq_src_sel;
23 };
24 
25 struct cs35l41_platform_data {
26 	int bst_ind;
27 	int bst_ipk;
28 	int bst_cap;
29 	int dout_hiz;
30 	struct cs35l41_irq_cfg irq_config1;
31 	struct cs35l41_irq_cfg irq_config2;
32 };
33 
34 #endif /* __CS35L41_H */
35