diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2009-02-19 20:31:35 -0500 |
---|---|---|
committer | Nicolas Pitre <nico@cam.org> | 2009-02-19 22:36:42 -0500 |
commit | cfdeb6376e439c58c2d37de492d2a8c763621022 (patch) | |
tree | 19243c67ec6411797028cbe538ea88410516049d /arch/arm/mach-mv78xx0/pcie.c | |
parent | 12f4815b425b26a610e5dd9a5a5e02872f0f52c5 (diff) |
[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/pcie.c')
-rw-r--r-- | arch/arm/mach-mv78xx0/pcie.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-mv78xx0/pcie.c b/arch/arm/mach-mv78xx0/pcie.c index aad3a7a2f830..a560439dcc3c 100644 --- a/arch/arm/mach-mv78xx0/pcie.c +++ b/arch/arm/mach-mv78xx0/pcie.c | |||
@@ -33,6 +33,12 @@ static struct resource pcie_io_space; | |||
33 | static struct resource pcie_mem_space; | 33 | static struct resource pcie_mem_space; |
34 | 34 | ||
35 | 35 | ||
36 | void __init mv78xx0_pcie_id(u32 *dev, u32 *rev) | ||
37 | { | ||
38 | *dev = orion_pcie_dev_id((void __iomem *)PCIE00_VIRT_BASE); | ||
39 | *rev = orion_pcie_rev((void __iomem *)PCIE00_VIRT_BASE); | ||
40 | } | ||
41 | |||
36 | static void __init mv78xx0_pcie_preinit(void) | 42 | static void __init mv78xx0_pcie_preinit(void) |
37 | { | 43 | { |
38 | int i; | 44 | int i; |