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:
@ -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);
|
||||
|
Reference in New Issue
Block a user