mpc512x: allow configuring board specific IPS divider
authorAnatolij Gustschin <agust@denx.de>
Fri, 8 Feb 2013 00:03:47 +0000 (00:03 +0000)
committerWolfgang Denk <wd@denx.de>
Sat, 9 Mar 2013 07:22:50 +0000 (08:22 +0100)
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>
arch/powerpc/include/asm/immap_512x.h

index 157e6b84f66e1fe7d2dc955d1a2a23f6d870d5ff..383e872cf05f8fe9a0408588518583c995ef6865 100644 (file)
@@ -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