Commit a6aa1c7b authored by Laurent Pinchart's avatar Laurent Pinchart

sh-pfc: sh73a0: Add USB pin groups and functions

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e24c62a6
...@@ -2909,6 +2909,14 @@ static const unsigned int sdhi2_ctrl_pins[] = { ...@@ -2909,6 +2909,14 @@ static const unsigned int sdhi2_ctrl_pins[] = {
static const unsigned int sdhi2_ctrl_mux[] = { static const unsigned int sdhi2_ctrl_mux[] = {
SDHICMD2_MARK, SDHICLK2_MARK, SDHICMD2_MARK, SDHICLK2_MARK,
}; };
/* - USB -------------------------------------------------------------------- */
static const unsigned int usb_vbus_pins[] = {
/* VBUS */
0,
};
static const unsigned int usb_vbus_mux[] = {
VBUS_0_MARK,
};
static const struct sh_pfc_pin_group pinmux_groups[] = { static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP(bsc_data_0_7), SH_PFC_PIN_GROUP(bsc_data_0_7),
...@@ -3050,6 +3058,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { ...@@ -3050,6 +3058,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
SH_PFC_PIN_GROUP(sdhi2_data1), SH_PFC_PIN_GROUP(sdhi2_data1),
SH_PFC_PIN_GROUP(sdhi2_data4), SH_PFC_PIN_GROUP(sdhi2_data4),
SH_PFC_PIN_GROUP(sdhi2_ctrl), SH_PFC_PIN_GROUP(sdhi2_ctrl),
SH_PFC_PIN_GROUP(usb_vbus),
}; };
static const char * const bsc_groups[] = { static const char * const bsc_groups[] = {
...@@ -3259,6 +3268,10 @@ static const char * const sdhi2_groups[] = { ...@@ -3259,6 +3268,10 @@ static const char * const sdhi2_groups[] = {
"sdhi2_ctrl", "sdhi2_ctrl",
}; };
static const char * const usb_groups[] = {
"usb_vbus",
};
static const struct sh_pfc_function pinmux_functions[] = { static const struct sh_pfc_function pinmux_functions[] = {
SH_PFC_FUNCTION(bsc), SH_PFC_FUNCTION(bsc),
SH_PFC_FUNCTION(fsia), SH_PFC_FUNCTION(fsia),
...@@ -3283,6 +3296,7 @@ static const struct sh_pfc_function pinmux_functions[] = { ...@@ -3283,6 +3296,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
SH_PFC_FUNCTION(sdhi0), SH_PFC_FUNCTION(sdhi0),
SH_PFC_FUNCTION(sdhi1), SH_PFC_FUNCTION(sdhi1),
SH_PFC_FUNCTION(sdhi2), SH_PFC_FUNCTION(sdhi2),
SH_PFC_FUNCTION(usb),
}; };
#define PINMUX_FN_BASE GPIO_FN_VBUS_0 #define PINMUX_FN_BASE GPIO_FN_VBUS_0
......
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