summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/arm926ejs/at91
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2012-11-29 23:18:32 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2012-12-09 22:38:27 +0100
commitbcfc8976e5c86afd7f14c8a32fcd33baad0b482f (patch)
tree811cd1d20eef2f72e63aa0509c4098987de8a63f /arch/arm/cpu/arm926ejs/at91
parentb8a7c467960ffb4d5a5e1eef5f7783fb6f594542 (diff)
downloadblackbird-obmc-uboot-bcfc8976e5c86afd7f14c8a32fcd33baad0b482f.tar.gz
blackbird-obmc-uboot-bcfc8976e5c86afd7f14c8a32fcd33baad0b482f.zip
at91sam9x5: enable USB support for 9x5ek board.
Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Acked-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'arch/arm/cpu/arm926ejs/at91')
-rw-r--r--arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c
index 93485523b5..0448c0b133 100644
--- a/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c
+++ b/arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c
@@ -193,6 +193,19 @@ void at91_spi1_hw_init(unsigned long cs_mask)
}
#endif
+#if defined(CONFIG_USB_OHCI_NEW) || defined(CONFIG_USB_EHCI)
+void at91_uhp_hw_init(void)
+{
+ /* Enable VBus on UHP ports */
+ at91_set_pio_output(AT91_PIO_PORTD, 18, 0); /* port A */
+ at91_set_pio_output(AT91_PIO_PORTD, 19, 0); /* port B */
+#if defined(CONFIG_USB_OHCI_NEW)
+ /* port C is OHCI only */
+ at91_set_pio_output(AT91_PIO_PORTD, 20, 0); /* port C */
+#endif
+}
+#endif
+
#ifdef CONFIG_MACB
void at91_macb_hw_init(void)
{
OpenPOWER on IntegriCloud