aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-03-07 07:38:51 -0500
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-03-15 08:34:08 -0400
commit97d40c4224172451f666febdd865c24b1c3c3fe5 (patch)
treebea7680765734a7edf9e312db71a36b66e463fc9 /drivers/pinctrl
parent0f6e2e0e4e3cf5899c9acf03884991bb67301132 (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.c42
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[] = {
2198static const unsigned int sdhi3_wp_mux[] = { 2198static const unsigned int sdhi3_wp_mux[] = {
2199 SD3_WP_MARK, 2199 SD3_WP_MARK,
2200}; 2200};
2201/* - USB0 ------------------------------------------------------------------- */
2202static const unsigned int usb0_pins[] = {
2203 /* OVC */
2204 150, 154,
2205};
2206static const unsigned int usb0_mux[] = {
2207 USB_OVC0_MARK, USB_PENC0_MARK,
2208};
2209/* - USB1 ------------------------------------------------------------------- */
2210static const unsigned int usb1_pins[] = {
2211 /* OVC */
2212 152, 155,
2213};
2214static const unsigned int usb1_mux[] = {
2215 USB_OVC1_MARK, USB_PENC1_MARK,
2216};
2217/* - USB2 ------------------------------------------------------------------- */
2218static const unsigned int usb2_pins[] = {
2219 /* OVC, PENC */
2220 125, 156,
2221};
2222static const unsigned int usb2_mux[] = {
2223 USB_OVC2_MARK, USB_PENC2_MARK,
2224};
2201 2225
2202static const struct sh_pfc_pin_group pinmux_groups[] = { 2226static 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
2306static const char * const du0_groups[] = { 2333static 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
2485static const char * const usb0_groups[] = {
2486 "usb0",
2487};
2488
2489static const char * const usb1_groups[] = {
2490 "usb1",
2491};
2492
2493static const char * const usb2_groups[] = {
2494 "usb2",
2495};
2496
2458static const struct sh_pfc_function pinmux_functions[] = { 2497static 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)