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
This commit is contained in:
Jordan Crouse
2008-04-10 22:50:44 +00:00
parent 30939bdffd
commit 234e87f137
6 changed files with 218 additions and 0 deletions

View File

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