Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/gregkh/driver...
[linux-2.6/verdex.git] / arch / sh / boards / renesas / systemh / setup.c
blob826fa3d7669c7952fee3655d8b7c126077a297b6
1 /*
2 * linux/arch/sh/boards/systemh/setup.c
4 * Copyright (C) 2000 Kazumoto Kojima
5 * Copyright (C) 2003 Paul Mundt
7 * Hitachi SystemH Support.
9 * Modified for 7751 SystemH by Jonathan Short.
11 * Rewritten for 2.6 by Paul Mundt.
13 * This file is subject to the terms and conditions of the GNU General Public
14 * License. See the file "COPYING" in the main directory of this archive
15 * for more details.
17 #include <linux/init.h>
18 #include <asm/mach/7751systemh.h>
19 #include <asm/mach/io.h>
20 #include <asm/machvec.h>
22 extern void make_systemh_irq(unsigned int irq);
24 const char *get_system_type(void)
26 return "7751 SystemH";
30 * Initialize IRQ setting
32 void __init init_7751systemh_IRQ(void)
34 /* make_ipr_irq(10, BCR_ILCRD, 1, 0x0f-10); LAN */
35 /* make_ipr_irq(14, BCR_ILCRA, 2, 0x0f-4); */
36 make_systemh_irq(0xb); /* Ethernet interrupt */
39 struct sh_machine_vector mv_7751systemh __initmv = {
40 .mv_nr_irqs = 72,
42 .mv_inb = sh7751systemh_inb,
43 .mv_inw = sh7751systemh_inw,
44 .mv_inl = sh7751systemh_inl,
45 .mv_outb = sh7751systemh_outb,
46 .mv_outw = sh7751systemh_outw,
47 .mv_outl = sh7751systemh_outl,
49 .mv_inb_p = sh7751systemh_inb_p,
50 .mv_inw_p = sh7751systemh_inw,
51 .mv_inl_p = sh7751systemh_inl,
52 .mv_outb_p = sh7751systemh_outb_p,
53 .mv_outw_p = sh7751systemh_outw,
54 .mv_outl_p = sh7751systemh_outl,
56 .mv_insb = sh7751systemh_insb,
57 .mv_insw = sh7751systemh_insw,
58 .mv_insl = sh7751systemh_insl,
59 .mv_outsb = sh7751systemh_outsb,
60 .mv_outsw = sh7751systemh_outsw,
61 .mv_outsl = sh7751systemh_outsl,
63 .mv_readb = sh7751systemh_readb,
64 .mv_readw = sh7751systemh_readw,
65 .mv_readl = sh7751systemh_readl,
66 .mv_writeb = sh7751systemh_writeb,
67 .mv_writew = sh7751systemh_writew,
68 .mv_writel = sh7751systemh_writel,
70 .mv_isa_port2addr = sh7751systemh_isa_port2addr,
72 .mv_init_irq = init_7751systemh_IRQ,
74 ALIAS_MV(7751systemh)
76 int __init platform_setup(void)
78 return 0;