summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorsascha <sascha@nomad.localdomain>2007-10-16 11:32:23 +0200
committersascha <sascha@nomad.localdomain>2007-10-16 11:32:23 +0200
commita99e03c847c96f08dcd8da6ccc0e3d3c760d2e1b (patch)
tree4e84b9358e81846b72b2564ec351d4d0f1f3f03d /arch/arm
parenta3408cfe757fe7ec4645d82e441f18a427bc6080 (diff)
downloadbarebox-a99e03c847c96f08dcd8da6ccc0e3d3c760d2e1b.tar.gz
barebox-a99e03c847c96f08dcd8da6ccc0e3d3c760d2e1b.tar.xz
i.MX clock functions: Make them work for i.MX1 again
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-imx/speed-imx1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/speed-imx1.c b/arch/arm/mach-imx/speed-imx1.c
index f801f8f093..72afcf1e22 100644
--- a/arch/arm/mach-imx/speed-imx1.c
+++ b/arch/arm/mach-imx/speed-imx1.c
@@ -24,6 +24,7 @@
#include <common.h>
#include <asm/arch/imx-regs.h>
+#include <asm/arch/clock.h>
#include <init.h>
#include <driver.h>
@@ -49,7 +50,7 @@ ulong imx_get_mpllclk(void)
ulong imx_get_fclk(void)
{
- return (( CSCR>>15)&1) ? get_mcuPLLCLK()>>1 : get_mcuPLLCLK();
+ return (( CSCR>>15)&1) ? imx_get_mpllclk()>>1 : imx_get_mpllclk();
}
ulong imx_get_hclk(void)
@@ -60,7 +61,7 @@ ulong imx_get_hclk(void)
ulong imx_get_bclk(void)
{
- return get_HCLK();
+ return imx_get_hclk();
}
ulong imx_get_perclk1(void)