diff options
author | Valentine Barshak <valentine.barshak@cogentembedded.com> | 2013-12-20 09:14:24 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-01-07 10:48:46 -0500 |
commit | 5e5a298cdb7c7e2eeb3d5d74e1b0a638d14cdd14 (patch) | |
tree | 02e7046265f4057ef9b250a3159b4835289a930d /drivers/pinctrl/sh-pfc/pfc-r8a7791.c | |
parent | 646ae3ef7eaa8199aea38d042954a6f911477528 (diff) |
pinctrl: sh-pfc: r8a7791: Group USB PWEN and OVC pins together
This groups USB PWEN and OVC pins together on R8A7791 SoC,
the same way it's done on R8A7790, since both are needed
for a USB device.
Signed-off-by: Valentine Barshak <valentine.barshak@cogentembedded.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-r8a7791.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 40 |
1 files changed, 12 insertions, 28 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c index d73a5f312777..70a74da35379 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c | |||
@@ -2649,33 +2649,21 @@ static const unsigned int sdhi2_wp_mux[] = { | |||
2649 | SD2_WP_MARK, | 2649 | SD2_WP_MARK, |
2650 | }; | 2650 | }; |
2651 | /* - USB0 ------------------------------------------------------------------- */ | 2651 | /* - USB0 ------------------------------------------------------------------- */ |
2652 | static const unsigned int usb0_pwen_pins[] = { | 2652 | static const unsigned int usb0_pins[] = { |
2653 | /* PWEN */ | 2653 | RCAR_GP_PIN(7, 23), /* PWEN */ |
2654 | RCAR_GP_PIN(7, 23), | 2654 | RCAR_GP_PIN(7, 24), /* OVC */ |
2655 | }; | 2655 | }; |
2656 | static const unsigned int usb0_pwen_mux[] = { | 2656 | static const unsigned int usb0_mux[] = { |
2657 | USB0_PWEN_MARK, | 2657 | USB0_PWEN_MARK, |
2658 | }; | ||
2659 | static const unsigned int usb0_ovc_pins[] = { | ||
2660 | /* OVC */ | ||
2661 | RCAR_GP_PIN(7, 24), | ||
2662 | }; | ||
2663 | static const unsigned int usb0_ovc_mux[] = { | ||
2664 | USB0_OVC_MARK, | 2658 | USB0_OVC_MARK, |
2665 | }; | 2659 | }; |
2666 | /* - USB1 ------------------------------------------------------------------- */ | 2660 | /* - USB1 ------------------------------------------------------------------- */ |
2667 | static const unsigned int usb1_pwen_pins[] = { | 2661 | static const unsigned int usb1_pins[] = { |
2668 | /* PWEN */ | 2662 | RCAR_GP_PIN(7, 25), /* PWEN */ |
2669 | RCAR_GP_PIN(7, 25), | 2663 | RCAR_GP_PIN(6, 30), /* OVC */ |
2670 | }; | 2664 | }; |
2671 | static const unsigned int usb1_pwen_mux[] = { | 2665 | static const unsigned int usb1_mux[] = { |
2672 | USB1_PWEN_MARK, | 2666 | USB1_PWEN_MARK, |
2673 | }; | ||
2674 | static const unsigned int usb1_ovc_pins[] = { | ||
2675 | /* OVC */ | ||
2676 | RCAR_GP_PIN(6, 30), | ||
2677 | }; | ||
2678 | static const unsigned int usb1_ovc_mux[] = { | ||
2679 | USB1_OVC_MARK, | 2667 | USB1_OVC_MARK, |
2680 | }; | 2668 | }; |
2681 | 2669 | ||
@@ -2810,10 +2798,8 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
2810 | SH_PFC_PIN_GROUP(sdhi2_ctrl), | 2798 | SH_PFC_PIN_GROUP(sdhi2_ctrl), |
2811 | SH_PFC_PIN_GROUP(sdhi2_cd), | 2799 | SH_PFC_PIN_GROUP(sdhi2_cd), |
2812 | SH_PFC_PIN_GROUP(sdhi2_wp), | 2800 | SH_PFC_PIN_GROUP(sdhi2_wp), |
2813 | SH_PFC_PIN_GROUP(usb0_pwen), | 2801 | SH_PFC_PIN_GROUP(usb0), |
2814 | SH_PFC_PIN_GROUP(usb0_ovc), | 2802 | SH_PFC_PIN_GROUP(usb1), |
2815 | SH_PFC_PIN_GROUP(usb1_pwen), | ||
2816 | SH_PFC_PIN_GROUP(usb1_ovc), | ||
2817 | }; | 2803 | }; |
2818 | 2804 | ||
2819 | static const char * const du_groups[] = { | 2805 | static const char * const du_groups[] = { |
@@ -3016,12 +3002,10 @@ static const char * const sdhi2_groups[] = { | |||
3016 | }; | 3002 | }; |
3017 | 3003 | ||
3018 | static const char * const usb0_groups[] = { | 3004 | static const char * const usb0_groups[] = { |
3019 | "usb0_pwen", | 3005 | "usb0", |
3020 | "usb0_ovc", | ||
3021 | }; | 3006 | }; |
3022 | static const char * const usb1_groups[] = { | 3007 | static const char * const usb1_groups[] = { |
3023 | "usb1_pwen", | 3008 | "usb1", |
3024 | "usb1_ovc", | ||
3025 | }; | 3009 | }; |
3026 | 3010 | ||
3027 | static const struct sh_pfc_function pinmux_functions[] = { | 3011 | static const struct sh_pfc_function pinmux_functions[] = { |