diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2008-04-10 22:50:44 +0000 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2008-04-10 22:50:44 +0000 |
commit | 234e87f137faff67c391c4df678a82b763089119 (patch) | |
tree | 18ff4031c221f2f4aebda4207157334c169ad2a2 /payloads/libpayload/i386/timer.c | |
parent | 30939bdffd0435df4aa0830b2da1ef06ceebfba3 (diff) | |
download | coreboot-234e87f137faff67c391c4df678a82b763089119.tar.xz |
libpayload: Support functions for Geode
The Geode video driver will require a number of support functions,
including udelay(), PCI bus walking and MSRs. This adds those functions
in preparation for the actual code.
Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3231 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/i386/timer.c')
-rw-r--r-- | payloads/libpayload/i386/timer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/payloads/libpayload/i386/timer.c b/payloads/libpayload/i386/timer.c index e9416550cf..789bf0b150 100644 --- a/payloads/libpayload/i386/timer.c +++ b/payloads/libpayload/i386/timer.c @@ -77,6 +77,11 @@ void ndelay(unsigned int n) _delay(n * cpu_khz / 1000000); } +void udelay(unsigned int n) +{ + _delay(n * cpu_khz / 1000); +} + void mdelay(unsigned int m) { _delay(m * cpu_khz); |