blob: ff1a76011b1ed2a2e2e547399fd230decc63d956 [file] [log] [blame]
Kukjin Kim68ae8992012-04-15 21:40:33 -07001/*
Kukjin Kimb7db51b2010-01-14 08:14:40 +09002 * 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 Herring9e47b8b2013-01-07 09:45:59 -060016#include <linux/irqchip/arm-vic.h>
Kukjin Kimb7db51b2010-01-14 08:14:40 +090017
Arnd Bergmann7ba80222013-03-05 11:28:29 +010018#include <mach/irqs.h>
Kukjin Kimb7db51b2010-01-14 08:14:40 +090019#include <mach/map.h>
20#include <plat/regs-timer.h>
Kukjin Kimb7db51b2010-01-14 08:14:40 +090021#include <plat/cpu.h>
22#include <plat/irq-vic-timer.h>
Kukjin Kimb7db51b2010-01-14 08:14:40 +090023
24void __init s5p_init_irq(u32 *vic, u32 num_vic)
25{
Changhwan Youn84bbc162010-07-16 12:12:07 +090026#ifdef CONFIG_ARM_VIC
Kukjin Kimb7db51b2010-01-14 08:14:40 +090027 int irq;
28
29 /* initialize the VICs */
30 for (irq = 0; irq < num_vic; irq++)
Kukjin Kim81317962010-01-27 16:57:07 +090031 vic_init(VA_VIC(irq), VIC_BASE(irq), vic[irq], 0);
Changhwan Youn84bbc162010-07-16 12:12:07 +090032#endif
Kukjin Kimb7db51b2010-01-14 08:14:40 +090033
Thomas Gleixner2d2e1d32011-05-09 10:09:26 +020034 s3c_init_vic_timer_irq(5, IRQ_TIMER0);
Kukjin Kimb7db51b2010-01-14 08:14:40 +090035}