From: wdenk Date: Wed, 28 Mar 2001 07:27:29 +0000 (+0000) Subject: In "cpu/ppc4xx/speed.c" file, "get_bus_freq" function returned value X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e551b74ad162fc56daeb7bd023757599b4950729;p=users%2Frw%2Fppcboot.git In "cpu/ppc4xx/speed.c" file, "get_bus_freq" function returned value in MHz instead in Hz. --- diff --git a/cpu/ppc4xx/speed.c b/cpu/ppc4xx/speed.c index 950a32a..88289f3 100644 --- a/cpu/ppc4xx/speed.c +++ b/cpu/ppc4xx/speed.c @@ -215,7 +215,10 @@ ulong get_gclk_freq (void) } /* ------------------------------------------------------------------------- */ - +/******************************************** + * get_bus_freq + * return PLB bus freq in Hz +*********************************************/ ulong get_bus_freq (ulong gclk_freq) { ulong val; @@ -223,7 +226,7 @@ ulong get_bus_freq (ulong gclk_freq) PPC405_SYS_INFO sys_info; get_sys_info(&sys_info); - val = sys_info.freqPLB / 1000000; + val = sys_info.freqPLB; #endif /* CONFIG_PPC405GP */ #ifdef CONFIG_IOP480 @@ -233,6 +236,10 @@ ulong get_bus_freq (ulong gclk_freq) return val; } +/******************************************** + * get_OPB_freq + * return OPB bus freq in Hz +*********************************************/ ulong get_OPB_freq (void) { ulong val;