aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/landisk
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-09-27 05:17:31 -0400
committerPaul Mundt <lethal@linux-sh.org>2006-09-27 05:17:31 -0400
commit2c7834a6f15fe6c50ed4766f1bb6f9183b9e2740 (patch)
tree2dee1fc4b2cd69d8e7f07e0462c57c98261a9fcf /arch/sh/boards/landisk
parentbc8fb5d0471473f775378d09db712dcb8eeece75 (diff)
sh: machvec rework.
Some more machvec overhauling and setup code cleanup. Kill off get_system_type() and platform_setup(), we can do these both through the machvec. While we're add it, kill off more useless mach.c's and drop some legacy cruft from setup.c. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/landisk')
-rw-r--r--arch/sh/boards/landisk/setup.c92
1 files changed, 45 insertions, 47 deletions
diff --git a/arch/sh/boards/landisk/setup.c b/arch/sh/boards/landisk/setup.c
index 3a795cfb1eda..127b9e020e00 100644
--- a/arch/sh/boards/landisk/setup.c
+++ b/arch/sh/boards/landisk/setup.c
@@ -69,42 +69,6 @@ static void heartbeat_landisk(void)
69 landisk_buzzerparam >>= 1; 69 landisk_buzzerparam >>= 1;
70} 70}
71 71
72/*
73 * The Machine Vector
74 */
75struct sh_machine_vector mv_landisk __initmv = {
76 .mv_nr_irqs = 72,
77 .mv_inb = landisk_inb,
78 .mv_inw = landisk_inw,
79 .mv_inl = landisk_inl,
80 .mv_outb = landisk_outb,
81 .mv_outw = landisk_outw,
82 .mv_outl = landisk_outl,
83 .mv_inb_p = landisk_inb_p,
84 .mv_inw_p = landisk_inw,
85 .mv_inl_p = landisk_inl,
86 .mv_outb_p = landisk_outb_p,
87 .mv_outw_p = landisk_outw,
88 .mv_outl_p = landisk_outl,
89 .mv_insb = landisk_insb,
90 .mv_insw = landisk_insw,
91 .mv_insl = landisk_insl,
92 .mv_outsb = landisk_outsb,
93 .mv_outsw = landisk_outsw,
94 .mv_outsl = landisk_outsl,
95 .mv_ioport_map = landisk_ioport_map,
96 .mv_init_irq = init_landisk_IRQ,
97#ifdef CONFIG_HEARTBEAT
98 .mv_heartbeat = heartbeat_landisk,
99#endif
100};
101ALIAS_MV(landisk)
102
103const char *get_system_type(void)
104{
105 return "LANDISK";
106}
107
108static void landisk_power_off(void) 72static void landisk_power_off(void)
109{ 73{
110 ctrl_outb(0x01, PA_SHUTDOWN); 74 ctrl_outb(0x01, PA_SHUTDOWN);
@@ -132,16 +96,6 @@ static void check_usl5p(void)
132 } 96 }
133} 97}
134 98
135void __init platform_setup(void)
136{
137 landisk_buzzerparam = 0;
138 check_usl5p();
139
140 printk(KERN_INFO "I-O DATA DEVICE, INC. \"LANDISK Series\" support.\n");
141 board_time_init = landisk_time_init;
142 pm_power_off = landisk_power_off;
143}
144
145void *area5_io_base; 99void *area5_io_base;
146void *area6_io_base; 100void *area6_io_base;
147 101
@@ -176,4 +130,48 @@ static int __init landisk_cf_init(void)
176 return 0; 130 return 0;
177} 131}
178 132
179__initcall(landisk_cf_init); 133static void __init landisk_setup(char **cmdline_p)
134{
135 device_initcall(landisk_cf_init);
136
137 landisk_buzzerparam = 0;
138 check_usl5p();
139
140 printk(KERN_INFO "I-O DATA DEVICE, INC. \"LANDISK Series\" support.\n");
141
142 board_time_init = landisk_time_init;
143 pm_power_off = landisk_power_off;
144}
145
146/*
147 * The Machine Vector
148 */
149struct sh_machine_vector mv_landisk __initmv = {
150 .mv_name = "LANDISK",
151 .mv_setup = landisk_setup,
152 .mv_nr_irqs = 72,
153 .mv_inb = landisk_inb,
154 .mv_inw = landisk_inw,
155 .mv_inl = landisk_inl,
156 .mv_outb = landisk_outb,
157 .mv_outw = landisk_outw,
158 .mv_outl = landisk_outl,
159 .mv_inb_p = landisk_inb_p,
160 .mv_inw_p = landisk_inw,
161 .mv_inl_p = landisk_inl,
162 .mv_outb_p = landisk_outb_p,
163 .mv_outw_p = landisk_outw,
164 .mv_outl_p = landisk_outl,
165 .mv_insb = landisk_insb,
166 .mv_insw = landisk_insw,
167 .mv_insl = landisk_insl,
168 .mv_outsb = landisk_outsb,
169 .mv_outsw = landisk_outsw,
170 .mv_outsl = landisk_outsl,
171 .mv_ioport_map = landisk_ioport_map,
172 .mv_init_irq = init_landisk_IRQ,
173#ifdef CONFIG_HEARTBEAT
174 .mv_heartbeat = heartbeat_landisk,
175#endif
176};
177ALIAS_MV(landisk)