Commit 43eeb0fb authored by Paul Mundt's avatar Paul Mundt

sh: mach-sh03: Use __set_io_port_base(), kill off special ioport_map().

This also fixes up a long-standing bug for this platform where the PIO
base was set to a register offset, rather than the actual PIO offset
itself.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 8db806ec
...@@ -21,14 +21,6 @@ static void __init init_sh03_IRQ(void) ...@@ -21,14 +21,6 @@ static void __init init_sh03_IRQ(void)
plat_irq_setup_pins(IRQ_MODE_IRQ); plat_irq_setup_pins(IRQ_MODE_IRQ);
} }
static void __iomem *sh03_ioport_map(unsigned long port, unsigned int size)
{
if (PXSEG(port))
return (void __iomem *)port;
return (void __iomem *)(port + PCI_IO_BASE);
}
/* arch/sh/boards/sh03/rtc.c */ /* arch/sh/boards/sh03/rtc.c */
void sh03_time_init(void); void sh03_time_init(void);
...@@ -99,6 +91,5 @@ static struct sh_machine_vector mv_sh03 __initmv = { ...@@ -99,6 +91,5 @@ static struct sh_machine_vector mv_sh03 __initmv = {
.mv_name = "Interface (CTP/PCI-SH03)", .mv_name = "Interface (CTP/PCI-SH03)",
.mv_setup = sh03_setup, .mv_setup = sh03_setup,
.mv_nr_irqs = 48, .mv_nr_irqs = 48,
.mv_ioport_map = sh03_ioport_map,
.mv_init_irq = init_sh03_IRQ, .mv_init_irq = init_sh03_IRQ,
}; };
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
int __init pcibios_init_platform(void) int __init pcibios_init_platform(void)
{ {
__set_io_port_base(SH7751_PCI_IO_BASE);
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment