Commit e3a0871c authored by Philippe Rétornaz's avatar Philippe Rétornaz Committed by Mark Brown

mfd: mc13xxx: add codec platform data

Signed-off-by: default avatarPhilippe Rétornaz <philippe.retornaz@epfl.ch>
Acked-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent fe33d4c5
...@@ -813,7 +813,8 @@ static int mc13xxx_probe(struct spi_device *spi) ...@@ -813,7 +813,8 @@ static int mc13xxx_probe(struct spi_device *spi)
mc13xxx_add_subdevice(mc13xxx, "%s-adc"); mc13xxx_add_subdevice(mc13xxx, "%s-adc");
if (mc13xxx->flags & MC13XXX_USE_CODEC) if (mc13xxx->flags & MC13XXX_USE_CODEC)
mc13xxx_add_subdevice(mc13xxx, "%s-codec"); mc13xxx_add_subdevice_pdata(mc13xxx, "%s-codec",
pdata->codec, sizeof(*pdata->codec));
if (mc13xxx->flags & MC13XXX_USE_RTC) if (mc13xxx->flags & MC13XXX_USE_RTC)
mc13xxx_add_subdevice(mc13xxx, "%s-rtc"); mc13xxx_add_subdevice(mc13xxx, "%s-rtc");
......
...@@ -170,6 +170,16 @@ struct mc13xxx_ts_platform_data { ...@@ -170,6 +170,16 @@ struct mc13xxx_ts_platform_data {
bool atox; bool atox;
}; };
enum mc13783_ssi_port {
MC13783_SSI1_PORT,
MC13783_SSI2_PORT,
};
struct mc13xxx_codec_platform_data {
enum mc13783_ssi_port adc_ssi_port;
enum mc13783_ssi_port dac_ssi_port;
};
struct mc13xxx_platform_data { struct mc13xxx_platform_data {
#define MC13XXX_USE_TOUCHSCREEN (1 << 0) #define MC13XXX_USE_TOUCHSCREEN (1 << 0)
#define MC13XXX_USE_CODEC (1 << 1) #define MC13XXX_USE_CODEC (1 << 1)
...@@ -181,6 +191,7 @@ struct mc13xxx_platform_data { ...@@ -181,6 +191,7 @@ struct mc13xxx_platform_data {
struct mc13xxx_leds_platform_data *leds; struct mc13xxx_leds_platform_data *leds;
struct mc13xxx_buttons_platform_data *buttons; struct mc13xxx_buttons_platform_data *buttons;
struct mc13xxx_ts_platform_data touch; struct mc13xxx_ts_platform_data touch;
struct mc13xxx_codec_platform_data *codec;
}; };
#define MC13XXX_ADC_MODE_TS 1 #define MC13XXX_ADC_MODE_TS 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment