Kukjin Kim | 68ae899 | 2012-04-15 21:40:33 -0700 | [diff] [blame] | 1 | /* |
Kukjin Kim | b7db51b | 2010-01-14 08:14:40 +0900 | [diff] [blame] | 2 | * Copyright (c) 2009 Samsung Electronics Co., Ltd. |
| 3 | * http://www.samsung.com/ |
| 4 | * |
| 5 | * S5P - Interrupt handling |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/kernel.h> |
| 13 | #include <linux/interrupt.h> |
| 14 | #include <linux/irq.h> |
| 15 | #include <linux/io.h> |
Rob Herring | 9e47b8b | 2013-01-07 09:45:59 -0600 | [diff] [blame] | 16 | #include <linux/irqchip/arm-vic.h> |
Kukjin Kim | b7db51b | 2010-01-14 08:14:40 +0900 | [diff] [blame] | 17 | |
Arnd Bergmann | 7ba8022 | 2013-03-05 11:28:29 +0100 | [diff] [blame] | 18 | #include <mach/irqs.h> |
Kukjin Kim | b7db51b | 2010-01-14 08:14:40 +0900 | [diff] [blame] | 19 | #include <mach/map.h> |
Kukjin Kim | b7db51b | 2010-01-14 08:14:40 +0900 | [diff] [blame] | 20 | #include <plat/cpu.h> |
Kukjin Kim | b7db51b | 2010-01-14 08:14:40 +0900 | [diff] [blame] | 21 | |
| 22 | void __init s5p_init_irq(u32 *vic, u32 num_vic) |
| 23 | { |
Changhwan Youn | 84bbc16 | 2010-07-16 12:12:07 +0900 | [diff] [blame] | 24 | #ifdef CONFIG_ARM_VIC |
Kukjin Kim | b7db51b | 2010-01-14 08:14:40 +0900 | [diff] [blame] | 25 | int irq; |
| 26 | |
| 27 | /* initialize the VICs */ |
| 28 | for (irq = 0; irq < num_vic; irq++) |
Kukjin Kim | 8131796 | 2010-01-27 16:57:07 +0900 | [diff] [blame] | 29 | vic_init(VA_VIC(irq), VIC_BASE(irq), vic[irq], 0); |
Changhwan Youn | 84bbc16 | 2010-07-16 12:12:07 +0900 | [diff] [blame] | 30 | #endif |
Kukjin Kim | b7db51b | 2010-01-14 08:14:40 +0900 | [diff] [blame] | 31 | } |