Blame view

kernel/linux-imx6_3.14.28/arch/arc/plat-arcfpga/irq.c 690 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  /*
   * ARC FPGA Platform IRQ hookups
   *
   * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License version 2 as
   * published by the Free Software Foundation.
   */
  
  #include <linux/interrupt.h>
  #include <plat/irq.h>
  
  void __init plat_fpga_init_IRQ(void)
  {
  	/*
  	 * SMP Hack because UART IRQ hardwired to cpu0 (boot-cpu) but if the
  	 * request_irq() comes from any other CPU, the low level IRQ unamsking
  	 * essential for getting Interrupts won't be enabled on cpu0, locking
  	 * up the UART state machine.
  	 */
  #ifdef CONFIG_SMP
  	arch_unmask_irq(UART0_IRQ);
  #endif
  }