From 40599239e7875b39e2a5c12e6545992041c72c52 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 24 Oct 2008 22:48:47 -0400 Subject: Blackfin: cache core/system clock values Calculating the clocks requires a bit of calls to gcc math functions, so cache the values after the first run since they'll most likely never change once U-Boot is up and running. Signed-off-by: Mike Frysinger --- include/asm-blackfin/blackfin_local.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/asm-blackfin') diff --git a/include/asm-blackfin/blackfin_local.h b/include/asm-blackfin/blackfin_local.h index c9ee91a43..90259ba7d 100644 --- a/include/asm-blackfin/blackfin_local.h +++ b/include/asm-blackfin/blackfin_local.h @@ -52,6 +52,8 @@ # include +extern u_long get_vco(void); +extern u_long get_cclk(void); extern u_long get_sclk(void); # define bfin_revid() (*pCHIPID >> 28) -- cgit v1.2.3