mfd: dln2: add support for USB-SPI module
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Fri, 7 Nov 2014 12:45:14 +0000 (14:45 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 25 Nov 2014 16:18:57 +0000 (16:18 +0000)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
drivers/mfd/dln2.c

index 559e6cc3e022f3dda0ae606e3d029f4cea4fcbd8..6d49685d4ee4f48f1459258fabaad6d47a3b097b 100644 (file)
@@ -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)