summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2013-02-08 00:03:47 +0000
committerWolfgang Denk <wd@denx.de>2013-03-09 08:22:50 +0100
commit5643709ede0acef5c52669618ea36c33f84e9247 (patch)
treecccda85af38873c7d8d49d3b45f18e1f09920354 /arch/powerpc
parent1d63b8ffdb4c244fd1c6e4c31efad343b1919675 (diff)
downloadu-boot-imx-5643709ede0acef5c52669618ea36c33f84e9247.zip
u-boot-imx-5643709ede0acef5c52669618ea36c33f84e9247.tar.gz
u-boot-imx-5643709ede0acef5c52669618ea36c33f84e9247.tar.bz2
mpc512x: allow configuring board specific IPS divider
Boards may define own IPS divider in the config file if the default IPS divider doesn't fit their needs. Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/include/asm/immap_512x.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/immap_512x.h b/arch/powerpc/include/asm/immap_512x.h
index 157e6b8..383e872 100644
--- a/arch/powerpc/include/asm/immap_512x.h
+++ b/arch/powerpc/include/asm/immap_512x.h
@@ -227,7 +227,9 @@ typedef struct clk512x {
#define CLOCK_SCCR2_IIM_EN 0x00080000
/* SCFR1 System Clock Frequency Register 1 */
+#ifndef SCFR1_IPS_DIV
#define SCFR1_IPS_DIV 0x3
+#endif
#define SCFR1_IPS_DIV_MASK 0x03800000
#define SCFR1_IPS_DIV_SHIFT 23