| From 55c05f0737600c0467001a83c5ba1fc5110e3111 Mon Sep 17 00:00:00 2001 |
| From: Takeshi Kihara <takeshi.kihara.df@renesas.com> |
| Date: Tue, 27 Feb 2018 17:08:02 +0900 |
| Subject: [PATCH 0870/1795] pinctrl: sh-pfc: r8a77965: Add USB3.0 host pins, |
| groups and functions |
| |
| This patch adds USB30 (USB3.0 host) pin, group and function to |
| the R8A77965 SoC. |
| |
| Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> |
| Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| (cherry picked from commit c490b28f36ac225799df3f36eca03b4801bd0eec) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 16 ++++++++++++++++ |
| 1 file changed, 16 insertions(+) |
| |
| diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c |
| index f669944e0f70..ce2e85033ff4 100644 |
| --- a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c |
| +++ b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c |
| @@ -1937,6 +1937,16 @@ static const unsigned int usb1_mux[] = { |
| USB1_PWEN_MARK, USB1_OVC_MARK, |
| }; |
| |
| +/* - USB30 ------------------------------------------------------------------ */ |
| +static const unsigned int usb30_pins[] = { |
| + /* PWEN, OVC */ |
| + RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29), |
| +}; |
| + |
| +static const unsigned int usb30_mux[] = { |
| + USB30_PWEN_MARK, USB30_OVC_MARK, |
| +}; |
| + |
| static const struct sh_pfc_pin_group pinmux_groups[] = { |
| SH_PFC_PIN_GROUP(avb_link), |
| SH_PFC_PIN_GROUP(avb_magic), |
| @@ -1985,6 +1995,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { |
| SH_PFC_PIN_GROUP(scif_clk_b), |
| SH_PFC_PIN_GROUP(usb0), |
| SH_PFC_PIN_GROUP(usb1), |
| + SH_PFC_PIN_GROUP(usb30), |
| }; |
| |
| static const char * const avb_groups[] = { |
| @@ -2066,6 +2077,10 @@ static const char * const usb1_groups[] = { |
| "usb1", |
| }; |
| |
| +static const char * const usb30_groups[] = { |
| + "usb30", |
| +}; |
| + |
| static const struct sh_pfc_function pinmux_functions[] = { |
| SH_PFC_FUNCTION(avb), |
| SH_PFC_FUNCTION(intc_ex), |
| @@ -2078,6 +2093,7 @@ static const struct sh_pfc_function pinmux_functions[] = { |
| SH_PFC_FUNCTION(scif_clk), |
| SH_PFC_FUNCTION(usb0), |
| SH_PFC_FUNCTION(usb1), |
| + SH_PFC_FUNCTION(usb30), |
| }; |
| |
| static const struct pinmux_cfg_reg pinmux_config_regs[] = { |
| -- |
| 2.19.0 |
| |