sh: fix pci io access for r2d boards

Use generic_io_base to point out the pci io window, and make sure the
highest port address used is SH7751_PCI_IO_SIZE - 1.

This patch fixes pci io port access for the r2d boards - CONFIG_8139TOO_PIO
now works as expected. So does the alsa driver for CMI8738.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Katsuya MATSUBARA <matsu@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by Magnus Damm and committed by Paul Mundt 123100cf c0ca41a2

+2 -1
+2 -1
arch/sh/drivers/pci/ops-rts7751r2d.c
··· 33 33 static struct resource sh7751_io_resource = { 34 34 .name = "SH7751_IO", 35 35 .start = 0x4000, 36 - .end = 0x4000 + SH7751_PCI_IO_SIZE - 1, 36 + .end = SH7751_PCI_IO_SIZE - 1, 37 37 .flags = IORESOURCE_IO 38 38 }; 39 39 ··· 68 68 69 69 int __init pcibios_init_platform(void) 70 70 { 71 + __set_io_port_base(SH7751_PCI_IO_BASE); 71 72 return sh7751_pcic_init(&sh7751_pci_map); 72 73 } 73 74