diff options
author | Greg Watson <jarrah@users.sourceforge.net> | 2003-10-12 21:17:04 +0000 |
---|---|---|
committer | Greg Watson <jarrah@users.sourceforge.net> | 2003-10-12 21:17:04 +0000 |
commit | 383f5f6897870d172246f09cdad4799fae342c43 (patch) | |
tree | ff84eb3c4a39dcce02f2bf0632ee64aa4bf6caa4 /src/cpu | |
parent | 97c211e70fdf32d019b784fa75c31c5ed489921a (diff) | |
download | coreboot-383f5f6897870d172246f09cdad4799fae342c43.tar.xz |
get_bus_freq()
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1204 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/ppc/ppc4xx/clock.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cpu/ppc/ppc4xx/clock.c b/src/cpu/ppc/ppc4xx/clock.c index 01914e0752..1775b2d6d0 100644 --- a/src/cpu/ppc/ppc4xx/clock.c +++ b/src/cpu/ppc/ppc4xx/clock.c @@ -171,3 +171,11 @@ unsigned long get_clock_speed(void) get_sys_info(&sys_info); 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; +} |