summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-04-15 11:35:04 +0800
committerBo Shen <voice.shen@atmel.com>2013-04-18 11:07:44 +0800
commita74f1241842bcd00a79ece84ce40c8ca54edaeab (patch)
treec1ef13edcff36119af80f57b1f4fca7a6ce770ae /board
parent457fc9d3f184cd80e9c6eba806d4d621cf6839ae (diff)
ARM: at91sam9n12: add usb ohci host support
Add usb ohci host support for at91sam9n12ek board Signed-off-by: Bo Shen <voice.shen@atmel.com>
Diffstat (limited to 'board')
-rw-r--r--board/atmel/at91sam9n12ek/at91sam9n12ek.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/atmel/at91sam9n12ek/at91sam9n12ek.c b/board/atmel/at91sam9n12ek/at91sam9n12ek.c
index 8752794c843..2a582dd7aa7 100644
--- a/board/atmel/at91sam9n12ek/at91sam9n12ek.c
+++ b/board/atmel/at91sam9n12ek/at91sam9n12ek.c
@@ -190,6 +190,13 @@ int board_mmc_init(bd_t *bd)
}
#endif
+#ifdef CONFIG_USB_ATMEL
+void at91_ohci_hw_init(void)
+{
+ at91_set_pio_output(AT91_PIO_PORTB, 7, 0);
+}
+#endif
+
int board_early_init_f(void)
{
/* Enable clocks for all PIOs */
@@ -213,6 +220,10 @@ int board_init(void)
at91_spi0_hw_init(1 << 0);
#endif
+#ifdef CONFIG_USB_ATMEL
+ at91_ohci_hw_init();
+#endif
+
#ifdef CONFIG_LCD
at91_lcd_hw_init();
#endif