ARM: UniPhier: add EHCI host pin settings for PH1-Pro4
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Fri, 7 Nov 2014 09:33:52 +0000 (18:33 +0900)
committerMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 11 Nov 2014 15:17:13 +0000 (00:17 +0900)
These IO pins are necessary for port power control and
over current detect.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
arch/arm/cpu/armv7/uniphier/ph1-pro4/pinctrl.c

index 503c247d6b32abf46b787f3a1088cfba3f9691ec..4e3d47615b64161d7f36797916f3271d223703cd 100644 (file)
@@ -41,5 +41,12 @@ void pin_init(void)
        sg_set_pinsel(54, 0);   /* NRYBY0 -> NRYBY0 */
 #endif
 
+#ifdef CONFIG_USB_EHCI_UNIPHIER
+       sg_set_pinsel(184, 0);  /* USB2VBUS -> USB2VBUS */
+       sg_set_pinsel(185, 0);  /* USB2OD   -> USB2OD */
+       sg_set_pinsel(187, 0);  /* USB3VBUS -> USB3VBUS */
+       sg_set_pinsel(188, 0);  /* USB3OD   -> USB3OD */
+#endif
+
        writel(1, SG_LOADPINCTRL);
 }