UPSTREAM: ASoC: da7219: Remove internal LDO features of codec
[firefly-linux-kernel-4.4.55.git] / include / sound / da7219.h
1 /*
2  * da7219.h - DA7219 ASoC Codec Driver Platform Data
3  *
4  * Copyright (c) 2015 Dialog Semiconductor
5  *
6  * Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
7  *
8  * This program is free software; you can redistribute  it and/or modify it
9  * under  the terms of  the GNU General  Public License as published by the
10  * Free Software Foundation;  either version 2 of the  License, or (at your
11  * option) any later version.
12  */
13
14 #ifndef __DA7219_PDATA_H
15 #define __DA7219_PDATA_H
16
17 /* Mic Bias */
18 enum da7219_micbias_voltage {
19         DA7219_MICBIAS_1_8V = 1,
20         DA7219_MICBIAS_2_0V,
21         DA7219_MICBIAS_2_2V,
22         DA7219_MICBIAS_2_4V,
23         DA7219_MICBIAS_2_6V,
24 };
25
26 /* Mic input type */
27 enum da7219_mic_amp_in_sel {
28         DA7219_MIC_AMP_IN_SEL_DIFF = 0,
29         DA7219_MIC_AMP_IN_SEL_SE_P,
30         DA7219_MIC_AMP_IN_SEL_SE_N,
31 };
32
33 struct da7219_aad_pdata;
34
35 struct da7219_pdata {
36         /* Mic */
37         enum da7219_micbias_voltage micbias_lvl;
38         enum da7219_mic_amp_in_sel mic_amp_in_sel;
39
40         /* AAD */
41         struct da7219_aad_pdata *aad_pdata;
42 };
43
44 #endif /* __DA7219_PDATA_H */