[<prev] [next>] [day] [month] [year] [list]
Date: Mon, 7 Jul 2008 23:52:59 +0200
From: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
To: linux-ide@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Hirokazu Takata <takata@...ux-m32r.org>
Subject: [PATCH 2/10] ide-generic: fix ide_default_io_base() for m32r
Fix ide_default_io_base() to match ide_default_irq().
Cc: Hirokazu Takata <takata@...ux-m32r.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
---
include/asm-m32r/ide.h | 8 ++++++++
1 file changed, 8 insertions(+)
Index: b/include/asm-m32r/ide.h
===================================================================
--- a/include/asm-m32r/ide.h
+++ b/include/asm-m32r/ide.h
@@ -52,12 +52,20 @@ static __inline__ int ide_default_irq(un
static __inline__ unsigned long ide_default_io_base(int index)
{
switch (index) {
+#if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_MAPPI2) \
+ || defined(CONFIG_PLAT_OPSPUT)
+ case 0: return 0x1f0;
+#elif defined(CONFIG_PLAT_MAPPI3)
+ case 0: return 0x1f0;
+ case 1: return 0x170;
+#else
case 0: return 0x1f0;
case 1: return 0x170;
case 2: return 0x1e8;
case 3: return 0x168;
case 4: return 0x1e0;
case 5: return 0x160;
+#endif
default:
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists