blob: 1bfcb16f2d10ab02eeebcd462d16a44b55985dd2 [file] [log] [blame]
Adam Thomson6d817c02015-09-29 16:44:01 +01001/*
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
Adam Thomson6d817c02015-09-29 16:44:01 +010017/* Mic Bias */
18enum da7219_micbias_voltage {
Adam Thomson0aed64c2015-12-22 18:27:55 +000019 DA7219_MICBIAS_1_6V = 0,
20 DA7219_MICBIAS_1_8V,
Adam Thomson6d817c02015-09-29 16:44:01 +010021 DA7219_MICBIAS_2_0V,
22 DA7219_MICBIAS_2_2V,
23 DA7219_MICBIAS_2_4V,
24 DA7219_MICBIAS_2_6V,
25};
26
27/* Mic input type */
28enum da7219_mic_amp_in_sel {
29 DA7219_MIC_AMP_IN_SEL_DIFF = 0,
30 DA7219_MIC_AMP_IN_SEL_SE_P,
31 DA7219_MIC_AMP_IN_SEL_SE_N,
32};
33
34struct da7219_aad_pdata;
35
36struct da7219_pdata {
Adam Thomsonbb0c35f2016-09-26 14:29:21 +010037 bool wakeup_source;
38
Adam Thomsonfc8f7ea2018-03-09 16:25:43 +000039 const char *dai_clks_name;
40
Adam Thomson6d817c02015-09-29 16:44:01 +010041 /* Mic */
42 enum da7219_micbias_voltage micbias_lvl;
43 enum da7219_mic_amp_in_sel mic_amp_in_sel;
44
45 /* AAD */
46 struct da7219_aad_pdata *aad_pdata;
47};
48
49#endif /* __DA7219_PDATA_H */