| From 41402e148bb8fc61a9b22cbf980e1d86c8c027bb Mon Sep 17 00:00:00 2001 |
| From: Magnus Damm <damm@opensource.se> |
| Date: Thu, 30 Jan 2014 08:10:19 +0900 |
| Subject: pinctrl: sh-pfc: r8a7790: Break out USB0 OVC/VBUS |
| |
| Create a new group for the USB0 OVC/VBUS pin by itself. This |
| allows us to monitor PWEN as GPIO on the Lager board. |
| |
| Signed-off-by: Magnus Damm <damm@opensource.se> |
| Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
| Acked-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Linus Walleij <linus.walleij@linaro.org> |
| (cherry picked from commit 97e00faaf16a0642cac47937e26f437651a6b4a4) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/pinctrl/sh-pfc/pfc-r8a7790.c | 9 +++++++++ |
| 1 file changed, 9 insertions(+) |
| |
| diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c |
| index c381ae63c508..ee2ae05c23ad 100644 |
| --- a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c |
| +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c |
| @@ -3231,6 +3231,13 @@ static const unsigned int usb0_pins[] = { |
| static const unsigned int usb0_mux[] = { |
| USB0_PWEN_MARK, USB0_OVC_VBUS_MARK, |
| }; |
| +static const unsigned int usb0_ovc_vbus_pins[] = { |
| + /* OVC/VBUS */ |
| + RCAR_GP_PIN(5, 19), |
| +}; |
| +static const unsigned int usb0_ovc_vbus_mux[] = { |
| + USB0_OVC_VBUS_MARK, |
| +}; |
| /* - USB1 ------------------------------------------------------------------- */ |
| static const unsigned int usb1_pins[] = { |
| /* PWEN, OVC */ |
| @@ -3789,6 +3796,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { |
| SH_PFC_PIN_GROUP(tpu0_to2), |
| SH_PFC_PIN_GROUP(tpu0_to3), |
| SH_PFC_PIN_GROUP(usb0), |
| + SH_PFC_PIN_GROUP(usb0_ovc_vbus), |
| SH_PFC_PIN_GROUP(usb1), |
| SH_PFC_PIN_GROUP(usb2), |
| VIN_DATA_PIN_GROUP(vin0_data, 24), |
| @@ -4134,6 +4142,7 @@ static const char * const tpu0_groups[] = { |
| |
| static const char * const usb0_groups[] = { |
| "usb0", |
| + "usb0_ovc_vbus", |
| }; |
| |
| static const char * const usb1_groups[] = { |
| -- |
| 2.1.2 |
| |