From d57241fab5d4b941f72811a9ce9edafca3993ba1 Mon Sep 17 00:00:00 2001 From: Yinghai Lu Date: Wed, 28 Feb 2007 11:17:02 +0000 Subject: This is (most of) the usb2 debug console code ripped out of Uwe's version of yh_rest_of_patch.patch (13.02.07 - [PATCH] Rest of huge MCP55 patch). I dropped a lot of stuff, like broken indenting, removed copyright messages, and this printk_ram_* stuff (what the heck is this supposed to be) This codebase is really a mess. Further tarball contributions without a _CLEANED UP_ patch will be denied, especially if they are not from an up to date svn tree. Signed-off-by: Yinghai Lu Signed-off-by: Uwe Hermann Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2563 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/amd/model_fxx/model_fxx_init.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/cpu/amd/model_fxx') diff --git a/src/cpu/amd/model_fxx/model_fxx_init.c b/src/cpu/amd/model_fxx/model_fxx_init.c index f97f68672f..e671975e42 100644 --- a/src/cpu/amd/model_fxx/model_fxx_init.c +++ b/src/cpu/amd/model_fxx/model_fxx_init.c @@ -546,6 +546,8 @@ static void amd_set_name_string_f(device_t dev) extern void model_fxx_update_microcode(unsigned cpu_deviceid); int init_processor_name(void); +static unsigned ehci_debug_addr; + void model_fxx_init(device_t dev) { unsigned long i; @@ -565,11 +567,21 @@ void model_fxx_init(device_t dev) } #endif +#if CONFIG_USBDEBUG_DIRECT + if(!ehci_debug_addr) + ehci_debug_addr = get_ehci_debug(); + set_ehci_debug(0); +#endif + /* Turn on caching if we haven't already */ x86_enable_cache(); amd_setup_mtrrs(); x86_mtrr_check(); +#if CONFIG_USBDEBUG_DIRECT + set_ehci_debug(ehci_debug_addr); +#endif + /* Update the microcode */ model_fxx_update_microcode(dev->device); -- cgit v1.2.3