summaryrefslogtreecommitdiff
path: root/src/cpu/amd/model_fxx
diff options
context:
space:
mode:
authorYinghai Lu <yinghai.lu@amd.com>2007-02-28 11:17:02 +0000
committerStefan Reinauer <stepan@openbios.org>2007-02-28 11:17:02 +0000
commitd57241fab5d4b941f72811a9ce9edafca3993ba1 (patch)
treedae6993cc29b010896d5b733133058a673fd3a4b /src/cpu/amd/model_fxx
parent3f5411cfca8e1b4552e13a3a286358e917bb5382 (diff)
downloadcoreboot-d57241fab5d4b941f72811a9ce9edafca3993ba1.tar.xz
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
Diffstat (limited to 'src/cpu/amd/model_fxx')
-rw-r--r--src/cpu/amd/model_fxx/model_fxx_init.c12
1 files changed, 12 insertions, 0 deletions
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);