From 383f5f6897870d172246f09cdad4799fae342c43 Mon Sep 17 00:00:00 2001 From: Greg Watson Date: Sun, 12 Oct 2003 21:17:04 +0000 Subject: get_bus_freq() git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1204 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/ppc/ppc4xx/clock.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cpu') 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; +} -- cgit v1.2.3