aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/sh03
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-09-27 02:41:24 -0400
committerPaul Mundt <lethal@linux-sh.org>2006-09-27 02:41:24 -0400
commit373e68b5472d421cbd2703e7a77caf053f78c005 (patch)
tree6fed51fdf1b89f80a1ec9ea4aab285c1af649945 /arch/sh/boards/sh03
parentf647d33f879d258de4ab2559975bd6eebda2033e (diff)
sh: Board updates for I/O routine rework.
This updates the various boards for some of the recent I/O routine updates. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/sh03')
-rw-r--r--arch/sh/boards/sh03/setup.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/arch/sh/boards/sh03/setup.c b/arch/sh/boards/sh03/setup.c
index 60290f8f289c..dab742a00c6f 100644
--- a/arch/sh/boards/sh03/setup.c
+++ b/arch/sh/boards/sh03/setup.c
@@ -7,22 +7,19 @@
7 7
8#include <linux/init.h> 8#include <linux/init.h>
9#include <linux/irq.h> 9#include <linux/irq.h>
10#include <linux/hdreg.h>
11#include <linux/ide.h>
12#include <asm/io.h> 10#include <asm/io.h>
11#include <asm/rtc.h>
13#include <asm/sh03/io.h> 12#include <asm/sh03/io.h>
14#include <asm/sh03/sh03.h> 13#include <asm/sh03/sh03.h>
15#include <asm/addrspace.h> 14#include <asm/addrspace.h>
16#include "../../drivers/pci/pci-sh7751.h" 15#include "../../drivers/pci/pci-sh7751.h"
17 16
18extern void (*board_time_init)(void);
19
20const char *get_system_type(void) 17const char *get_system_type(void)
21{ 18{
22 return "Interface CTP/PCI-SH03)"; 19 return "Interface CTP/PCI-SH03)";
23} 20}
24 21
25void init_sh03_IRQ(void) 22static void init_sh03_IRQ(void)
26{ 23{
27 ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR); 24 ctrl_outw(ctrl_inw(INTC_ICR) | INTC_ICR_IRLM, INTC_ICR);
28 25
@@ -34,24 +31,20 @@ void init_sh03_IRQ(void)
34 31
35extern void *cf_io_base; 32extern void *cf_io_base;
36 33
37unsigned long sh03_isa_port2addr(unsigned long port) 34static void __iomem *sh03_ioport_map(unsigned long port, unsigned int size)
38{ 35{
39 if (PXSEG(port)) 36 if (PXSEG(port))
40 return port; 37 return (void __iomem *)port;
41 /* CompactFlash (IDE) */ 38 /* CompactFlash (IDE) */
42 if (((port >= 0x1f0) && (port <= 0x1f7)) || (port == 0x3f6)) { 39 if (((port >= 0x1f0) && (port <= 0x1f7)) || (port == 0x3f6))
43 return (unsigned long)cf_io_base + port; 40 return (void __iomem *)((unsigned long)cf_io_base + port);
44 }
45 return port + SH7751_PCI_IO_BASE;
46}
47 41
48/* 42 return (void __iomem *)(port + SH7751_PCI_IO_BASE);
49 * The Machine Vector 43}
50 */
51 44
52struct sh_machine_vector mv_sh03 __initmv = { 45struct sh_machine_vector mv_sh03 __initmv = {
53 .mv_nr_irqs = 48, 46 .mv_nr_irqs = 48,
54 .mv_isa_port2addr = sh03_isa_port2addr, 47 .mv_ioport_map = sh03_ioport_map,
55 .mv_init_irq = init_sh03_IRQ, 48 .mv_init_irq = init_sh03_IRQ,
56 49
57#ifdef CONFIG_HEARTBEAT 50#ifdef CONFIG_HEARTBEAT