9
0
Fork 0

i.MX clock functions: Make them work for i.MX1 again

This commit is contained in:
sascha 2007-10-16 11:32:23 +02:00
parent a3408cfe75
commit a99e03c847
2 changed files with 6 additions and 3 deletions

View File

@ -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)

View File

@ -3,6 +3,8 @@
#define __ASM_ARCH_CLOCK_H
unsigned int imx_decode_pll(unsigned int pll, unsigned int f_ref);
ulong imx_get_mpllclk(void);
#ifdef CONFIG_ARCH_IMX27
ulong imx_get_armclk(void);
#endif
@ -12,7 +14,7 @@ static inline ulong imx_get_armclk(void)
return imx_get_mpllclk();
}
#endif
ulong imx_get_mpllclk(void);
ulong imx_get_spllclk(void);
ulong imx_get_fclk(void);
ulong imx_get_hclk(void);