]> git.karo-electronics.de Git - karo-tx-uboot.git/commitdiff
pinctrl: uniphier: support UniPhier PH1-LD11 pinctrl driver
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 24 Mar 2016 13:32:47 +0000 (22:32 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 31 Mar 2016 15:57:19 +0000 (00:57 +0900)
The pinmux of PH1-LD11 is almost a subset of that of PH1-LD20
(as far as used in boot-loader), so this commit makes the driver
shared between the two SoCs.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/pinctrl/uniphier/Kconfig
drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c

index 626df8e79686966e79bf9b3fc5010b04d21e9a1a..1856ff0966ec2a2f5414a18cdf4de05edc2aafff 100644 (file)
@@ -40,8 +40,8 @@ config PINCTRL_UNIPHIER_LD6B
        select PINCTRL_UNIPHIER
 
 config PINCTRL_UNIPHIER_LD20
-       bool "UniPhier PH1-LD20 SoC pinctrl driver"
-       depends on ARCH_UNIPHIER_LD20
+       bool "UniPhier PH1-LD11/PH1-LD20 SoC pinctrl driver"
+       depends on ARCH_UNIPHIER_LD11 || ARCH_UNIPHIER_LD20
        default y
        select PINCTRL_UNIPHIER
 
index 8cb800335a18f04042acd05521dcea71b475f826..3d5ac5f49d0ff46b56e9af123c15c422e0c0a114 100644 (file)
@@ -55,7 +55,7 @@ static const struct uniphier_pinctrl_group uniphier_ld20_groups[] = {
        UNIPHIER_PINCTRL_GROUP(i2c4),
        UNIPHIER_PINCTRL_GROUP(nand),
        UNIPHIER_PINCTRL_GROUP(nand_cs1),
-       UNIPHIER_PINCTRL_GROUP(sd),
+       UNIPHIER_PINCTRL_GROUP(sd),     /* SD does not exist for LD11 */
        UNIPHIER_PINCTRL_GROUP(uart0),
        UNIPHIER_PINCTRL_GROUP(uart1),
        UNIPHIER_PINCTRL_GROUP(uart2),
@@ -63,7 +63,7 @@ static const struct uniphier_pinctrl_group uniphier_ld20_groups[] = {
        UNIPHIER_PINCTRL_GROUP(usb0),
        UNIPHIER_PINCTRL_GROUP(usb1),
        UNIPHIER_PINCTRL_GROUP(usb2),
-       UNIPHIER_PINCTRL_GROUP(usb3),
+       UNIPHIER_PINCTRL_GROUP(usb3),   /* USB3 does not exist for LD11 */
 };
 
 static const char * const uniphier_ld20_functions[] = {
@@ -73,7 +73,7 @@ static const char * const uniphier_ld20_functions[] = {
        "i2c3",
        "i2c4",
        "nand",
-       "sd",
+       "sd",           /* SD does not exist for LD11 */
        "uart0",
        "uart1",
        "uart2",
@@ -81,7 +81,7 @@ static const char * const uniphier_ld20_functions[] = {
        "usb0",
        "usb1",
        "usb2",
-       "usb3",
+       "usb3",         /* USB3 does not exist for LD11 */
 };
 
 static struct uniphier_pinctrl_socdata uniphier_ld20_pinctrl_socdata = {
@@ -98,6 +98,7 @@ static int uniphier_ld20_pinctrl_probe(struct udevice *dev)
 }
 
 static const struct udevice_id uniphier_ld20_pinctrl_match[] = {
+       { .compatible = "socionext,ph1-ld11-pinctrl" },
        { .compatible = "socionext,ph1-ld20-pinctrl" },
        { /* sentinel */ }
 };