gpio: madera: Add support for CS47L15
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 6 Jul 2016 13:48:16 +0000 (14:48 +0100)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:28 +0000 (20:22 +0300)
Change-Id: Ib8ecd3cf4447d7a1c9ea9667df71bc853e572f6b
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
drivers/gpio/gpio-madera.c
include/linux/mfd/madera/core.h

index 1ef377ef4a74c2b4e3c3e4bd340cb92413775241..82c7a6223ab9b38f0c9a7c8351c0eb71e47e4a93 100644 (file)
@@ -140,6 +140,9 @@ static int madera_gpio_probe(struct platform_device *pdev)
                madera_gpio->gpio_chip.of_node = madera->dev->of_node;
 
        switch (madera->type) {
+       case CS47L15:
+               madera_gpio->gpio_chip.ngpio = CS47L15_NUM_GPIOS;
+               break;
        case CS47L35:
                madera_gpio->gpio_chip.ngpio = CS47L35_NUM_GPIOS;
                break;
index 6a020a8a826803bf2d315a556e01080d6ecf4e77..8673d7339119679517f32a03883d315a09cd621d 100644 (file)
@@ -34,6 +34,7 @@ enum madera_type {
 #define MADERA_MAX_CORE_SUPPLIES       2
 #define MADERA_MAX_GPIOS               40
 
+#define CS47L15_NUM_GPIOS              15
 #define CS47L35_NUM_GPIOS              16
 #define CS47L85_NUM_GPIOS              40
 #define CS47L90_NUM_GPIOS              38