Commit 5ec8a41a authored by Takeshi Kihara's avatar Takeshi Kihara Committed by Geert Uytterhoeven

pinctrl: sh-pfc: r8a7795: Add USB3.0 host support

This patch adds USB3.0 ch0 pinmux support to R8A7795 SoC.
Signed-off-by: default avatarTakeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent 3627126c
...@@ -3205,6 +3205,15 @@ static const unsigned int usb2_ch3_mux[] = { ...@@ -3205,6 +3205,15 @@ static const unsigned int usb2_ch3_mux[] = {
USB2_CH3_PWEN_MARK, USB2_CH3_OVC_MARK, USB2_CH3_PWEN_MARK, USB2_CH3_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[] = { static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP(avb_link), SH_PFC_PIN_GROUP(avb_link),
SH_PFC_PIN_GROUP(avb_magic), SH_PFC_PIN_GROUP(avb_magic),
...@@ -3425,6 +3434,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { ...@@ -3425,6 +3434,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP(usb1), SH_PFC_PIN_GROUP(usb1),
SH_PFC_PIN_GROUP(usb2), SH_PFC_PIN_GROUP(usb2),
SH_PFC_PIN_GROUP(usb2_ch3), SH_PFC_PIN_GROUP(usb2_ch3),
SH_PFC_PIN_GROUP(usb30),
}; };
static const char * const avb_groups[] = { static const char * const avb_groups[] = {
...@@ -3742,6 +3752,10 @@ static const char * const usb2_ch3_groups[] = { ...@@ -3742,6 +3752,10 @@ static const char * const usb2_ch3_groups[] = {
"usb2_ch3", "usb2_ch3",
}; };
static const char * const usb30_groups[] = {
"usb30",
};
static const struct sh_pfc_function pinmux_functions[] = { static const struct sh_pfc_function pinmux_functions[] = {
SH_PFC_FUNCTION(avb), SH_PFC_FUNCTION(avb),
SH_PFC_FUNCTION(drif0), SH_PFC_FUNCTION(drif0),
...@@ -3775,6 +3789,7 @@ static const struct sh_pfc_function pinmux_functions[] = { ...@@ -3775,6 +3789,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
SH_PFC_FUNCTION(usb1), SH_PFC_FUNCTION(usb1),
SH_PFC_FUNCTION(usb2), SH_PFC_FUNCTION(usb2),
SH_PFC_FUNCTION(usb2_ch3), SH_PFC_FUNCTION(usb2_ch3),
SH_PFC_FUNCTION(usb30),
}; };
static const struct pinmux_cfg_reg pinmux_config_regs[] = { static const struct pinmux_cfg_reg pinmux_config_regs[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment