summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mv78xx0/include
diff options
context:
space:
mode:
authorLennert Buytenhek2009-02-20 02:31:35 +0100
committerNicolas Pitre2009-02-20 04:36:42 +0100
commitcfdeb6376e439c58c2d37de492d2a8c763621022 (patch)
tree19243c67ec6411797028cbe538ea88410516049d /arch/arm/mach-mv78xx0/include
parent[ARM] Kirkwood: enable both XOR engines on the 6281 RD board (diff)
downloadkernel-qcow2-linux-cfdeb6376e439c58c2d37de492d2a8c763621022.tar.gz
kernel-qcow2-linux-cfdeb6376e439c58c2d37de492d2a8c763621022.tar.xz
kernel-qcow2-linux-cfdeb6376e439c58c2d37de492d2a8c763621022.zip
[ARM] mv78xx0: distinguish between different chip steppings
During boot, identify which chip stepping we're running on (determined by looking at the first PCIe unit's device ID and revision registers), and print a message with the details about what we found. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Diffstat (limited to 'arch/arm/mach-mv78xx0/include')
-rw-r--r--arch/arm/mach-mv78xx0/include/mach/mv78xx0.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-mv78xx0/include/mach/mv78xx0.h b/arch/arm/mach-mv78xx0/include/mach/mv78xx0.h
index e930ea5330a2..328a02e029a0 100644
--- a/arch/arm/mach-mv78xx0/include/mach/mv78xx0.h
+++ b/arch/arm/mach-mv78xx0/include/mach/mv78xx0.h
@@ -80,6 +80,18 @@
#define TIMER_VIRT_BASE (BRIDGE_VIRT_BASE | 0x0300)
/*
+ * Supported devices and revisions.
+ */
+#define MV78X00_Z0_DEV_ID 0x6381
+#define MV78X00_REV_Z0 1
+
+#define MV78100_DEV_ID 0x7810
+#define MV78100_REV_A0 1
+
+#define MV78200_DEV_ID 0x7820
+#define MV78200_REV_A0 1
+
+/*
* Register Map
*/
#define DDR_VIRT_BASE (MV78XX0_REGS_VIRT_BASE | 0x00000)