Skip to content

Commit

Permalink
ide-generic: fix ide_default_io_base() for m32r
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Jul 24, 2008
1 parent b0a6281 commit ac32f32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/asm-m32r/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,20 @@ static __inline__ int ide_default_irq(unsigned long base)
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;
}
Expand Down

0 comments on commit ac32f32

Please sign in to comment.