irqchip: Fix dependencies for archs w/o HAS_IOMEM
[linux/fpc-iii.git] / include / sound / da7219.h
blob3f39e135312db031a0e55cf3b538fee230415c9a
1 /*
2 * da7219.h - DA7219 ASoC Codec Driver Platform Data
4 * Copyright (c) 2015 Dialog Semiconductor
6 * Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
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.
14 #ifndef __DA7219_PDATA_H
15 #define __DA7219_PDATA_H
17 /* LDO */
18 enum da7219_ldo_lvl_sel {
19 DA7219_LDO_LVL_SEL_1_05V = 0,
20 DA7219_LDO_LVL_SEL_1_10V,
21 DA7219_LDO_LVL_SEL_1_20V,
22 DA7219_LDO_LVL_SEL_1_40V,
25 /* Mic Bias */
26 enum da7219_micbias_voltage {
27 DA7219_MICBIAS_1_8V = 1,
28 DA7219_MICBIAS_2_0V,
29 DA7219_MICBIAS_2_2V,
30 DA7219_MICBIAS_2_4V,
31 DA7219_MICBIAS_2_6V,
34 /* Mic input type */
35 enum da7219_mic_amp_in_sel {
36 DA7219_MIC_AMP_IN_SEL_DIFF = 0,
37 DA7219_MIC_AMP_IN_SEL_SE_P,
38 DA7219_MIC_AMP_IN_SEL_SE_N,
41 struct da7219_aad_pdata;
43 struct da7219_pdata {
44 /* Internal LDO */
45 enum da7219_ldo_lvl_sel ldo_lvl_sel;
47 /* Mic */
48 enum da7219_micbias_voltage micbias_lvl;
49 enum da7219_mic_amp_in_sel mic_amp_in_sel;
51 /* AAD */
52 struct da7219_aad_pdata *aad_pdata;
55 #endif /* __DA7219_PDATA_H */