]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: rmobile: Switch to DM PFC pinmux and GPIO driver
authorMarek Vasut <marek.vasut@gmail.com>
Fri, 15 Sep 2017 19:13:57 +0000 (21:13 +0200)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 27 Sep 2017 21:54:06 +0000 (06:54 +0900)
Enable the PFC pinmux and GPIO drivers and disable the SH GPIO combo
driver. This allows the drivers to obtain pinmux and GPIO configuration
from DT rather than hard-coding it in board files.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/salvator-x/salvator-x.c
board/renesas/ulcb/ulcb.c
configs/r8a7795_salvator-x_defconfig
configs/r8a7795_ulcb_defconfig
configs/r8a7796_salvator-x_defconfig
configs/r8a7796_ulcb_defconfig
include/configs/rcar-gen3-common.h

index 78fc22a0e86ee3ba6e45785713f6e3bb7f4f4e43..9d9de58370413cbb927298f28b5bda6e8af2eb2f 100644 (file)
@@ -82,12 +82,14 @@ int board_init(void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
 
+#ifdef CONFIG_SH_GPIO_PFC
        /* Init PFC controller */
 #if defined(CONFIG_R8A7795)
        r8a7795_pinmux_init();
 #elif defined(CONFIG_R8A7796)
        r8a7796_pinmux_init();
 #endif
+#endif
 
 #if defined(CONFIG_R8A7795)
        /* GSX: force power and clock supply */
index 9b96645d1183ccfaf6bea86c407b7ebe3182c349..3ee6990b57ba1cc3d7ec01753bd82652cbecc77a 100644 (file)
@@ -81,11 +81,13 @@ int board_init(void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = CONFIG_SYS_TEXT_BASE + 0x50000;
 
+#ifdef CONFIG_SH_GPIO_PFC
        /* Init PFC controller */
 #if defined(CONFIG_R8A7795)
        r8a7795_pinmux_init();
 #elif defined(CONFIG_R8A7796)
        r8a7796_pinmux_init();
+#endif
 #endif
 
        /* USB1 pull-up */
index 0cb1d8ad792398c9973c8f8930b66e56c869eef2..ac155180842ecbdc36e6f4a120b9d4019be05c51 100644 (file)
@@ -29,12 +29,16 @@ CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_CLK=y
 CONFIG_CLK_RENESAS=y
+CONFIG_DM_GPIO=y
+CONFIG_RCAR_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_UNIPHIER=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_DM_ETH=y
 CONFIG_RENESAS_RAVB=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_PFC=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
index 32f1d9e6eba5db95884ff29fb3cc78d2e749fa0f..d4c922d9975da6877be6006cd27d811029c52c5c 100644 (file)
@@ -28,10 +28,14 @@ CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_CLK=y
 CONFIG_CLK_RENESAS=y
+CONFIG_DM_GPIO=y
+CONFIG_RCAR_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_UNIPHIER=y
 CONFIG_DM_ETH=y
 CONFIG_RENESAS_RAVB=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_PFC=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
index 6224bbe7a4ea9ebebbf2749c0e642481c2cbbc85..9ef191fccca8400688b4fe468b80ba59774fb25b 100644 (file)
@@ -30,12 +30,16 @@ CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_CLK=y
 CONFIG_CLK_RENESAS=y
+CONFIG_DM_GPIO=y
+CONFIG_RCAR_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_UNIPHIER=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_DM_ETH=y
 CONFIG_RENESAS_RAVB=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_PFC=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
index 0bcbc785b18614e675618c6cca35671a03b48c52..ab21008a2c8439634d22b0c7cd395a9e105f407a 100644 (file)
@@ -29,10 +29,14 @@ CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_CLK=y
 CONFIG_CLK_RENESAS=y
+CONFIG_DM_GPIO=y
+CONFIG_RCAR_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_UNIPHIER=y
 CONFIG_DM_ETH=y
 CONFIG_RENESAS_RAVB=y
+CONFIG_PINCTRL=y
+CONFIG_PINCTRL_PFC=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
index 6ed08e5bfcfd002c3c4e8b3477db4ead55f98c4d..6deed0dcd70af394e99b814f2fbcdaa1f6760d21 100644 (file)
@@ -31,8 +31,6 @@
 
 #define CONFIG_ARCH_CPU_INIT
 
-#define CONFIG_SH_GPIO_PFC
-
 /* console */
 #define CONFIG_SYS_CBSIZE              2048
 #define CONFIG_SYS_BARGSIZE            CONFIG_SYS_CBSIZE