Add an EHCI driver to libpayload's USB stack.
Interrupt transfer support is missing (ie. no keyboard),
bulk and control transfers work (ie. mass storage).
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5845 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
diff --git a/payloads/libpayload/drivers/usb/usbinit.c b/payloads/libpayload/drivers/usb/usbinit.c
index 50dbf97..f0d5a60 100644
--- a/payloads/libpayload/drivers/usb/usbinit.c
+++ b/payloads/libpayload/drivers/usb/usbinit.c
@@ -31,7 +31,7 @@
#include <usb/usb.h>
#include "uhci.h"
#include "ohci.h"
-//#include "ehci.h"
+#include "ehci.h"
#include "xhci.h"
#include <usb/usbdisk.h>
@@ -90,8 +90,7 @@
if (prog_if == 0x20) {
printf ("EHCI controller\n");
#ifdef CONFIG_USB_EHCI
- //ehci_init(addr);
- printf ("Not supported.\n");
+ ehci_init(addr);
#else
printf ("Not supported.\n");
#endif