diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-10-21 09:06:51 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-15 16:51:22 -0500 |
commit | d9b79fb56829de34eaddb01b405216eddd0d3b10 (patch) | |
tree | 3b22ecbb2946d237590f34efd558ac58fb8fc90b /arch/arm/plat-s3c64xx/irq.c | |
parent | d626aeedc96e21a048f1a300cd6360f3a7be10f2 (diff) |
[ARM] S3C64XX: Add VIC0 and VIC1 sourced interripts
Add and initialise the two VIC (PL192) found on
the S3C64XX series CPUs.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c64xx/irq.c')
-rw-r--r-- | arch/arm/plat-s3c64xx/irq.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c64xx/irq.c b/arch/arm/plat-s3c64xx/irq.c new file mode 100644 index 000000000000..308dc4198a17 --- /dev/null +++ b/arch/arm/plat-s3c64xx/irq.c | |||
@@ -0,0 +1,34 @@ | |||
1 | /* arch/arm/plat-s3c64xx/irq.c | ||
2 | * | ||
3 | * Copyright 2008 Openmoko, Inc. | ||
4 | * Copyright 2008 Simtec Electronics | ||
5 | * Ben Dooks <ben@simtec.co.uk> | ||
6 | * http://armlinux.simtec.co.uk/ | ||
7 | * | ||
8 | * S3C64XX - Interrupt handling | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/interrupt.h> | ||
17 | #include <linux/io.h> | ||
18 | |||
19 | #include <asm/hardware/vic.h> | ||
20 | #include <asm/irq.h> | ||
21 | |||
22 | #include <mach/map.h> | ||
23 | #include <plat/cpu.h> | ||
24 | |||
25 | void __init s3c64xx_init_irq(u32 vic0_valid, u32 vic1_valid) | ||
26 | { | ||
27 | printk(KERN_INFO "%s: initialising interrupts\n", __func__); | ||
28 | |||
29 | /* initialise the pair of VICs */ | ||
30 | vic_init(S3C_VA_VIC0, S3C_VIC0_BASE, vic0_valid); | ||
31 | vic_init(S3C_VA_VIC1, S3C_VIC1_BASE, vic1_valid); | ||
32 | } | ||
33 | |||
34 | |||