aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-kirkwood
diff options
context:
space:
mode:
authorPrafulla Wadaskar2010-09-20 17:19:42 +0530
committerWolfgang Denk2010-10-13 09:35:58 +0200
commitc0cd02073da1ec0737d45b2e60aac53201209b30 (patch)
tree1c073a2e54074dd8f2bb3e4ef38c55f15cc6040c /arch/arm/include/asm/arch-kirkwood
parentd3497138ff352841da3573c7aa9df993c4afd136 (diff)
Kirkwood: print_cpuinfo fixed for valid devid revid
Earlier Device Identification register was used to detect the type for SoC, considering 88F6282 support to be added, It is not possible to detect the same using current algorithm. With this patch, device ID is being read using PCIE devid register, also valid chip revision ID will also be read and displayed Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
Diffstat (limited to 'arch/arm/include/asm/arch-kirkwood')
-rw-r--r--arch/arm/include/asm/arch-kirkwood/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-kirkwood/cpu.h b/arch/arm/include/asm/arch-kirkwood/cpu.h
index b3022a37801..d28c51a9b6b 100644
--- a/arch/arm/include/asm/arch-kirkwood/cpu.h
+++ b/arch/arm/include/asm/arch-kirkwood/cpu.h
@@ -35,6 +35,8 @@
#define KWGBE_PORT_SERIAL_CONTROL1_REG(_x) \
((_x ? KW_EGIGA0_BASE : KW_EGIGA1_BASE) + 0x44c)
+#define KW_REG_PCIE_DEVID (KW_REG_PCIE_BASE + 0x00)
+#define KW_REG_PCIE_REVID (KW_REG_PCIE_BASE + 0x08)
#define KW_REG_DEVICE_ID (KW_MPP_BASE + 0x34)
#define KW_REG_SYSRST_CNT (KW_MPP_BASE + 0x50)
#define SYSRST_CNT_1SEC_VAL (25*1000000)