diff options
author | David Howells <dhowells@redhat.com> | 2008-02-08 07:19:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:30 -0500 |
commit | b920de1b77b72ca9432ac3f97edb26541e65e5dd (patch) | |
tree | 40fa9be1470e929c47927dea7eddf184c0204229 /arch/mn10300/unit-asb2303/unit-init.c | |
parent | ef3d534754f31fed9c3b976fee1ece1b3bc38282 (diff) |
mn10300: add the MN10300/AM33 architecture to the kernel
Add architecture support for the MN10300/AM33 CPUs produced by MEI to the
kernel.
This patch also adds board support for the ASB2303 with the ASB2308 daughter
board, and the ASB2305. The only processor supported is the MN103E010, which
is an AM33v2 core plus on-chip devices.
[akpm@linux-foundation.org: nuke cvs control strings]
Signed-off-by: Masakazu Urade <urade.masakazu@jp.panasonic.com>
Signed-off-by: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mn10300/unit-asb2303/unit-init.c')
-rw-r--r-- | arch/mn10300/unit-asb2303/unit-init.c | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/arch/mn10300/unit-asb2303/unit-init.c b/arch/mn10300/unit-asb2303/unit-init.c new file mode 100644 index 000000000000..14b2c817cff8 --- /dev/null +++ b/arch/mn10300/unit-asb2303/unit-init.c | |||
@@ -0,0 +1,60 @@ | |||
1 | /* ASB2303 initialisation | ||
2 | * | ||
3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | ||
4 | * Written by David Howells (dhowells@redhat.com) | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public Licence | ||
8 | * as published by the Free Software Foundation; either version | ||
9 | * 2 of the Licence, or (at your option) any later version. | ||
10 | */ | ||
11 | |||
12 | #include <linux/kernel.h> | ||
13 | #include <linux/param.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/device.h> | ||
16 | |||
17 | #include <asm/io.h> | ||
18 | #include <asm/setup.h> | ||
19 | #include <asm/processor.h> | ||
20 | #include <asm/irq.h> | ||
21 | #include <asm/intctl-regs.h> | ||
22 | |||
23 | /* | ||
24 | * initialise some of the unit hardware before gdbstub is set up | ||
25 | */ | ||
26 | asmlinkage void __init unit_init(void) | ||
27 | { | ||
28 | /* set up the external interrupts */ | ||
29 | SET_XIRQ_TRIGGER(0, XIRQ_TRIGGER_HILEVEL); | ||
30 | SET_XIRQ_TRIGGER(2, XIRQ_TRIGGER_LOWLEVEL); | ||
31 | SET_XIRQ_TRIGGER(3, XIRQ_TRIGGER_HILEVEL); | ||
32 | SET_XIRQ_TRIGGER(4, XIRQ_TRIGGER_LOWLEVEL); | ||
33 | SET_XIRQ_TRIGGER(5, XIRQ_TRIGGER_LOWLEVEL); | ||
34 | } | ||
35 | |||
36 | /* | ||
37 | * initialise the rest of the unit hardware after gdbstub is ready | ||
38 | */ | ||
39 | void __init unit_setup(void) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | /* | ||
44 | * initialise the external interrupts used by a unit of this type | ||
45 | */ | ||
46 | void __init unit_init_IRQ(void) | ||
47 | { | ||
48 | unsigned int extnum; | ||
49 | |||
50 | for (extnum = 0; extnum < NR_XIRQS; extnum++) { | ||
51 | switch (GET_XIRQ_TRIGGER(extnum)) { | ||
52 | case XIRQ_TRIGGER_HILEVEL: | ||
53 | case XIRQ_TRIGGER_LOWLEVEL: | ||
54 | set_irq_handler(XIRQ2IRQ(extnum), handle_level_irq); | ||
55 | break; | ||
56 | default: | ||
57 | break; | ||
58 | } | ||
59 | } | ||
60 | } | ||