Commit b0d98dc504c3f29cc4647fff87a5061be5f0f3d7

Authored by Nobuhiro Iwamatsu
Committed by Paul Mundt
1 parent 78ffeec462

sh: Support PCI IO access of SH7780 base boards.

The IO access of PCI is not supported in R7780RP and the MS7780SE
board now. The support of the IO access mode of e100 and a lot of IDE
chips becomes possible by fixing the code.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff

arch/sh/drivers/pci/ops-r7780rp.c
... ... @@ -40,8 +40,8 @@
40 40  
41 41 static struct resource sh7780_io_resource = {
42 42 .name = "SH7780_IO",
43   - .start = 0x2000,
44   - .end = 0x2000 + SH7780_PCI_IO_SIZE - 1,
  43 + .start = SH7780_PCI_IO_BASE,
  44 + .end = SH7780_PCI_IO_BASE + SH7780_PCI_IO_SIZE - 1,
45 45 .flags = IORESOURCE_IO
46 46 };
47 47  
arch/sh/drivers/pci/ops-se7780.c
... ... @@ -43,8 +43,8 @@
43 43  
44 44 static struct resource se7780_io_resource = {
45 45 .name = "SH7780_IO",
46   - .start = 0x2000,
47   - .end = 0x2000 + SH7780_PCI_IO_SIZE - 1,
  46 + .start = SH7780_PCI_IO_BASE,
  47 + .end = SH7780_PCI_IO_BASE + SH7780_PCI_IO_SIZE - 1,
48 48 .flags = IORESOURCE_IO
49 49 };
50 50