powerpc/82xx: Fix BCSR bits for MPC8272ADS boards
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 18 Aug 2009 23:28:10 +0000 (03:28 +0400)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 25 Aug 2009 14:44:02 +0000 (09:44 -0500)
mpc8272_ads.c is using BCSR bits definitions from pq2ads.h, but
according to User's Guide the bits are wrong for MPC8272ADS boards
(I guess definitions from pq2ads should only be used for PQ2FADS
boards).

So, let's introduce our own definitions for MPC8272ADS, and don't
include pq2ads.h.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/82xx/mpc8272_ads.c

index 8054c685d323a50c90fc7506db4faa76447a6a1f..67e2184f424340b98e629a1d679b18de29260529 100644 (file)
@@ -29,7 +29,6 @@
 #include <sysdev/fsl_soc.h>
 #include <sysdev/cpm2_pic.h>
 
-#include "pq2ads.h"
 #include "pq2.h"
 
 static void __init mpc8272_ads_pic_init(void)
@@ -144,6 +143,13 @@ static void __init mpc8272_ads_setup_arch(void)
                return;
        }
 
+#define BCSR1_FETHIEN          0x08000000
+#define BCSR1_FETH_RST         0x04000000
+#define BCSR1_RS232_EN1                0x02000000
+#define BCSR1_RS232_EN2                0x01000000
+#define BCSR3_FETHIEN2         0x10000000
+#define BCSR3_FETH2_RST                0x08000000
+
        clrbits32(&bcsr[1], BCSR1_RS232_EN1 | BCSR1_RS232_EN2 | BCSR1_FETHIEN);
        setbits32(&bcsr[1], BCSR1_FETH_RST);