summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan McDowell <noodles@earth.li>2005-09-14 16:33:10 +0000
committerJonathan McDowell <noodles@earth.li>2005-09-14 16:33:10 +0000
commit1718c4771b41c0f43c0c3d3970b5b390f97faa89 (patch)
tree27bed1fc1d9a2d669adcda878d2dd43eba7fa343
parent708743379ae6798a2c5c2087bb860d2d4b54b6b6 (diff)
Make EPIA-M use CONFIG_TSC.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2039 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/cpu/x86/tsc/delay_tsc.c7
-rw-r--r--src/mainboard/via/epia-m/Options.lb6
2 files changed, 10 insertions, 3 deletions
diff --git a/src/cpu/x86/tsc/delay_tsc.c b/src/cpu/x86/tsc/delay_tsc.c
index 31c5bf80eb..d5cf50fab7 100644
--- a/src/cpu/x86/tsc/delay_tsc.c
+++ b/src/cpu/x86/tsc/delay_tsc.c
@@ -128,11 +128,12 @@ static unsigned long long calibrate_tsc(void)
delta >>= 20;
// save this for microsecond timing.
result = delta;
- printk_spew("end %x:%x, start %x:%x\n",
- endhigh, endlow, starthigh, startlow);
+ printk_spew("end %x, start %x\n", end, start);
printk_spew("32-bit delta %d\n", (unsigned long) delta);
- printk_spew(__FUNCTION__ " 32-bit result is %d\n", result);
+ printk_spew("%s 32-bit result is %d\n",
+ __FUNCTION__,
+ result);
return delta;
}
diff --git a/src/mainboard/via/epia-m/Options.lb b/src/mainboard/via/epia-m/Options.lb
index a79a819883..4184236c5c 100644
--- a/src/mainboard/via/epia-m/Options.lb
+++ b/src/mainboard/via/epia-m/Options.lb
@@ -35,6 +35,7 @@ uses OBJCOPY
uses DEFAULT_CONSOLE_LOGLEVEL
uses MAXIMUM_CONSOLE_LOGLEVEL
uses CONFIG_CONSOLE_SERIAL8250
+uses CONFIG_UDELAY_TSC
## ROM_SIZE is the size of boot ROM that this board will use.
default ROM_SIZE = 256*1024
@@ -54,6 +55,11 @@ default HAVE_FALLBACK_BOOT=1
default HAVE_MP_TABLE=0
##
+## Use TSC for udelay.
+##
+default CONFIG_UDELAY_TSC=1
+
+##
## Build code to reset the motherboard from linuxBIOS
##
default HAVE_HARD_RESET=1