blob: 0ea43c26f16abe348b4774d489d46ba70d8d2250 [file] [log] [blame]
Vineet Guptabacdf482013-01-18 15:12:18 +05301/*
2 * ARC FPGA Platform IRQ hookups
3 *
4 * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#include <linux/interrupt.h>
Vineet Gupta41195d22013-01-18 15:12:23 +053012#include <asm/irq.h>
Vineet Guptabacdf482013-01-18 15:12:18 +053013
Vineet Gupta877768c2013-01-23 16:32:48 +053014void __init plat_fpga_init_IRQ(void)
Vineet Guptabacdf482013-01-18 15:12:18 +053015{
Vineet Gupta41195d22013-01-18 15:12:23 +053016 /*
17 * SMP Hack because UART IRQ hardwired to cpu0 (boot-cpu) but if the
18 * request_irq() comes from any other CPU, the low level IRQ unamsking
19 * essential for getting Interrupts won't be enabled on cpu0, locking
20 * up the UART state machine.
21 */
22#ifdef CONFIG_SMP
23 arch_unmask_irq(UART0_IRQ);
24#endif
Vineet Guptabacdf482013-01-18 15:12:18 +053025}