aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/arizona/pdata.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-17 02:35:14 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-21 03:47:39 -0500
commitc94aa30edac4d328674e9c127918317009d30c1a (patch)
tree42870cb5423f9cabcc901eb6591ca2c212628062 /include/linux/mfd/arizona/pdata.h
parentf2c26d48d9c6e91c6b9c914f215952400e6f889b (diff)
ASoC: arizona: Allow number of channels clocked to be restricted
Place a cap on the number of channels clocks are generated for. This is intended for use with systems which have the WM5102 master an I2S bus with multiple data lines. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/mfd/arizona/pdata.h')
-rw-r--r--include/linux/mfd/arizona/pdata.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/pdata.h b/include/linux/mfd/arizona/pdata.h
index 8b1d1daaae16..ec3e2a2a6d77 100644
--- a/include/linux/mfd/arizona/pdata.h
+++ b/include/linux/mfd/arizona/pdata.h
@@ -62,6 +62,8 @@
62 62
63#define ARIZONA_MAX_OUTPUT 6 63#define ARIZONA_MAX_OUTPUT 6
64 64
65#define ARIZONA_MAX_AIF 3
66
65#define ARIZONA_HAP_ACT_ERM 0 67#define ARIZONA_HAP_ACT_ERM 0
66#define ARIZONA_HAP_ACT_LRA 2 68#define ARIZONA_HAP_ACT_LRA 2
67 69
@@ -96,6 +98,13 @@ struct arizona_pdata {
96 /** Pin state for GPIO pins */ 98 /** Pin state for GPIO pins */
97 int gpio_defaults[ARIZONA_MAX_GPIO]; 99 int gpio_defaults[ARIZONA_MAX_GPIO];
98 100
101 /**
102 * Maximum number of channels clocks will be generated for,
103 * useful for systems where and I2S bus with multiple data
104 * lines is mastered.
105 */
106 int max_channels_clocked[ARIZONA_MAX_AIF];
107
99 /** GPIO for mic detection polarity */ 108 /** GPIO for mic detection polarity */
100 int micd_pol_gpio; 109 int micd_pol_gpio;
101 110