summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-imx/clock.h
blob: a7bfcaa66da6fc3a300a5fc38eea29e843a29e3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

#ifndef __ASM_ARCH_CLOCK_H
#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
#ifdef CONFIG_ARCH_IMX1
static inline ulong imx_get_armclk(void)
{
	return imx_get_mpllclk();
}
#endif

ulong imx_get_spllclk(void);
ulong imx_get_fclk(void);
ulong imx_get_hclk(void);
ulong imx_get_bclk(void);
ulong imx_get_perclk1(void);
ulong imx_get_perclk2(void);
ulong imx_get_perclk3(void);
ulong imx_get_ahbclk(void);
ulong imx_get_ipgclk(void);

#endif /* __ASM_ARCH_CLOCK_H */