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 <yinghai.lu@amd.com>
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2563 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Yinghai Lu
2007-02-28 11:17:02 +00:00
committed by Stefan Reinauer
parent 3f5411cfca
commit d57241fab5
10 changed files with 887 additions and 0 deletions

View File

@ -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);