diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:27 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:27 -0400 |
commit | ac32f3238c1d95a6ebea2c312160dbdbd61bf91c (patch) | |
tree | 92ac5f6b95a292d11782c1faec81dde8acc9af70 /include/asm-m32r | |
parent | b0a62817961796f6dcef5f316134d8bc7279bf6e (diff) |
ide-generic: fix ide_default_io_base() for m32r
Fix ide_default_io_base() to match ide_default_irq().
Cc: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/asm-m32r')
-rw-r--r-- | include/asm-m32r/ide.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-m32r/ide.h b/include/asm-m32r/ide.h index 1e7f6474d130..72798d624221 100644 --- a/include/asm-m32r/ide.h +++ b/include/asm-m32r/ide.h | |||
@@ -52,12 +52,20 @@ static __inline__ int ide_default_irq(unsigned long base) | |||
52 | static __inline__ unsigned long ide_default_io_base(int index) | 52 | static __inline__ unsigned long ide_default_io_base(int index) |
53 | { | 53 | { |
54 | switch (index) { | 54 | switch (index) { |
55 | #if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_MAPPI2) \ | ||
56 | || defined(CONFIG_PLAT_OPSPUT) | ||
57 | case 0: return 0x1f0; | ||
58 | #elif defined(CONFIG_PLAT_MAPPI3) | ||
59 | case 0: return 0x1f0; | ||
60 | case 1: return 0x170; | ||
61 | #else | ||
55 | case 0: return 0x1f0; | 62 | case 0: return 0x1f0; |
56 | case 1: return 0x170; | 63 | case 1: return 0x170; |
57 | case 2: return 0x1e8; | 64 | case 2: return 0x1e8; |
58 | case 3: return 0x168; | 65 | case 3: return 0x168; |
59 | case 4: return 0x1e0; | 66 | case 4: return 0x1e0; |
60 | case 5: return 0x160; | 67 | case 5: return 0x160; |
68 | #endif | ||
61 | default: | 69 | default: |
62 | return 0; | 70 | return 0; |
63 | } | 71 | } |