]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/atmel/at91sam9n12ek/at91sam9n12ek.c
arm: atmel: at91sam9n12ek: add usb host support
[karo-tx-uboot.git] / board / atmel / at91sam9n12ek / at91sam9n12ek.c
index 2ec32ebc21d6b5ab523ccc02d1a7b05af7e1e21b..9adc9920b473bedda137691236cf8c11ccd07522 100644 (file)
@@ -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;
 }