diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-07 07:38:51 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-15 08:34:08 -0400 |
commit | 97d40c4224172451f666febdd865c24b1c3c3fe5 (patch) | |
tree | bea7680765734a7edf9e312db71a36b66e463fc9 /drivers/pinctrl | |
parent | 0f6e2e0e4e3cf5899c9acf03884991bb67301132 (diff) |
sh-pfc: r8a7779: Add USB pin groups and functions
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7779.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c index 946572bcdaac..6043d2c8dd8d 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c | |||
@@ -2198,6 +2198,30 @@ static const unsigned int sdhi3_wp_pins[] = { | |||
2198 | static const unsigned int sdhi3_wp_mux[] = { | 2198 | static const unsigned int sdhi3_wp_mux[] = { |
2199 | SD3_WP_MARK, | 2199 | SD3_WP_MARK, |
2200 | }; | 2200 | }; |
2201 | /* - USB0 ------------------------------------------------------------------- */ | ||
2202 | static const unsigned int usb0_pins[] = { | ||
2203 | /* OVC */ | ||
2204 | 150, 154, | ||
2205 | }; | ||
2206 | static const unsigned int usb0_mux[] = { | ||
2207 | USB_OVC0_MARK, USB_PENC0_MARK, | ||
2208 | }; | ||
2209 | /* - USB1 ------------------------------------------------------------------- */ | ||
2210 | static const unsigned int usb1_pins[] = { | ||
2211 | /* OVC */ | ||
2212 | 152, 155, | ||
2213 | }; | ||
2214 | static const unsigned int usb1_mux[] = { | ||
2215 | USB_OVC1_MARK, USB_PENC1_MARK, | ||
2216 | }; | ||
2217 | /* - USB2 ------------------------------------------------------------------- */ | ||
2218 | static const unsigned int usb2_pins[] = { | ||
2219 | /* OVC, PENC */ | ||
2220 | 125, 156, | ||
2221 | }; | ||
2222 | static const unsigned int usb2_mux[] = { | ||
2223 | USB_OVC2_MARK, USB_PENC2_MARK, | ||
2224 | }; | ||
2201 | 2225 | ||
2202 | static const struct sh_pfc_pin_group pinmux_groups[] = { | 2226 | static const struct sh_pfc_pin_group pinmux_groups[] = { |
2203 | SH_PFC_PIN_GROUP(du0_rgb666), | 2227 | SH_PFC_PIN_GROUP(du0_rgb666), |
@@ -2301,6 +2325,9 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
2301 | SH_PFC_PIN_GROUP(sdhi3_ctrl), | 2325 | SH_PFC_PIN_GROUP(sdhi3_ctrl), |
2302 | SH_PFC_PIN_GROUP(sdhi3_cd), | 2326 | SH_PFC_PIN_GROUP(sdhi3_cd), |
2303 | SH_PFC_PIN_GROUP(sdhi3_wp), | 2327 | SH_PFC_PIN_GROUP(sdhi3_wp), |
2328 | SH_PFC_PIN_GROUP(usb0), | ||
2329 | SH_PFC_PIN_GROUP(usb1), | ||
2330 | SH_PFC_PIN_GROUP(usb2), | ||
2304 | }; | 2331 | }; |
2305 | 2332 | ||
2306 | static const char * const du0_groups[] = { | 2333 | static const char * const du0_groups[] = { |
@@ -2455,6 +2482,18 @@ static const char * const sdhi3_groups[] = { | |||
2455 | "sdhi3_wp", | 2482 | "sdhi3_wp", |
2456 | }; | 2483 | }; |
2457 | 2484 | ||
2485 | static const char * const usb0_groups[] = { | ||
2486 | "usb0", | ||
2487 | }; | ||
2488 | |||
2489 | static const char * const usb1_groups[] = { | ||
2490 | "usb1", | ||
2491 | }; | ||
2492 | |||
2493 | static const char * const usb2_groups[] = { | ||
2494 | "usb2", | ||
2495 | }; | ||
2496 | |||
2458 | static const struct sh_pfc_function pinmux_functions[] = { | 2497 | static const struct sh_pfc_function pinmux_functions[] = { |
2459 | SH_PFC_FUNCTION(du0), | 2498 | SH_PFC_FUNCTION(du0), |
2460 | SH_PFC_FUNCTION(du1), | 2499 | SH_PFC_FUNCTION(du1), |
@@ -2473,6 +2512,9 @@ static const struct sh_pfc_function pinmux_functions[] = { | |||
2473 | SH_PFC_FUNCTION(scif3), | 2512 | SH_PFC_FUNCTION(scif3), |
2474 | SH_PFC_FUNCTION(scif4), | 2513 | SH_PFC_FUNCTION(scif4), |
2475 | SH_PFC_FUNCTION(scif5), | 2514 | SH_PFC_FUNCTION(scif5), |
2515 | SH_PFC_FUNCTION(usb0), | ||
2516 | SH_PFC_FUNCTION(usb1), | ||
2517 | SH_PFC_FUNCTION(usb2), | ||
2476 | }; | 2518 | }; |
2477 | 2519 | ||
2478 | #define PINMUX_FN_BASE ARRAY_SIZE(pinmux_pins) | 2520 | #define PINMUX_FN_BASE ARRAY_SIZE(pinmux_pins) |