blob: 3302a8dca4e0f1aa4059f072f7205fff538ec9e0 [file] [log] [blame]
Kukjin Kimcc511b82011-12-27 08:18:36 +01001/*
2 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Common Codes for EXYNOS
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>
Linus Torvalds7affca32012-01-07 12:03:30 -080016#include <linux/device.h>
Kukjin Kimcc511b82011-12-27 08:18:36 +010017#include <linux/gpio.h>
18#include <linux/sched.h>
19#include <linux/serial_core.h>
Arnd Bergmann237c78b2012-01-07 12:30:20 +000020#include <linux/of.h>
21#include <linux/of_irq.h>
Kukjin Kimcc511b82011-12-27 08:18:36 +010022
23#include <asm/proc-fns.h>
Arnd Bergmann40ba95f2012-01-07 11:51:28 +000024#include <asm/exception.h>
Kukjin Kimcc511b82011-12-27 08:18:36 +010025#include <asm/hardware/cache-l2x0.h>
26#include <asm/hardware/gic.h>
27#include <asm/mach/map.h>
28#include <asm/mach/irq.h>
Amit Daniel Kachhapb756a502012-03-08 02:07:41 -080029#include <asm/cacheflush.h>
Kukjin Kimcc511b82011-12-27 08:18:36 +010030
31#include <mach/regs-irq.h>
32#include <mach/regs-pmu.h>
33#include <mach/regs-gpio.h>
Amit Daniel Kachhapb756a502012-03-08 02:07:41 -080034#include <mach/pmu.h>
Kukjin Kimcc511b82011-12-27 08:18:36 +010035
36#include <plat/cpu.h>
37#include <plat/clock.h>
38#include <plat/devs.h>
39#include <plat/pm.h>
Kukjin Kimcc511b82011-12-27 08:18:36 +010040#include <plat/sdhci.h>
41#include <plat/gpio-cfg.h>
42#include <plat/adc-core.h>
43#include <plat/fb-core.h>
44#include <plat/fimc-core.h>
45#include <plat/iic-core.h>
46#include <plat/tv-core.h>
47#include <plat/regs-serial.h>
48
49#include "common.h"
Amit Daniel Kachhap6cdeddc2012-03-08 02:09:12 -080050#define L2_AUX_VAL 0x7C470001
51#define L2_AUX_MASK 0xC200ffff
Kukjin Kimcc511b82011-12-27 08:18:36 +010052
Kukjin Kimcc511b82011-12-27 08:18:36 +010053static const char name_exynos4210[] = "EXYNOS4210";
54static const char name_exynos4212[] = "EXYNOS4212";
55static const char name_exynos4412[] = "EXYNOS4412";
Kukjin Kim94c7ca72012-02-11 22:15:45 +090056static const char name_exynos5250[] = "EXYNOS5250";
Kukjin Kimcc511b82011-12-27 08:18:36 +010057
Kukjin Kim906c7892012-02-11 21:27:08 +090058static void exynos4_map_io(void);
Kukjin Kim94c7ca72012-02-11 22:15:45 +090059static void exynos5_map_io(void);
Kukjin Kim906c7892012-02-11 21:27:08 +090060static void exynos4_init_clocks(int xtal);
Kukjin Kim94c7ca72012-02-11 22:15:45 +090061static void exynos5_init_clocks(int xtal);
Kukjin Kim920f4882012-01-24 20:52:52 +090062static void exynos_init_uarts(struct s3c2410_uartcfg *cfg, int no);
Kukjin Kim906c7892012-02-11 21:27:08 +090063static int exynos_init(void);
Kukjin Kimcc511b82011-12-27 08:18:36 +010064
65static struct cpu_table cpu_ids[] __initdata = {
66 {
67 .idcode = EXYNOS4210_CPU_ID,
68 .idmask = EXYNOS4_CPU_MASK,
69 .map_io = exynos4_map_io,
70 .init_clocks = exynos4_init_clocks,
Kukjin Kim920f4882012-01-24 20:52:52 +090071 .init_uarts = exynos_init_uarts,
Kukjin Kimcc511b82011-12-27 08:18:36 +010072 .init = exynos_init,
73 .name = name_exynos4210,
74 }, {
75 .idcode = EXYNOS4212_CPU_ID,
76 .idmask = EXYNOS4_CPU_MASK,
77 .map_io = exynos4_map_io,
78 .init_clocks = exynos4_init_clocks,
Kukjin Kim920f4882012-01-24 20:52:52 +090079 .init_uarts = exynos_init_uarts,
Kukjin Kimcc511b82011-12-27 08:18:36 +010080 .init = exynos_init,
81 .name = name_exynos4212,
82 }, {
83 .idcode = EXYNOS4412_CPU_ID,
84 .idmask = EXYNOS4_CPU_MASK,
85 .map_io = exynos4_map_io,
86 .init_clocks = exynos4_init_clocks,
Kukjin Kim920f4882012-01-24 20:52:52 +090087 .init_uarts = exynos_init_uarts,
Kukjin Kimcc511b82011-12-27 08:18:36 +010088 .init = exynos_init,
89 .name = name_exynos4412,
Kukjin Kim94c7ca72012-02-11 22:15:45 +090090 }, {
91 .idcode = EXYNOS5250_SOC_ID,
92 .idmask = EXYNOS5_SOC_MASK,
93 .map_io = exynos5_map_io,
94 .init_clocks = exynos5_init_clocks,
95 .init_uarts = exynos_init_uarts,
96 .init = exynos_init,
97 .name = name_exynos5250,
Kukjin Kimcc511b82011-12-27 08:18:36 +010098 },
99};
100
101/* Initial IO mappings */
102
103static struct map_desc exynos_iodesc[] __initdata = {
104 {
105 .virtual = (unsigned long)S5P_VA_CHIPID,
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900106 .pfn = __phys_to_pfn(EXYNOS_PA_CHIPID),
Kukjin Kimcc511b82011-12-27 08:18:36 +0100107 .length = SZ_4K,
108 .type = MT_DEVICE,
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900109 },
110};
111
112static struct map_desc exynos4_iodesc[] __initdata = {
113 {
Kukjin Kimcc511b82011-12-27 08:18:36 +0100114 .virtual = (unsigned long)S3C_VA_SYS,
115 .pfn = __phys_to_pfn(EXYNOS4_PA_SYSCON),
116 .length = SZ_64K,
117 .type = MT_DEVICE,
118 }, {
119 .virtual = (unsigned long)S3C_VA_TIMER,
120 .pfn = __phys_to_pfn(EXYNOS4_PA_TIMER),
121 .length = SZ_16K,
122 .type = MT_DEVICE,
123 }, {
124 .virtual = (unsigned long)S3C_VA_WATCHDOG,
125 .pfn = __phys_to_pfn(EXYNOS4_PA_WATCHDOG),
126 .length = SZ_4K,
127 .type = MT_DEVICE,
128 }, {
129 .virtual = (unsigned long)S5P_VA_SROMC,
130 .pfn = __phys_to_pfn(EXYNOS4_PA_SROMC),
131 .length = SZ_4K,
132 .type = MT_DEVICE,
133 }, {
134 .virtual = (unsigned long)S5P_VA_SYSTIMER,
135 .pfn = __phys_to_pfn(EXYNOS4_PA_SYSTIMER),
136 .length = SZ_4K,
137 .type = MT_DEVICE,
138 }, {
139 .virtual = (unsigned long)S5P_VA_PMU,
140 .pfn = __phys_to_pfn(EXYNOS4_PA_PMU),
141 .length = SZ_64K,
142 .type = MT_DEVICE,
143 }, {
144 .virtual = (unsigned long)S5P_VA_COMBINER_BASE,
145 .pfn = __phys_to_pfn(EXYNOS4_PA_COMBINER),
146 .length = SZ_4K,
147 .type = MT_DEVICE,
148 }, {
149 .virtual = (unsigned long)S5P_VA_GIC_CPU,
150 .pfn = __phys_to_pfn(EXYNOS4_PA_GIC_CPU),
151 .length = SZ_64K,
152 .type = MT_DEVICE,
153 }, {
154 .virtual = (unsigned long)S5P_VA_GIC_DIST,
155 .pfn = __phys_to_pfn(EXYNOS4_PA_GIC_DIST),
156 .length = SZ_64K,
157 .type = MT_DEVICE,
158 }, {
159 .virtual = (unsigned long)S3C_VA_UART,
160 .pfn = __phys_to_pfn(EXYNOS4_PA_UART),
161 .length = SZ_512K,
162 .type = MT_DEVICE,
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900163 }, {
Kukjin Kimcc511b82011-12-27 08:18:36 +0100164 .virtual = (unsigned long)S5P_VA_CMU,
165 .pfn = __phys_to_pfn(EXYNOS4_PA_CMU),
166 .length = SZ_128K,
167 .type = MT_DEVICE,
168 }, {
169 .virtual = (unsigned long)S5P_VA_COREPERI_BASE,
170 .pfn = __phys_to_pfn(EXYNOS4_PA_COREPERI),
171 .length = SZ_8K,
172 .type = MT_DEVICE,
173 }, {
174 .virtual = (unsigned long)S5P_VA_L2CC,
175 .pfn = __phys_to_pfn(EXYNOS4_PA_L2CC),
176 .length = SZ_4K,
177 .type = MT_DEVICE,
178 }, {
Kukjin Kimcc511b82011-12-27 08:18:36 +0100179 .virtual = (unsigned long)S5P_VA_DMC0,
180 .pfn = __phys_to_pfn(EXYNOS4_PA_DMC0),
MyungJoo Ham2bde0b02011-12-01 15:12:30 +0900181 .length = SZ_64K,
182 .type = MT_DEVICE,
183 }, {
184 .virtual = (unsigned long)S5P_VA_DMC1,
185 .pfn = __phys_to_pfn(EXYNOS4_PA_DMC1),
186 .length = SZ_64K,
Kukjin Kimcc511b82011-12-27 08:18:36 +0100187 .type = MT_DEVICE,
188 }, {
Kukjin Kimcc511b82011-12-27 08:18:36 +0100189 .virtual = (unsigned long)S3C_VA_USB_HSPHY,
190 .pfn = __phys_to_pfn(EXYNOS4_PA_HSPHY),
191 .length = SZ_4K,
192 .type = MT_DEVICE,
193 },
194};
195
196static struct map_desc exynos4_iodesc0[] __initdata = {
197 {
198 .virtual = (unsigned long)S5P_VA_SYSRAM,
199 .pfn = __phys_to_pfn(EXYNOS4_PA_SYSRAM0),
200 .length = SZ_4K,
201 .type = MT_DEVICE,
202 },
203};
204
205static struct map_desc exynos4_iodesc1[] __initdata = {
206 {
207 .virtual = (unsigned long)S5P_VA_SYSRAM,
208 .pfn = __phys_to_pfn(EXYNOS4_PA_SYSRAM1),
209 .length = SZ_4K,
210 .type = MT_DEVICE,
211 },
212};
213
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900214static struct map_desc exynos5_iodesc[] __initdata = {
215 {
216 .virtual = (unsigned long)S3C_VA_SYS,
217 .pfn = __phys_to_pfn(EXYNOS5_PA_SYSCON),
218 .length = SZ_64K,
219 .type = MT_DEVICE,
220 }, {
221 .virtual = (unsigned long)S3C_VA_TIMER,
222 .pfn = __phys_to_pfn(EXYNOS5_PA_TIMER),
223 .length = SZ_16K,
224 .type = MT_DEVICE,
225 }, {
226 .virtual = (unsigned long)S3C_VA_WATCHDOG,
227 .pfn = __phys_to_pfn(EXYNOS5_PA_WATCHDOG),
228 .length = SZ_4K,
229 .type = MT_DEVICE,
230 }, {
231 .virtual = (unsigned long)S5P_VA_SROMC,
232 .pfn = __phys_to_pfn(EXYNOS5_PA_SROMC),
233 .length = SZ_4K,
234 .type = MT_DEVICE,
235 }, {
236 .virtual = (unsigned long)S5P_VA_SYSTIMER,
237 .pfn = __phys_to_pfn(EXYNOS5_PA_SYSTIMER),
238 .length = SZ_4K,
239 .type = MT_DEVICE,
240 }, {
241 .virtual = (unsigned long)S5P_VA_SYSRAM,
242 .pfn = __phys_to_pfn(EXYNOS5_PA_SYSRAM),
243 .length = SZ_4K,
244 .type = MT_DEVICE,
245 }, {
246 .virtual = (unsigned long)S5P_VA_CMU,
247 .pfn = __phys_to_pfn(EXYNOS5_PA_CMU),
248 .length = 144 * SZ_1K,
249 .type = MT_DEVICE,
250 }, {
251 .virtual = (unsigned long)S5P_VA_PMU,
252 .pfn = __phys_to_pfn(EXYNOS5_PA_PMU),
253 .length = SZ_64K,
254 .type = MT_DEVICE,
255 }, {
256 .virtual = (unsigned long)S5P_VA_COMBINER_BASE,
257 .pfn = __phys_to_pfn(EXYNOS5_PA_COMBINER),
258 .length = SZ_4K,
259 .type = MT_DEVICE,
260 }, {
261 .virtual = (unsigned long)S3C_VA_UART,
262 .pfn = __phys_to_pfn(EXYNOS5_PA_UART),
263 .length = SZ_512K,
264 .type = MT_DEVICE,
265 }, {
266 .virtual = (unsigned long)S5P_VA_GIC_CPU,
267 .pfn = __phys_to_pfn(EXYNOS5_PA_GIC_CPU),
Changhwan Younc9ce7db2012-04-24 14:31:11 -0700268 .length = SZ_8K,
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900269 .type = MT_DEVICE,
270 }, {
271 .virtual = (unsigned long)S5P_VA_GIC_DIST,
272 .pfn = __phys_to_pfn(EXYNOS5_PA_GIC_DIST),
Changhwan Younc9ce7db2012-04-24 14:31:11 -0700273 .length = SZ_4K,
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900274 .type = MT_DEVICE,
275 },
276};
277
Russell King9eb48592012-01-03 11:56:53 +0100278void exynos4_restart(char mode, const char *cmd)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100279{
280 __raw_writel(0x1, S5P_SWRESET);
281}
282
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900283void exynos5_restart(char mode, const char *cmd)
284{
285 __raw_writel(0x1, EXYNOS_SWRESET);
286}
287
Kukjin Kimcc511b82011-12-27 08:18:36 +0100288/*
289 * exynos_map_io
290 *
291 * register the standard cpu IO areas
292 */
293
294void __init exynos_init_io(struct map_desc *mach_desc, int size)
295{
296 /* initialize the io descriptors we need for initialization */
297 iotable_init(exynos_iodesc, ARRAY_SIZE(exynos_iodesc));
298 if (mach_desc)
299 iotable_init(mach_desc, size);
300
301 /* detect cpu id and rev. */
302 s5p_init_cpu(S5P_VA_CHIPID);
303
304 s3c_init_cpu(samsung_cpu_id, cpu_ids, ARRAY_SIZE(cpu_ids));
305}
306
Kukjin Kim906c7892012-02-11 21:27:08 +0900307static void __init exynos4_map_io(void)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100308{
309 iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc));
310
311 if (soc_is_exynos4210() && samsung_rev() == EXYNOS4210_REV_0)
312 iotable_init(exynos4_iodesc0, ARRAY_SIZE(exynos4_iodesc0));
313 else
314 iotable_init(exynos4_iodesc1, ARRAY_SIZE(exynos4_iodesc1));
315
316 /* initialize device information early */
317 exynos4_default_sdhci0();
318 exynos4_default_sdhci1();
319 exynos4_default_sdhci2();
320 exynos4_default_sdhci3();
321
322 s3c_adc_setname("samsung-adc-v3");
323
324 s3c_fimc_setname(0, "exynos4-fimc");
325 s3c_fimc_setname(1, "exynos4-fimc");
326 s3c_fimc_setname(2, "exynos4-fimc");
327 s3c_fimc_setname(3, "exynos4-fimc");
328
Thomas Abraham8482c812012-04-14 08:04:46 -0700329 s3c_sdhci_setname(0, "exynos4-sdhci");
330 s3c_sdhci_setname(1, "exynos4-sdhci");
331 s3c_sdhci_setname(2, "exynos4-sdhci");
332 s3c_sdhci_setname(3, "exynos4-sdhci");
333
Kukjin Kimcc511b82011-12-27 08:18:36 +0100334 /* The I2C bus controllers are directly compatible with s3c2440 */
335 s3c_i2c0_setname("s3c2440-i2c");
336 s3c_i2c1_setname("s3c2440-i2c");
337 s3c_i2c2_setname("s3c2440-i2c");
338
339 s5p_fb_setname(0, "exynos4-fb");
340 s5p_hdmi_setname("exynos4-hdmi");
341}
342
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900343static void __init exynos5_map_io(void)
344{
345 iotable_init(exynos5_iodesc, ARRAY_SIZE(exynos5_iodesc));
346
Kukjin Kimbb19a752012-01-25 13:48:11 +0900347 s3c_device_i2c0.resource[0].start = EXYNOS5_PA_IIC(0);
348 s3c_device_i2c0.resource[0].end = EXYNOS5_PA_IIC(0) + SZ_4K - 1;
349 s3c_device_i2c0.resource[1].start = EXYNOS5_IRQ_IIC;
350 s3c_device_i2c0.resource[1].end = EXYNOS5_IRQ_IIC;
351
Thomas Abraham8482c812012-04-14 08:04:46 -0700352 s3c_sdhci_setname(0, "exynos4-sdhci");
353 s3c_sdhci_setname(1, "exynos4-sdhci");
354 s3c_sdhci_setname(2, "exynos4-sdhci");
355 s3c_sdhci_setname(3, "exynos4-sdhci");
356
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900357 /* The I2C bus controllers are directly compatible with s3c2440 */
358 s3c_i2c0_setname("s3c2440-i2c");
359 s3c_i2c1_setname("s3c2440-i2c");
360 s3c_i2c2_setname("s3c2440-i2c");
361}
362
Kukjin Kim906c7892012-02-11 21:27:08 +0900363static void __init exynos4_init_clocks(int xtal)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100364{
365 printk(KERN_DEBUG "%s: initializing clocks\n", __func__);
366
367 s3c24xx_register_baseclocks(xtal);
368 s5p_register_clocks(xtal);
369
370 if (soc_is_exynos4210())
371 exynos4210_register_clocks();
372 else if (soc_is_exynos4212() || soc_is_exynos4412())
373 exynos4212_register_clocks();
374
375 exynos4_register_clocks();
376 exynos4_setup_clocks();
377}
378
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900379static void __init exynos5_init_clocks(int xtal)
380{
381 printk(KERN_DEBUG "%s: initializing clocks\n", __func__);
382
383 s3c24xx_register_baseclocks(xtal);
384 s5p_register_clocks(xtal);
385
386 exynos5_register_clocks();
387 exynos5_setup_clocks();
388}
389
Kukjin Kimcc511b82011-12-27 08:18:36 +0100390#define COMBINER_ENABLE_SET 0x0
391#define COMBINER_ENABLE_CLEAR 0x4
392#define COMBINER_INT_STATUS 0xC
393
394static DEFINE_SPINLOCK(irq_controller_lock);
395
396struct combiner_chip_data {
397 unsigned int irq_offset;
398 unsigned int irq_mask;
399 void __iomem *base;
400};
401
402static struct combiner_chip_data combiner_data[MAX_COMBINER_NR];
403
404static inline void __iomem *combiner_base(struct irq_data *data)
405{
406 struct combiner_chip_data *combiner_data =
407 irq_data_get_irq_chip_data(data);
408
409 return combiner_data->base;
410}
411
412static void combiner_mask_irq(struct irq_data *data)
413{
414 u32 mask = 1 << (data->irq % 32);
415
416 __raw_writel(mask, combiner_base(data) + COMBINER_ENABLE_CLEAR);
417}
418
419static void combiner_unmask_irq(struct irq_data *data)
420{
421 u32 mask = 1 << (data->irq % 32);
422
423 __raw_writel(mask, combiner_base(data) + COMBINER_ENABLE_SET);
424}
425
426static void combiner_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
427{
428 struct combiner_chip_data *chip_data = irq_get_handler_data(irq);
429 struct irq_chip *chip = irq_get_chip(irq);
430 unsigned int cascade_irq, combiner_irq;
431 unsigned long status;
432
433 chained_irq_enter(chip, desc);
434
435 spin_lock(&irq_controller_lock);
436 status = __raw_readl(chip_data->base + COMBINER_INT_STATUS);
437 spin_unlock(&irq_controller_lock);
438 status &= chip_data->irq_mask;
439
440 if (status == 0)
441 goto out;
442
443 combiner_irq = __ffs(status);
444
445 cascade_irq = combiner_irq + (chip_data->irq_offset & ~31);
446 if (unlikely(cascade_irq >= NR_IRQS))
447 do_bad_IRQ(cascade_irq, desc);
448 else
449 generic_handle_irq(cascade_irq);
450
451 out:
452 chained_irq_exit(chip, desc);
453}
454
455static struct irq_chip combiner_chip = {
456 .name = "COMBINER",
457 .irq_mask = combiner_mask_irq,
458 .irq_unmask = combiner_unmask_irq,
459};
460
461static void __init combiner_cascade_irq(unsigned int combiner_nr, unsigned int irq)
462{
Kukjin Kimbb19a752012-01-25 13:48:11 +0900463 unsigned int max_nr;
464
465 if (soc_is_exynos5250())
466 max_nr = EXYNOS5_MAX_COMBINER_NR;
467 else
468 max_nr = EXYNOS4_MAX_COMBINER_NR;
469
470 if (combiner_nr >= max_nr)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100471 BUG();
472 if (irq_set_handler_data(irq, &combiner_data[combiner_nr]) != 0)
473 BUG();
474 irq_set_chained_handler(irq, combiner_handle_cascade_irq);
475}
476
477static void __init combiner_init(unsigned int combiner_nr, void __iomem *base,
478 unsigned int irq_start)
479{
480 unsigned int i;
Kukjin Kimbb19a752012-01-25 13:48:11 +0900481 unsigned int max_nr;
Kukjin Kimcc511b82011-12-27 08:18:36 +0100482
Kukjin Kimbb19a752012-01-25 13:48:11 +0900483 if (soc_is_exynos5250())
484 max_nr = EXYNOS5_MAX_COMBINER_NR;
485 else
486 max_nr = EXYNOS4_MAX_COMBINER_NR;
487
488 if (combiner_nr >= max_nr)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100489 BUG();
490
491 combiner_data[combiner_nr].base = base;
492 combiner_data[combiner_nr].irq_offset = irq_start;
493 combiner_data[combiner_nr].irq_mask = 0xff << ((combiner_nr % 4) << 3);
494
495 /* Disable all interrupts */
496
497 __raw_writel(combiner_data[combiner_nr].irq_mask,
498 base + COMBINER_ENABLE_CLEAR);
499
500 /* Setup the Linux IRQ subsystem */
501
502 for (i = irq_start; i < combiner_data[combiner_nr].irq_offset
503 + MAX_IRQ_IN_COMBINER; i++) {
504 irq_set_chip_and_handler(i, &combiner_chip, handle_level_irq);
505 irq_set_chip_data(i, &combiner_data[combiner_nr]);
506 set_irq_flags(i, IRQF_VALID | IRQF_PROBE);
507 }
508}
509
Arnd Bergmann237c78b2012-01-07 12:30:20 +0000510#ifdef CONFIG_OF
511static const struct of_device_id exynos4_dt_irq_match[] = {
512 { .compatible = "arm,cortex-a9-gic", .data = gic_of_init, },
513 {},
514};
515#endif
Kukjin Kimcc511b82011-12-27 08:18:36 +0100516
517void __init exynos4_init_irq(void)
518{
519 int irq;
Arnd Bergmann40ba95f2012-01-07 11:51:28 +0000520 unsigned int gic_bank_offset;
Kukjin Kimcc511b82011-12-27 08:18:36 +0100521
522 gic_bank_offset = soc_is_exynos4412() ? 0x4000 : 0x8000;
523
Arnd Bergmann237c78b2012-01-07 12:30:20 +0000524 if (!of_have_populated_dt())
Grant Likely75294952012-02-14 14:06:57 -0700525 gic_init_bases(0, IRQ_PPI(0), S5P_VA_GIC_DIST, S5P_VA_GIC_CPU, gic_bank_offset, NULL);
Arnd Bergmann237c78b2012-01-07 12:30:20 +0000526#ifdef CONFIG_OF
527 else
528 of_irq_init(exynos4_dt_irq_match);
529#endif
Kukjin Kimcc511b82011-12-27 08:18:36 +0100530
Kukjin Kimbb19a752012-01-25 13:48:11 +0900531 for (irq = 0; irq < EXYNOS4_MAX_COMBINER_NR; irq++) {
Kukjin Kimcc511b82011-12-27 08:18:36 +0100532
533 combiner_init(irq, (void __iomem *)S5P_VA_COMBINER(irq),
534 COMBINER_IRQ(irq, 0));
535 combiner_cascade_irq(irq, IRQ_SPI(irq));
536 }
537
538 /*
539 * The parameters of s5p_init_irq() are for VIC init.
540 * Theses parameters should be NULL and 0 because EXYNOS4
541 * uses GIC instead of VIC.
542 */
543 s5p_init_irq(NULL, 0);
544}
545
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900546void __init exynos5_init_irq(void)
547{
548 int irq;
549
Tushar Behera6fff5a12012-04-24 13:25:01 -0700550#ifdef CONFIG_OF
Thomas Abraham5699b0c2012-04-20 17:26:23 -0700551 of_irq_init(exynos4_dt_irq_match);
Tushar Behera6fff5a12012-04-24 13:25:01 -0700552#endif
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900553
Kukjin Kimbb19a752012-01-25 13:48:11 +0900554 for (irq = 0; irq < EXYNOS5_MAX_COMBINER_NR; irq++) {
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900555 combiner_init(irq, (void __iomem *)S5P_VA_COMBINER(irq),
556 COMBINER_IRQ(irq, 0));
557 combiner_cascade_irq(irq, IRQ_SPI(irq));
558 }
559
560 /*
561 * The parameters of s5p_init_irq() are for VIC init.
562 * Theses parameters should be NULL and 0 because EXYNOS4
563 * uses GIC instead of VIC.
564 */
565 s5p_init_irq(NULL, 0);
566}
567
Thomas Abraham9ee6af92012-05-15 15:47:40 +0900568struct bus_type exynos_subsys = {
569 .name = "exynos-core",
570 .dev_name = "exynos-core",
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900571};
572
Linus Torvalds7affca32012-01-07 12:03:30 -0800573static struct device exynos4_dev = {
Thomas Abraham9ee6af92012-05-15 15:47:40 +0900574 .bus = &exynos_subsys,
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900575};
576
577static int __init exynos_core_init(void)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100578{
Thomas Abraham9ee6af92012-05-15 15:47:40 +0900579 return subsys_system_register(&exynos_subsys, NULL);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100580}
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900581core_initcall(exynos_core_init);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100582
583#ifdef CONFIG_CACHE_L2X0
584static int __init exynos4_l2x0_cache_init(void)
585{
Il Hane1b19942012-04-05 07:59:36 -0700586 int ret;
587
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900588 if (soc_is_exynos5250())
589 return 0;
590
Amit Daniel Kachhap6cdeddc2012-03-08 02:09:12 -0800591 ret = l2x0_of_init(L2_AUX_VAL, L2_AUX_MASK);
592 if (!ret) {
593 l2x0_regs_phys = virt_to_phys(&l2x0_saved_regs);
594 clean_dcache_area(&l2x0_regs_phys, sizeof(unsigned long));
595 return 0;
596 }
Kukjin Kimcc511b82011-12-27 08:18:36 +0100597
Amit Daniel Kachhapb756a502012-03-08 02:07:41 -0800598 if (!(__raw_readl(S5P_VA_L2CC + L2X0_CTRL) & 0x1)) {
599 l2x0_saved_regs.phy_base = EXYNOS4_PA_L2CC;
600 /* TAG, Data Latency Control: 2 cycles */
601 l2x0_saved_regs.tag_latency = 0x110;
Kukjin Kimcc511b82011-12-27 08:18:36 +0100602
Amit Daniel Kachhapb756a502012-03-08 02:07:41 -0800603 if (soc_is_exynos4212() || soc_is_exynos4412())
604 l2x0_saved_regs.data_latency = 0x120;
605 else
606 l2x0_saved_regs.data_latency = 0x110;
Kukjin Kimcc511b82011-12-27 08:18:36 +0100607
Amit Daniel Kachhapb756a502012-03-08 02:07:41 -0800608 l2x0_saved_regs.prefetch_ctrl = 0x30000007;
609 l2x0_saved_regs.pwr_ctrl =
610 (L2X0_DYNAMIC_CLK_GATING_EN | L2X0_STNDBY_MODE_EN);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100611
Amit Daniel Kachhapb756a502012-03-08 02:07:41 -0800612 l2x0_regs_phys = virt_to_phys(&l2x0_saved_regs);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100613
Amit Daniel Kachhapb756a502012-03-08 02:07:41 -0800614 __raw_writel(l2x0_saved_regs.tag_latency,
615 S5P_VA_L2CC + L2X0_TAG_LATENCY_CTRL);
616 __raw_writel(l2x0_saved_regs.data_latency,
617 S5P_VA_L2CC + L2X0_DATA_LATENCY_CTRL);
618
619 /* L2X0 Prefetch Control */
620 __raw_writel(l2x0_saved_regs.prefetch_ctrl,
621 S5P_VA_L2CC + L2X0_PREFETCH_CTRL);
622
623 /* L2X0 Power Control */
624 __raw_writel(l2x0_saved_regs.pwr_ctrl,
625 S5P_VA_L2CC + L2X0_POWER_CTRL);
626
627 clean_dcache_area(&l2x0_regs_phys, sizeof(unsigned long));
628 clean_dcache_area(&l2x0_saved_regs, sizeof(struct l2x0_regs));
629 }
Kukjin Kimcc511b82011-12-27 08:18:36 +0100630
Amit Daniel Kachhap6cdeddc2012-03-08 02:09:12 -0800631 l2x0_init(S5P_VA_L2CC, L2_AUX_VAL, L2_AUX_MASK);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100632 return 0;
633}
Kukjin Kimcc511b82011-12-27 08:18:36 +0100634early_initcall(exynos4_l2x0_cache_init);
635#endif
636
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900637static int __init exynos5_l2_cache_init(void)
638{
639 unsigned int val;
640
641 if (!soc_is_exynos5250())
642 return 0;
643
644 asm volatile("mrc p15, 0, %0, c1, c0, 0\n"
645 "bic %0, %0, #(1 << 2)\n" /* cache disable */
646 "mcr p15, 0, %0, c1, c0, 0\n"
647 "mrc p15, 1, %0, c9, c0, 2\n"
648 : "=r"(val));
649
650 val |= (1 << 9) | (1 << 5) | (2 << 6) | (2 << 0);
651
652 asm volatile("mcr p15, 1, %0, c9, c0, 2\n" : : "r"(val));
653 asm volatile("mrc p15, 0, %0, c1, c0, 0\n"
654 "orr %0, %0, #(1 << 2)\n" /* cache enable */
655 "mcr p15, 0, %0, c1, c0, 0\n"
656 : : "r"(val));
657
658 return 0;
659}
660early_initcall(exynos5_l2_cache_init);
661
Kukjin Kim906c7892012-02-11 21:27:08 +0900662static int __init exynos_init(void)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100663{
664 printk(KERN_INFO "EXYNOS: Initializing architecture\n");
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900665
Thomas Abraham9ee6af92012-05-15 15:47:40 +0900666 return device_register(&exynos4_dev);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100667}
668
Kukjin Kimcc511b82011-12-27 08:18:36 +0100669/* uart registration process */
670
Kukjin Kim920f4882012-01-24 20:52:52 +0900671static void __init exynos_init_uarts(struct s3c2410_uartcfg *cfg, int no)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100672{
673 struct s3c2410_uartcfg *tcfg = cfg;
674 u32 ucnt;
675
Arnd Bergmann237c78b2012-01-07 12:30:20 +0000676 for (ucnt = 0; ucnt < no; ucnt++, tcfg++)
677 tcfg->has_fracval = 1;
Kukjin Kimcc511b82011-12-27 08:18:36 +0100678
Kukjin Kim171c0672012-02-10 11:57:53 +0900679 if (soc_is_exynos5250())
680 s3c24xx_init_uartdevs("exynos4210-uart", exynos5_uart_resources, cfg, no);
681 else
682 s3c24xx_init_uartdevs("exynos4210-uart", exynos4_uart_resources, cfg, no);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100683}
684
Eunki Kim330c90a2012-03-14 01:43:31 -0700685static void __iomem *exynos_eint_base;
686
Kukjin Kimcc511b82011-12-27 08:18:36 +0100687static DEFINE_SPINLOCK(eint_lock);
688
689static unsigned int eint0_15_data[16];
690
Eunki Kim330c90a2012-03-14 01:43:31 -0700691static inline int exynos4_irq_to_gpio(unsigned int irq)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100692{
Eunki Kim330c90a2012-03-14 01:43:31 -0700693 if (irq < IRQ_EINT(0))
694 return -EINVAL;
Kukjin Kimcc511b82011-12-27 08:18:36 +0100695
Eunki Kim330c90a2012-03-14 01:43:31 -0700696 irq -= IRQ_EINT(0);
697 if (irq < 8)
698 return EXYNOS4_GPX0(irq);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100699
Eunki Kim330c90a2012-03-14 01:43:31 -0700700 irq -= 8;
701 if (irq < 8)
702 return EXYNOS4_GPX1(irq);
703
704 irq -= 8;
705 if (irq < 8)
706 return EXYNOS4_GPX2(irq);
707
708 irq -= 8;
709 if (irq < 8)
710 return EXYNOS4_GPX3(irq);
711
712 return -EINVAL;
Kukjin Kimcc511b82011-12-27 08:18:36 +0100713}
714
Eunki Kim330c90a2012-03-14 01:43:31 -0700715static inline int exynos5_irq_to_gpio(unsigned int irq)
716{
717 if (irq < IRQ_EINT(0))
718 return -EINVAL;
719
720 irq -= IRQ_EINT(0);
721 if (irq < 8)
722 return EXYNOS5_GPX0(irq);
723
724 irq -= 8;
725 if (irq < 8)
726 return EXYNOS5_GPX1(irq);
727
728 irq -= 8;
729 if (irq < 8)
730 return EXYNOS5_GPX2(irq);
731
732 irq -= 8;
733 if (irq < 8)
734 return EXYNOS5_GPX3(irq);
735
736 return -EINVAL;
737}
738
Kukjin Kimbb19a752012-01-25 13:48:11 +0900739static unsigned int exynos4_eint0_15_src_int[16] = {
740 EXYNOS4_IRQ_EINT0,
741 EXYNOS4_IRQ_EINT1,
742 EXYNOS4_IRQ_EINT2,
743 EXYNOS4_IRQ_EINT3,
744 EXYNOS4_IRQ_EINT4,
745 EXYNOS4_IRQ_EINT5,
746 EXYNOS4_IRQ_EINT6,
747 EXYNOS4_IRQ_EINT7,
748 EXYNOS4_IRQ_EINT8,
749 EXYNOS4_IRQ_EINT9,
750 EXYNOS4_IRQ_EINT10,
751 EXYNOS4_IRQ_EINT11,
752 EXYNOS4_IRQ_EINT12,
753 EXYNOS4_IRQ_EINT13,
754 EXYNOS4_IRQ_EINT14,
755 EXYNOS4_IRQ_EINT15,
756};
Kukjin Kimcc511b82011-12-27 08:18:36 +0100757
Kukjin Kimbb19a752012-01-25 13:48:11 +0900758static unsigned int exynos5_eint0_15_src_int[16] = {
759 EXYNOS5_IRQ_EINT0,
760 EXYNOS5_IRQ_EINT1,
761 EXYNOS5_IRQ_EINT2,
762 EXYNOS5_IRQ_EINT3,
763 EXYNOS5_IRQ_EINT4,
764 EXYNOS5_IRQ_EINT5,
765 EXYNOS5_IRQ_EINT6,
766 EXYNOS5_IRQ_EINT7,
767 EXYNOS5_IRQ_EINT8,
768 EXYNOS5_IRQ_EINT9,
769 EXYNOS5_IRQ_EINT10,
770 EXYNOS5_IRQ_EINT11,
771 EXYNOS5_IRQ_EINT12,
772 EXYNOS5_IRQ_EINT13,
773 EXYNOS5_IRQ_EINT14,
774 EXYNOS5_IRQ_EINT15,
775};
Eunki Kim330c90a2012-03-14 01:43:31 -0700776static inline void exynos_irq_eint_mask(struct irq_data *data)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100777{
778 u32 mask;
779
780 spin_lock(&eint_lock);
Eunki Kim330c90a2012-03-14 01:43:31 -0700781 mask = __raw_readl(EINT_MASK(exynos_eint_base, data->irq));
782 mask |= EINT_OFFSET_BIT(data->irq);
783 __raw_writel(mask, EINT_MASK(exynos_eint_base, data->irq));
Kukjin Kimcc511b82011-12-27 08:18:36 +0100784 spin_unlock(&eint_lock);
785}
786
Eunki Kim330c90a2012-03-14 01:43:31 -0700787static void exynos_irq_eint_unmask(struct irq_data *data)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100788{
789 u32 mask;
790
791 spin_lock(&eint_lock);
Eunki Kim330c90a2012-03-14 01:43:31 -0700792 mask = __raw_readl(EINT_MASK(exynos_eint_base, data->irq));
793 mask &= ~(EINT_OFFSET_BIT(data->irq));
794 __raw_writel(mask, EINT_MASK(exynos_eint_base, data->irq));
Kukjin Kimcc511b82011-12-27 08:18:36 +0100795 spin_unlock(&eint_lock);
796}
797
Eunki Kim330c90a2012-03-14 01:43:31 -0700798static inline void exynos_irq_eint_ack(struct irq_data *data)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100799{
Eunki Kim330c90a2012-03-14 01:43:31 -0700800 __raw_writel(EINT_OFFSET_BIT(data->irq),
801 EINT_PEND(exynos_eint_base, data->irq));
Kukjin Kimcc511b82011-12-27 08:18:36 +0100802}
803
Eunki Kim330c90a2012-03-14 01:43:31 -0700804static void exynos_irq_eint_maskack(struct irq_data *data)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100805{
Eunki Kim330c90a2012-03-14 01:43:31 -0700806 exynos_irq_eint_mask(data);
807 exynos_irq_eint_ack(data);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100808}
809
Eunki Kim330c90a2012-03-14 01:43:31 -0700810static int exynos_irq_eint_set_type(struct irq_data *data, unsigned int type)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100811{
812 int offs = EINT_OFFSET(data->irq);
813 int shift;
814 u32 ctrl, mask;
815 u32 newvalue = 0;
816
817 switch (type) {
818 case IRQ_TYPE_EDGE_RISING:
819 newvalue = S5P_IRQ_TYPE_EDGE_RISING;
820 break;
821
822 case IRQ_TYPE_EDGE_FALLING:
823 newvalue = S5P_IRQ_TYPE_EDGE_FALLING;
824 break;
825
826 case IRQ_TYPE_EDGE_BOTH:
827 newvalue = S5P_IRQ_TYPE_EDGE_BOTH;
828 break;
829
830 case IRQ_TYPE_LEVEL_LOW:
831 newvalue = S5P_IRQ_TYPE_LEVEL_LOW;
832 break;
833
834 case IRQ_TYPE_LEVEL_HIGH:
835 newvalue = S5P_IRQ_TYPE_LEVEL_HIGH;
836 break;
837
838 default:
839 printk(KERN_ERR "No such irq type %d", type);
840 return -EINVAL;
841 }
842
843 shift = (offs & 0x7) * 4;
844 mask = 0x7 << shift;
845
846 spin_lock(&eint_lock);
Eunki Kim330c90a2012-03-14 01:43:31 -0700847 ctrl = __raw_readl(EINT_CON(exynos_eint_base, data->irq));
Kukjin Kimcc511b82011-12-27 08:18:36 +0100848 ctrl &= ~mask;
849 ctrl |= newvalue << shift;
Eunki Kim330c90a2012-03-14 01:43:31 -0700850 __raw_writel(ctrl, EINT_CON(exynos_eint_base, data->irq));
Kukjin Kimcc511b82011-12-27 08:18:36 +0100851 spin_unlock(&eint_lock);
852
Eunki Kim330c90a2012-03-14 01:43:31 -0700853 if (soc_is_exynos5250())
854 s3c_gpio_cfgpin(exynos5_irq_to_gpio(data->irq), S3C_GPIO_SFN(0xf));
855 else
856 s3c_gpio_cfgpin(exynos4_irq_to_gpio(data->irq), S3C_GPIO_SFN(0xf));
Kukjin Kimcc511b82011-12-27 08:18:36 +0100857
858 return 0;
859}
860
Eunki Kim330c90a2012-03-14 01:43:31 -0700861static struct irq_chip exynos_irq_eint = {
862 .name = "exynos-eint",
863 .irq_mask = exynos_irq_eint_mask,
864 .irq_unmask = exynos_irq_eint_unmask,
865 .irq_mask_ack = exynos_irq_eint_maskack,
866 .irq_ack = exynos_irq_eint_ack,
867 .irq_set_type = exynos_irq_eint_set_type,
Kukjin Kimcc511b82011-12-27 08:18:36 +0100868#ifdef CONFIG_PM
869 .irq_set_wake = s3c_irqext_wake,
870#endif
871};
872
873/*
874 * exynos4_irq_demux_eint
875 *
876 * This function demuxes the IRQ from from EINTs 16 to 31.
877 * It is designed to be inlined into the specific handler
878 * s5p_irq_demux_eintX_Y.
879 *
880 * Each EINT pend/mask registers handle eight of them.
881 */
Eunki Kim330c90a2012-03-14 01:43:31 -0700882static inline void exynos_irq_demux_eint(unsigned int start)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100883{
884 unsigned int irq;
885
Eunki Kim330c90a2012-03-14 01:43:31 -0700886 u32 status = __raw_readl(EINT_PEND(exynos_eint_base, start));
887 u32 mask = __raw_readl(EINT_MASK(exynos_eint_base, start));
Kukjin Kimcc511b82011-12-27 08:18:36 +0100888
889 status &= ~mask;
890 status &= 0xff;
891
892 while (status) {
893 irq = fls(status) - 1;
894 generic_handle_irq(irq + start);
895 status &= ~(1 << irq);
896 }
897}
898
Eunki Kim330c90a2012-03-14 01:43:31 -0700899static void exynos_irq_demux_eint16_31(unsigned int irq, struct irq_desc *desc)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100900{
901 struct irq_chip *chip = irq_get_chip(irq);
902 chained_irq_enter(chip, desc);
Eunki Kim330c90a2012-03-14 01:43:31 -0700903 exynos_irq_demux_eint(IRQ_EINT(16));
904 exynos_irq_demux_eint(IRQ_EINT(24));
Kukjin Kimcc511b82011-12-27 08:18:36 +0100905 chained_irq_exit(chip, desc);
906}
907
Kukjin Kimbb19a752012-01-25 13:48:11 +0900908static void exynos_irq_eint0_15(unsigned int irq, struct irq_desc *desc)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100909{
910 u32 *irq_data = irq_get_handler_data(irq);
911 struct irq_chip *chip = irq_get_chip(irq);
912
913 chained_irq_enter(chip, desc);
914 chip->irq_mask(&desc->irq_data);
915
916 if (chip->irq_ack)
917 chip->irq_ack(&desc->irq_data);
918
919 generic_handle_irq(*irq_data);
920
921 chip->irq_unmask(&desc->irq_data);
922 chained_irq_exit(chip, desc);
923}
924
Eunki Kim330c90a2012-03-14 01:43:31 -0700925static int __init exynos_init_irq_eint(void)
Kukjin Kimcc511b82011-12-27 08:18:36 +0100926{
927 int irq;
928
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900929 if (soc_is_exynos5250())
Eunki Kim330c90a2012-03-14 01:43:31 -0700930 exynos_eint_base = ioremap(EXYNOS5_PA_GPIO1, SZ_4K);
931 else
932 exynos_eint_base = ioremap(EXYNOS4_PA_GPIO2, SZ_4K);
933
934 if (exynos_eint_base == NULL) {
935 pr_err("unable to ioremap for EINT base address\n");
936 return -ENOMEM;
937 }
Kukjin Kim94c7ca72012-02-11 22:15:45 +0900938
Kukjin Kimcc511b82011-12-27 08:18:36 +0100939 for (irq = 0 ; irq <= 31 ; irq++) {
Eunki Kim330c90a2012-03-14 01:43:31 -0700940 irq_set_chip_and_handler(IRQ_EINT(irq), &exynos_irq_eint,
Kukjin Kimcc511b82011-12-27 08:18:36 +0100941 handle_level_irq);
942 set_irq_flags(IRQ_EINT(irq), IRQF_VALID);
943 }
944
Eunki Kim330c90a2012-03-14 01:43:31 -0700945 irq_set_chained_handler(EXYNOS_IRQ_EINT16_31, exynos_irq_demux_eint16_31);
Kukjin Kimcc511b82011-12-27 08:18:36 +0100946
947 for (irq = 0 ; irq <= 15 ; irq++) {
948 eint0_15_data[irq] = IRQ_EINT(irq);
949
Kukjin Kimbb19a752012-01-25 13:48:11 +0900950 if (soc_is_exynos5250()) {
951 irq_set_handler_data(exynos5_eint0_15_src_int[irq],
952 &eint0_15_data[irq]);
953 irq_set_chained_handler(exynos5_eint0_15_src_int[irq],
954 exynos_irq_eint0_15);
955 } else {
956 irq_set_handler_data(exynos4_eint0_15_src_int[irq],
957 &eint0_15_data[irq]);
958 irq_set_chained_handler(exynos4_eint0_15_src_int[irq],
959 exynos_irq_eint0_15);
960 }
Kukjin Kimcc511b82011-12-27 08:18:36 +0100961 }
962
963 return 0;
964}
Eunki Kim330c90a2012-03-14 01:43:31 -0700965arch_initcall(exynos_init_irq_eint);