summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/dln2.c
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-11-07 13:45:14 +0100
committerLee Jones <lee.jones@linaro.org>2014-11-25 17:18:57 +0100
commit21cf3318d675b6ceeb5a3ed82ffe467a2b6eaee4 (patch)
tree16127948869efd52cefd293d22786030983ac396 /drivers/mfd/dln2.c
parentmfd: wm5110: Add missing registers for AIF2 channels 3-6 (diff)
downloadlinux-21cf3318d675b6ceeb5a3ed82ffe467a2b6eaee4.tar.xz
linux-21cf3318d675b6ceeb5a3ed82ffe467a2b6eaee4.zip
mfd: dln2: add support for USB-SPI module
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Diffstat (limited to 'drivers/mfd/dln2.c')
-rw-r--r--drivers/mfd/dln2.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/mfd/dln2.c b/drivers/mfd/dln2.c
index 559e6cc3e022..6d49685d4ee4 100644
--- a/drivers/mfd/dln2.c
+++ b/drivers/mfd/dln2.c
@@ -52,6 +52,7 @@ enum dln2_handle {
DLN2_HANDLE_CTRL,
DLN2_HANDLE_GPIO,
DLN2_HANDLE_I2C,
+ DLN2_HANDLE_SPI,
DLN2_HANDLES
};
@@ -640,6 +641,12 @@ static struct dln2_platform_data dln2_pdata_i2c = {
.port = 0,
};
+/* Only one SPI port supported */
+static struct dln2_platform_data dln2_pdata_spi = {
+ .handle = DLN2_HANDLE_SPI,
+ .port = 0,
+};
+
static const struct mfd_cell dln2_devs[] = {
{
.name = "dln2-gpio",
@@ -651,6 +658,11 @@ static const struct mfd_cell dln2_devs[] = {
.platform_data = &dln2_pdata_i2c,
.pdata_size = sizeof(struct dln2_platform_data),
},
+ {
+ .name = "dln2-spi",
+ .platform_data = &dln2_pdata_spi,
+ .pdata_size = sizeof(struct dln2_platform_data),
+ },
};
static void dln2_disconnect(struct usb_interface *interface)