| From 8d76055f6c1e40f996a3cb7474a73b56431c81cc Mon Sep 17 00:00:00 2001 |
| From: Takeshi Kihara <takeshi.kihara.df@renesas.com> |
| Date: Tue, 27 Feb 2018 17:08:01 +0900 |
| Subject: [PATCH 0869/1795] pinctrl: sh-pfc: r8a77965: Add USB2.0 host pins, |
| groups and functions |
| |
| This patch adds USB{0,1} (USB2.0 host) pins, groups and functions 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 0d75f8dae3e1a086f72a887b2053dfd0de70c9cd) |
| 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 | 32 +++++++++++++++++++++++++++ |
| 1 file changed, 32 insertions(+) |
| |
| diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c |
| index 363ccc3b1bdc..f669944e0f70 100644 |
| --- a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c |
| +++ b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c |
| @@ -1917,6 +1917,26 @@ static const unsigned int scif_clk_b_mux[] = { |
| SCIF_CLK_B_MARK, |
| }; |
| |
| +/* - USB0 ------------------------------------------------------------------- */ |
| +static const unsigned int usb0_pins[] = { |
| + /* PWEN, OVC */ |
| + RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25), |
| +}; |
| + |
| +static const unsigned int usb0_mux[] = { |
| + USB0_PWEN_MARK, USB0_OVC_MARK, |
| +}; |
| + |
| +/* - USB1 ------------------------------------------------------------------- */ |
| +static const unsigned int usb1_pins[] = { |
| + /* PWEN, OVC */ |
| + RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27), |
| +}; |
| + |
| +static const unsigned int usb1_mux[] = { |
| + USB1_PWEN_MARK, USB1_OVC_MARK, |
| +}; |
| + |
| static const struct sh_pfc_pin_group pinmux_groups[] = { |
| SH_PFC_PIN_GROUP(avb_link), |
| SH_PFC_PIN_GROUP(avb_magic), |
| @@ -1963,6 +1983,8 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { |
| SH_PFC_PIN_GROUP(scif5_clk_b), |
| SH_PFC_PIN_GROUP(scif_clk_a), |
| SH_PFC_PIN_GROUP(scif_clk_b), |
| + SH_PFC_PIN_GROUP(usb0), |
| + SH_PFC_PIN_GROUP(usb1), |
| }; |
| |
| static const char * const avb_groups[] = { |
| @@ -2036,6 +2058,14 @@ static const char * const scif_clk_groups[] = { |
| "scif_clk_b", |
| }; |
| |
| +static const char * const usb0_groups[] = { |
| + "usb0", |
| +}; |
| + |
| +static const char * const usb1_groups[] = { |
| + "usb1", |
| +}; |
| + |
| static const struct sh_pfc_function pinmux_functions[] = { |
| SH_PFC_FUNCTION(avb), |
| SH_PFC_FUNCTION(intc_ex), |
| @@ -2046,6 +2076,8 @@ static const struct sh_pfc_function pinmux_functions[] = { |
| SH_PFC_FUNCTION(scif4), |
| SH_PFC_FUNCTION(scif5), |
| SH_PFC_FUNCTION(scif_clk), |
| + SH_PFC_FUNCTION(usb0), |
| + SH_PFC_FUNCTION(usb1), |
| }; |
| |
| static const struct pinmux_cfg_reg pinmux_config_regs[] = { |
| -- |
| 2.19.0 |
| |