summaryrefslogtreecommitdiff
path: root/src/pc80
diff options
context:
space:
mode:
Diffstat (limited to 'src/pc80')
-rw-r--r--src/pc80/usbdebug_serial.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pc80/usbdebug_serial.c b/src/pc80/usbdebug_serial.c
index c58dce1294..a330ea6695 100644
--- a/src/pc80/usbdebug_serial.c
+++ b/src/pc80/usbdebug_serial.c
@@ -19,13 +19,15 @@
*/
#include "../lib/usbdebug.c"
+#include <arch/io.h>
+#include <ehci.h>
-static void early_usbdebug_init(void)
+void early_usbdebug_init(void)
{
struct ehci_debug_info *dbg_info = (struct ehci_debug_info *)
(CONFIG_DCACHE_RAM_BASE + CONFIG_DCACHE_RAM_SIZE - sizeof(struct ehci_debug_info));
- usbdebug_init(EHCI_BAR, EHCI_DEBUG_OFFSET, dbg_info);
+ usbdebug_init(CONFIG_EHCI_BAR, CONFIG_EHCI_DEBUG_OFFSET, dbg_info);
}
void usbdebug_tx_byte(unsigned char data)