Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f814def5 authored by Takeshi Kihara's avatar Takeshi Kihara Committed by Geert Uytterhoeven
Browse files

pinctrl: sh-pfc: r8a77995: Add USB2.0 host support

parent 66abd968
Loading
Loading
Loading
Loading
+15 −0
Original line number Original line Diff line number Diff line
@@ -1295,6 +1295,15 @@ static const unsigned int scif_clk_mux[] = {
	SCIF_CLK_MARK,
	SCIF_CLK_MARK,
};
};


/* - USB0 ------------------------------------------------------------------- */
static const unsigned int usb0_pins[] = {
	/* PWEN, OVC */
	RCAR_GP_PIN(0, 0), RCAR_GP_PIN(0, 1),
};
static const unsigned int usb0_mux[] = {
	USB0_PWEN_MARK, USB0_OVC_MARK,
};

static const struct sh_pfc_pin_group pinmux_groups[] = {
static const struct sh_pfc_pin_group pinmux_groups[] = {
	SH_PFC_PIN_GROUP(avb0_link),
	SH_PFC_PIN_GROUP(avb0_link),
	SH_PFC_PIN_GROUP(avb0_magic),
	SH_PFC_PIN_GROUP(avb0_magic),
@@ -1342,6 +1351,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
	SH_PFC_PIN_GROUP(scif5_data_b),
	SH_PFC_PIN_GROUP(scif5_data_b),
	SH_PFC_PIN_GROUP(scif5_clk_b),
	SH_PFC_PIN_GROUP(scif5_clk_b),
	SH_PFC_PIN_GROUP(scif_clk),
	SH_PFC_PIN_GROUP(scif_clk),
	SH_PFC_PIN_GROUP(usb0),
};
};


static const char * const avb0_groups[] = {
static const char * const avb0_groups[] = {
@@ -1428,6 +1438,10 @@ static const char * const scif_clk_groups[] = {
	"scif_clk",
	"scif_clk",
};
};


static const char * const usb0_groups[] = {
	"usb0",
};

static const struct sh_pfc_function pinmux_functions[] = {
static const struct sh_pfc_function pinmux_functions[] = {
	SH_PFC_FUNCTION(avb0),
	SH_PFC_FUNCTION(avb0),
	SH_PFC_FUNCTION(i2c0),
	SH_PFC_FUNCTION(i2c0),
@@ -1442,6 +1456,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
	SH_PFC_FUNCTION(scif4),
	SH_PFC_FUNCTION(scif4),
	SH_PFC_FUNCTION(scif5),
	SH_PFC_FUNCTION(scif5),
	SH_PFC_FUNCTION(scif_clk),
	SH_PFC_FUNCTION(scif_clk),
	SH_PFC_FUNCTION(usb0),
};
};


static const struct pinmux_cfg_reg pinmux_config_regs[] = {
static const struct pinmux_cfg_reg pinmux_config_regs[] = {