9
0
Fork 0

[i.MX] Add header file for PLL registers

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-01-30 11:56:15 +01:00
parent c09d002eca
commit 4aae146bee
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#ifndef __INCLUDE_ASM_ARCH_IMX_PLL_H
#define __INCLUDE_ASM_ARCH_IMX_PLL_H
/*
* This can be used for various PLLs found on
* i.MX SoCs.
*
* mfi + mfn / (mfd + 1)
* fpll = 2 * fref * ---------------------
* pd + 1
*/
#define IMX_PLL_PD(x) (((x) & 0xf) << 26)
#define IMX_PLL_MFD(x) (((x) & 0x3ff) << 16)
#define IMX_PLL_MFI(x) (((x) & 0xf) << 10)
#define IMX_PLL_MFN(x) (((x) & 0x3ff) << 0)
#define IMX_PLL_BRMO (1 << 31)
#endif /* __INCLUDE_ASM_ARCH_IMX_PLL_H*/