| * SDK7786 FPGA IRQ Controller Support. |
| * Copyright (C) 2010 Matt Fleming |
| * Copyright (C) 2010 Paul Mundt |
| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| void __init sdk7786_init_irq(void) |
| /* Enable priority encoding for all IRLs */ |
| fpga_write_reg(fpga_read_reg(INTMSR) | 0x0303, INTMSR); |
| /* Clear FPGA interrupt status registers */ |
| fpga_write_reg(0x0000, INTASR); |
| fpga_write_reg(0x0000, INTBSR); |
| /* Unmask FPGA interrupts */ |
| tmp = fpga_read_reg(INTAMR); |
| tmp &= ~(1 << ETH_IRQ_BIT); |
| fpga_write_reg(tmp, INTAMR); |
| plat_irq_setup_pins(IRQ_MODE_IRL7654_MASK); |
| plat_irq_setup_pins(IRQ_MODE_IRL3210_MASK); |