aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/boards/mpc1211/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/boards/mpc1211/setup.c')
-rw-r--r--arch/sh/boards/mpc1211/setup.c42
1 files changed, 17 insertions, 25 deletions
diff --git a/arch/sh/boards/mpc1211/setup.c b/arch/sh/boards/mpc1211/setup.c
index e9c8ff221dda..8eb5d4303972 100644
--- a/arch/sh/boards/mpc1211/setup.c
+++ b/arch/sh/boards/mpc1211/setup.c
@@ -10,14 +10,12 @@
10#include <linux/hdreg.h> 10#include <linux/hdreg.h>
11#include <linux/ide.h> 11#include <linux/ide.h>
12#include <linux/interrupt.h> 12#include <linux/interrupt.h>
13
14#include <asm/io.h> 13#include <asm/io.h>
15#include <asm/machvec.h> 14#include <asm/machvec.h>
16#include <asm/mpc1211/mpc1211.h> 15#include <asm/mpc1211/mpc1211.h>
17#include <asm/mpc1211/pci.h> 16#include <asm/mpc1211/pci.h>
18#include <asm/mpc1211/m1543c.h> 17#include <asm/mpc1211/m1543c.h>
19 18
20
21/* ALI15X3 SMBus address offsets */ 19/* ALI15X3 SMBus address offsets */
22#define SMBHSTSTS (0 + 0x3100) 20#define SMBHSTSTS (0 + 0x3100)
23#define SMBHSTCNT (1 + 0x3100) 21#define SMBHSTCNT (1 + 0x3100)
@@ -50,11 +48,6 @@
50#define ALI15X3_STS_TERM 0x80 /* terminated by abort */ 48#define ALI15X3_STS_TERM 0x80 /* terminated by abort */
51#define ALI15X3_STS_ERR 0xE0 /* all the bad error bits */ 49#define ALI15X3_STS_ERR 0xE0 /* all the bad error bits */
52 50
53const char *get_system_type(void)
54{
55 return "Interface MPC-1211(CTP/PCI/MPC-SH02)";
56}
57
58static void __init pci_write_config(unsigned long busNo, 51static void __init pci_write_config(unsigned long busNo,
59 unsigned long devNo, 52 unsigned long devNo,
60 unsigned long fncNo, 53 unsigned long fncNo,
@@ -205,7 +198,7 @@ int mpc1211_irq_demux(int irq)
205 return irq; 198 return irq;
206} 199}
207 200
208void __init init_mpc1211_IRQ(void) 201static void __init init_mpc1211_IRQ(void)
209{ 202{
210 int i; 203 int i;
211 /* 204 /*
@@ -289,26 +282,10 @@ static int put_smb_blk(unsigned char *p, int address, int command, int no)
289 return 0; 282 return 0;
290} 283}
291 284
292/*
293 * The Machine Vector
294 */
295
296struct sh_machine_vector mv_mpc1211 __initmv = {
297 .mv_nr_irqs = 48,
298 .mv_irq_demux = mpc1211_irq_demux,
299 .mv_init_irq = init_mpc1211_IRQ,
300
301#ifdef CONFIG_HEARTBEAT
302 .mv_heartbeat = heartbeat_mpc1211,
303#endif
304};
305
306ALIAS_MV(mpc1211)
307
308/* arch/sh/boards/mpc1211/rtc.c */ 285/* arch/sh/boards/mpc1211/rtc.c */
309void mpc1211_time_init(void); 286void mpc1211_time_init(void);
310 287
311int __init platform_setup(void) 288static void __init mpc1211_setup(char **cmdline_p)
312{ 289{
313 unsigned char spd_buf[128]; 290 unsigned char spd_buf[128];
314 291
@@ -332,3 +309,18 @@ int __init platform_setup(void)
332 return 0; 309 return 0;
333} 310}
334 311
312/*
313 * The Machine Vector
314 */
315struct sh_machine_vector mv_mpc1211 __initmv = {
316 .mv_name = "Interface MPC-1211(CTP/PCI/MPC-SH02)",
317 .mv_setup = mpc1211_setup,
318 .mv_nr_irqs = 48,
319 .mv_irq_demux = mpc1211_irq_demux,
320 .mv_init_irq = init_mpc1211_IRQ,
321
322#ifdef CONFIG_HEARTBEAT
323 .mv_heartbeat = heartbeat_mpc1211,
324#endif
325};
326ALIAS_MV(mpc1211)