[PATCH 6/9] dove: fix the mvCtrlRevGet to return the correct device revision

Brad Figg brad.figg at canonical.com
Wed Aug 19 04:44:11 BST 2009


From: Saeed Bishara <saeed at marvell.com>

Signed-off-by: Saeed Bishara <saeed at marvell.com>
Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
 arch/arm/mach-dove/mv_hal_support/mvKW_HAL_glue.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-dove/mv_hal_support/mvKW_HAL_glue.c b/arch/arm/mach-dove/mv_hal_support/mvKW_HAL_glue.c
index e6d6366..8e6f7d8 100755
--- a/arch/arm/mach-dove/mv_hal_support/mvKW_HAL_glue.c
+++ b/arch/arm/mach-dove/mv_hal_support/mvKW_HAL_glue.c
@@ -87,7 +87,12 @@ MV_U16 mvCtrlModelGet(MV_VOID)
 }
 MV_U8 mvCtrlRevGet(MV_VOID)
 {
-     return 0;
+#ifdef CONFIG_DOVE_REV_Z0
+	return 0;
+#endif
+#ifdef CONFIG_DOVE_REV_Y0
+	return 2;
+#endif
 }
 //EXPORT_SYMBOL(mvCtrlEthMaxPortGet);
 #endif
-- 
1.6.0.4




More information about the kernel-team mailing list