summaryrefslogtreecommitdiff
path: root/cpu/mcf532x/speed.c
diff options
context:
space:
mode:
authorPeter Pearse <peter.pearse@arm.com>2007-09-18 11:12:58 +0100
committerPeter Pearse <peter.pearse@arm.com>2007-09-18 11:12:58 +0100
commitafd477b227c089f2b7ce0aadb20b9ea7dc6ee6f8 (patch)
tree4b0d37a727b3ede6540825258cc930533c0cdce7 /cpu/mcf532x/speed.c
parentd94c79e47011af5e8dd10ed6163c09b4cfc743cc (diff)
parent67c31036acaaaa992fc346cc89db0909a7e733c4 (diff)
downloadu-boot-imx-afd477b227c089f2b7ce0aadb20b9ea7dc6ee6f8.zip
u-boot-imx-afd477b227c089f2b7ce0aadb20b9ea7dc6ee6f8.tar.gz
u-boot-imx-afd477b227c089f2b7ce0aadb20b9ea7dc6ee6f8.tar.bz2
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'cpu/mcf532x/speed.c')
-rw-r--r--cpu/mcf532x/speed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/mcf532x/speed.c b/cpu/mcf532x/speed.c
index cf72609..001b9f4 100644
--- a/cpu/mcf532x/speed.c
+++ b/cpu/mcf532x/speed.c
@@ -30,6 +30,8 @@
#include <asm/immap.h>
+DECLARE_GLOBAL_DATA_PTR;
+
/* PLL min/max specifications */
#define MAX_FVCO 500000 /* KHz */
#define MAX_FSYS 80000 /* KHz */
@@ -208,8 +210,6 @@ int clock_pll(int fsys, int flags)
*/
int get_clocks(void)
{
- DECLARE_GLOBAL_DATA_PTR;
-
gd->bus_clk = clock_pll(CFG_CLK / 1000, 0) * 1000;
gd->cpu_clk = (gd->bus_clk * 3);
return (0);