2019-05-27 06:55:01 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2015-09-29 15:44:01 +00:00
|
|
|
/*
|
|
|
|
* da7219.h - DA7219 ASoC Codec Driver Platform Data
|
|
|
|
*
|
|
|
|
* Copyright (c) 2015 Dialog Semiconductor
|
|
|
|
*
|
|
|
|
* Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DA7219_PDATA_H
|
|
|
|
#define __DA7219_PDATA_H
|
|
|
|
|
|
|
|
/* Mic Bias */
|
|
|
|
enum da7219_micbias_voltage {
|
2015-12-22 18:27:55 +00:00
|
|
|
DA7219_MICBIAS_1_6V = 0,
|
|
|
|
DA7219_MICBIAS_1_8V,
|
2015-09-29 15:44:01 +00:00
|
|
|
DA7219_MICBIAS_2_0V,
|
|
|
|
DA7219_MICBIAS_2_2V,
|
|
|
|
DA7219_MICBIAS_2_4V,
|
|
|
|
DA7219_MICBIAS_2_6V,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Mic input type */
|
|
|
|
enum da7219_mic_amp_in_sel {
|
|
|
|
DA7219_MIC_AMP_IN_SEL_DIFF = 0,
|
|
|
|
DA7219_MIC_AMP_IN_SEL_SE_P,
|
|
|
|
DA7219_MIC_AMP_IN_SEL_SE_N,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct da7219_aad_pdata;
|
|
|
|
|
2019-03-19 17:49:31 +00:00
|
|
|
enum da7219_dai_clks {
|
|
|
|
DA7219_DAI_WCLK_IDX = 0,
|
|
|
|
DA7219_DAI_BCLK_IDX,
|
|
|
|
DA7219_DAI_NUM_CLKS,
|
|
|
|
};
|
|
|
|
|
2015-09-29 15:44:01 +00:00
|
|
|
struct da7219_pdata {
|
2016-09-26 13:29:21 +00:00
|
|
|
bool wakeup_source;
|
|
|
|
|
2019-03-19 17:49:31 +00:00
|
|
|
const char *dai_clk_names[DA7219_DAI_NUM_CLKS];
|
2018-03-09 16:25:43 +00:00
|
|
|
|
2015-09-29 15:44:01 +00:00
|
|
|
/* Mic */
|
|
|
|
enum da7219_micbias_voltage micbias_lvl;
|
|
|
|
enum da7219_mic_amp_in_sel mic_amp_in_sel;
|
|
|
|
|
|
|
|
/* AAD */
|
|
|
|
struct da7219_aad_pdata *aad_pdata;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __DA7219_PDATA_H */
|