Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
[pandora-kernel.git] / arch / sh / boards / renesas / systemh / setup.c
1 /*
2  * linux/arch/sh/boards/systemh/setup.c
3  *
4  * Copyright (C) 2000  Kazumoto Kojima
5  * Copyright (C) 2003  Paul Mundt
6  *
7  * Hitachi SystemH Support.
8  *
9  * Modified for 7751 SystemH by Jonathan Short.
10  *
11  * Rewritten for 2.6 by Paul Mundt.
12  *
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.
16  */
17 #include <linux/init.h>
18 #include <asm/mach/7751systemh.h>
19 #include <asm/mach/io.h>
20 #include <asm/machvec.h>
21
22 extern void make_systemh_irq(unsigned int irq);
23
24 const char *get_system_type(void)
25 {
26         return "7751 SystemH";
27 }
28
29 /*
30  * Initialize IRQ setting
31  */
32 void __init init_7751systemh_IRQ(void)
33 {
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 */
37 }
38
39 struct sh_machine_vector mv_7751systemh __initmv = {
40         .mv_nr_irqs             = 72,
41
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,
48
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,
55
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,
62
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,
69
70         .mv_isa_port2addr       = sh7751systemh_isa_port2addr,
71
72         .mv_init_irq            = init_7751systemh_IRQ,
73 };
74 ALIAS_MV(7751systemh)
75
76 int __init platform_setup(void)
77 {
78         return 0;
79 }
80