summaryrefslogtreecommitdiff
path: root/include/asm-blackfin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-24 22:48:47 -0400
committerMike Frysinger <vapier@gentoo.org>2009-02-02 12:24:42 -0500
commit40599239e7875b39e2a5c12e6545992041c72c52 (patch)
tree1cb9d7601f914acbf80c467ec7710abc61756258 /include/asm-blackfin
parent6957a6209b02f6b69607fc47425f13731cc477f1 (diff)
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 <vapier@gentoo.org>
Diffstat (limited to 'include/asm-blackfin')
-rw-r--r--include/asm-blackfin/blackfin_local.h2
1 files changed, 2 insertions, 0 deletions
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 <linux/types.h>
+extern u_long get_vco(void);
+extern u_long get_cclk(void);
extern u_long get_sclk(void);
# define bfin_revid() (*pCHIPID >> 28)