summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2013-02-08 00:03:46 +0000
committerWolfgang Denk <wd@denx.de>2013-03-09 08:22:45 +0100
commit1d63b8ffdb4c244fd1c6e4c31efad343b1919675 (patch)
tree27938f86f44cdab6856fdf18c5700c0bfa206c15 /arch/powerpc/include/asm
parente5f538649c7d492b097fcfaf62e03b32b11e11be (diff)
downloadu-boot-imx-1d63b8ffdb4c244fd1c6e4c31efad343b1919675.zip
u-boot-imx-1d63b8ffdb4c244fd1c6e4c31efad343b1919675.tar.gz
u-boot-imx-1d63b8ffdb4c244fd1c6e4c31efad343b1919675.tar.bz2
mpc512x: optionally configure DIU, LPC and NFC deviders
If a board config file defines DIU, LPC and NFC deviders, configure them in the SCFR1 register. Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/immap_512x.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/immap_512x.h b/arch/powerpc/include/asm/immap_512x.h
index f763a54..157e6b8 100644
--- a/arch/powerpc/include/asm/immap_512x.h
+++ b/arch/powerpc/include/asm/immap_512x.h
@@ -238,6 +238,12 @@ typedef struct clk512x {
#define SCFR1_LPC_DIV_MASK 0x00003800
#define SCFR1_LPC_DIV_SHIFT 11
+#define SCFR1_NFC_DIV_MASK 0x00000700
+#define SCFR1_NFC_DIV_SHIFT 8
+
+#define SCFR1_DIU_DIV_MASK 0x000000FF
+#define SCFR1_DIU_DIV_SHIFT 0
+
/* SCFR2 System Clock Frequency Register 2 */
#define SCFR2_SYS_DIV 0xFC000000
#define SCFR2_SYS_DIV_SHIFT 26