summaryrefslogtreecommitdiff
path: root/board/atmel/at91sam9n12ek
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-10-21 16:13:59 +0800
committerAndreas Bießmann <andreas.devel@googlemail.com>2013-11-04 20:32:35 +0100
commitd9bef0ad2daa2f6f0b635be12518da755ddcbdc1 (patch)
tree4b19de31dd7964da2c8b9328e7e7892a814a94ae /board/atmel/at91sam9n12ek
parent32e4f6bf2e35e99e1742c005e1ede4e0cf5f066c (diff)
arm: atmel: at91sam9n12ek: add usb host support
Add usb host support for at91sam9n12ek board. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Diffstat (limited to 'board/atmel/at91sam9n12ek')
-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 2ec32ebc21..9adc9920b4 100644
--- a/board/atmel/at91sam9n12ek/at91sam9n12ek.c
+++ b/board/atmel/at91sam9n12ek/at91sam9n12ek.c
@@ -199,6 +199,13 @@ void at91sam9n12ek_ks8851_hw_init(void)
}
#endif
+#ifdef CONFIG_USB_ATMEL
+void at91sam9n12ek_usb_hw_init(void)
+{
+ at91_set_pio_output(AT91_PIO_PORTB, 7, 0);
+}
+#endif
+
int board_early_init_f(void)
{
/* Enable clocks for all PIOs */
@@ -230,6 +237,10 @@ int board_init(void)
at91sam9n12ek_ks8851_hw_init();
#endif
+#ifdef CONFIG_USB_ATMEL
+ at91sam9n12ek_usb_hw_init();
+#endif
+
return 0;
}