aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/arizona
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-28 11:47:37 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2013-02-13 18:22:48 -0500
commit3d91f8282c66d9edafa3980385324ce6a48edcda (patch)
treea847372ae3547ba5887c29b8047b97f48dddf551 /include/linux/mfd/arizona
parent648a98808c6319dde03b64550dc64a61aaccc2b4 (diff)
mfd: arizona: Provide platform data for MICBIAS configuration
Allow the MICBIAS voltages and other attributes to be configured by the platform. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd/arizona')
-rw-r--r--include/linux/mfd/arizona/pdata.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/pdata.h b/include/linux/mfd/arizona/pdata.h
index 8b1d1daaae16..37894d6a4f6f 100644
--- a/include/linux/mfd/arizona/pdata.h
+++ b/include/linux/mfd/arizona/pdata.h
@@ -56,6 +56,8 @@
56#define ARIZONA_DMIC_MICBIAS2 2 56#define ARIZONA_DMIC_MICBIAS2 2
57#define ARIZONA_DMIC_MICBIAS3 3 57#define ARIZONA_DMIC_MICBIAS3 3
58 58
59#define ARIZONA_MAX_MICBIAS 3
60
59#define ARIZONA_INMODE_DIFF 0 61#define ARIZONA_INMODE_DIFF 0
60#define ARIZONA_INMODE_SE 1 62#define ARIZONA_INMODE_SE 1
61#define ARIZONA_INMODE_DMIC 2 63#define ARIZONA_INMODE_DMIC 2
@@ -69,6 +71,13 @@
69 71
70struct regulator_init_data; 72struct regulator_init_data;
71 73
74struct arizona_micbias {
75 int mV; /** Regulated voltage */
76 unsigned int ext_cap:1; /** External capacitor fitted */
77 unsigned int discharge:1; /** Actively discharge */
78 unsigned int fast_start:1; /** Enable aggressive startup ramp rate */
79};
80
72struct arizona_micd_config { 81struct arizona_micd_config {
73 unsigned int src; 82 unsigned int src;
74 unsigned int bias; 83 unsigned int bias;
@@ -106,6 +115,9 @@ struct arizona_pdata {
106 /** Reference voltage for DMIC inputs */ 115 /** Reference voltage for DMIC inputs */
107 int dmic_ref[ARIZONA_MAX_INPUT]; 116 int dmic_ref[ARIZONA_MAX_INPUT];
108 117
118 /** MICBIAS configurations */
119 struct arizona_micbias micbias[ARIZONA_MAX_MICBIAS];
120
109 /** Mode of input structures */ 121 /** Mode of input structures */
110 int inmode[ARIZONA_MAX_INPUT]; 122 int inmode[ARIZONA_MAX_INPUT];
111 123