summaryrefslogtreecommitdiff
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorJames Yang <James.Yang@freescale.com>2008-02-08 18:05:08 -0600
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-03-26 11:43:04 -0500
commita3e77fa5359b3f9f59e4e946b46d57a53057cc85 (patch)
tree3bcc915dc6f1899b5e388793b1945c77fef3f16e /include/asm-ppc
parente9ea679918fbc9a53fa2f2a904aac874ea736036 (diff)
downloadu-boot-imx-a3e77fa5359b3f9f59e4e946b46d57a53057cc85.zip
u-boot-imx-a3e77fa5359b3f9f59e4e946b46d57a53057cc85.tar.gz
u-boot-imx-a3e77fa5359b3f9f59e4e946b46d57a53057cc85.tar.bz2
85xx: Speed up get_ddr_freq() and get_bus_freq()
get_ddr_freq() and get_bus_freq() used get_sys_info() each time they were called. However, get_sys_info() recalculates extraneous information when called each time. Have get_ddr_freq() and get_bus_freq() return memoized values from global_data instead. Signed-off-by: James Yang <James.Yang@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/global_data.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/asm-ppc/global_data.h b/include/asm-ppc/global_data.h
index ff6624a..b43dba3 100644
--- a/include/asm-ppc/global_data.h
+++ b/include/asm-ppc/global_data.h
@@ -52,9 +52,7 @@ typedef struct global_data {
unsigned long scc_clk;
unsigned long brg_clk;
#endif
-#if defined(CONFIG_MPC7448HPC2)
unsigned long mem_clk;
-#endif
#if defined(CONFIG_MPC83XX)
/* There are other clocks in the MPC83XX */
u32 csb_clk;