diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-28 17:32:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-28 17:32:00 -0400 |
commit | 9e3ee1c39c0cc71222f9980ccbf87fe072897eef (patch) | |
tree | 99462000e6f0d4f907cb2fc690f19d4d441ba0f3 /arch/sh/boards/renesas/sh7763rdp/irq.c | |
parent | e56b3bc7942982ac2589c942fb345e38bc7a341a (diff) | |
parent | f934fb19ef34730263e6afc01e8ec27a8a71470f (diff) |
Merge branch 'linus' into cpus4096
Conflicts:
kernel/stop_machine.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/sh/boards/renesas/sh7763rdp/irq.c')
-rw-r--r-- | arch/sh/boards/renesas/sh7763rdp/irq.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/sh/boards/renesas/sh7763rdp/irq.c b/arch/sh/boards/renesas/sh7763rdp/irq.c new file mode 100644 index 000000000000..fd850bad2dec --- /dev/null +++ b/arch/sh/boards/renesas/sh7763rdp/irq.c | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * linux/arch/sh/boards/renesas/sh7763rdp/irq.c | ||
3 | * | ||
4 | * Renesas Solutions SH7763RDP Support. | ||
5 | * | ||
6 | * Copyright (C) 2008 Renesas Solutions Corp. | ||
7 | * Copyright (C) 2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> | ||
8 | * | ||
9 | * This file is subject to the terms and conditions of the GNU General Public | ||
10 | * License. See the file "COPYING" in the main directory of this archive | ||
11 | * for more details. | ||
12 | */ | ||
13 | |||
14 | #include <linux/init.h> | ||
15 | #include <linux/irq.h> | ||
16 | #include <asm/io.h> | ||
17 | #include <asm/irq.h> | ||
18 | #include <asm/sh7763rdp.h> | ||
19 | |||
20 | #define INTC_BASE (0xFFD00000) | ||
21 | #define INTC_INT2PRI7 (INTC_BASE+0x4001C) | ||
22 | #define INTC_INT2MSKCR (INTC_BASE+0x4003C) | ||
23 | #define INTC_INT2MSKCR1 (INTC_BASE+0x400D4) | ||
24 | |||
25 | /* | ||
26 | * Initialize IRQ setting | ||
27 | */ | ||
28 | void __init init_sh7763rdp_IRQ(void) | ||
29 | { | ||
30 | /* GPIO enabled */ | ||
31 | ctrl_outl(1 << 25, INTC_INT2MSKCR); | ||
32 | |||
33 | /* enable GPIO interrupts */ | ||
34 | ctrl_outl((ctrl_inl(INTC_INT2PRI7) & 0xFF00FFFF) | 0x000F0000, | ||
35 | INTC_INT2PRI7); | ||
36 | |||
37 | /* USBH enabled */ | ||
38 | ctrl_outl(1 << 17, INTC_INT2MSKCR1); | ||
39 | |||
40 | /* GETHER enabled */ | ||
41 | ctrl_outl(1 << 16, INTC_INT2MSKCR1); | ||
42 | |||
43 | /* DMAC enabled */ | ||
44 | ctrl_outl(1 << 8, INTC_INT2MSKCR); | ||
45 | } | ||