[coreboot-gerrit] Patch set updated for coreboot: a7d7a90 usbdebug: Export ehci_bar through usbdebug_simple_init_at()

Nico Huber (nico.h@gmx.de) gerrit at coreboot.org
Thu Feb 13 18:17:04 CET 2014


Nico Huber (nico.h at gmx.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4694

-gerrit

commit a7d7a904c13c2302043ac548cdbc14b5206bbebe
Author: Nico Huber <nico.h at gmx.de>
Date:   Tue Jan 14 19:26:02 2014 +0100

    usbdebug: Export ehci_bar through usbdebug_simple_init_at()
    
    Add usbdebug_simple_init_at() to just run the usbdebug init code with a
    given EHCI BAR. This makes it easier to use our usbdebug code in other
    contexts, say Linux userspace.
    
    Change-Id: I059d8432f654e6b55d5940d45a8fe1df27c2e51e
    Signed-off-by: Nico Huber <nico.h at gmx.de>
---
 src/drivers/usb/ehci_debug.c | 6 ++++++
 src/include/console/usb.h    | 1 +
 2 files changed, 7 insertions(+)

diff --git a/src/drivers/usb/ehci_debug.c b/src/drivers/usb/ehci_debug.c
index b1ae27d..a6b7cd9 100644
--- a/src/drivers/usb/ehci_debug.c
+++ b/src/drivers/usb/ehci_debug.c
@@ -934,3 +934,9 @@ int usbdebug_init(void)
 	ehci_debug_hw_enable();
 	return usbdebug_init_(CONFIG_EHCI_BAR, CONFIG_EHCI_DEBUG_OFFSET, dbg_info);
 }
+
+int usbdebug_simple_init_at(unsigned ehci_bar)
+{
+	struct ehci_debug_info *dbg_info = dbgp_ehci_info();
+	return usbdebug_init_(ehci_bar, CONFIG_EHCI_DEBUG_OFFSET, dbg_info);
+}
diff --git a/src/include/console/usb.h b/src/include/console/usb.h
index 430557f..d5126be 100644
--- a/src/include/console/usb.h
+++ b/src/include/console/usb.h
@@ -24,6 +24,7 @@
 struct dbgp_pipe;
 
 int usbdebug_init(void);
+int usbdebug_simple_init_at(unsigned ehci_bar);
 
 struct dbgp_pipe *dbgp_console_output(void);
 struct dbgp_pipe *dbgp_console_input(void);



More information about the coreboot-gerrit mailing list