get_bus_freq()

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1204 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Greg Watson 2003-10-12 21:17:04 +00:00
parent 97c211e70f
commit 383f5f6897
1 changed files with 8 additions and 0 deletions

View File

@ -171,3 +171,11 @@ unsigned long get_clock_speed(void)
get_sys_info(&sys_info); get_sys_info(&sys_info);
return sys_info.freqProcessor; return sys_info.freqProcessor;
} }
unsigned long get_bus_freq(void)
{
struct ppc4xx_sys_info sys_info;
get_sys_info(&sys_info);
return sys_info.freqPLB;
}