| target/linux/xburst/files-2.6.31/arch/mips/jz4740/irq.c |
| 1 | 1 | /* |
| 2 | | * linux/arch/mips/jz4740/irq.c |
| 3 | | * |
| 4 | | * JZ4740 interrupt routines. |
| 5 | | * |
| 6 | | * Copyright (c) 2006-2007 Ingenic Semiconductor Inc. |
| 7 | | * Author: <lhhuang@ingenic.cn> |
| 2 | * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de> |
| 3 | * JZ4740 platform IRQ support |
| 8 | 4 | * |
| 9 | 5 | * This program is free software; you can redistribute it and/or modify it |
| 10 | 6 | * under the terms of the GNU General Public License as published by the |
| 11 | 7 | * Free Software Foundation; either version 2 of the License, or (at your |
| 12 | 8 | * option) any later version. |
| 9 | * |
| 10 | * You should have received a copy of the GNU General Public License along |
| 11 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 12 | * 675 Mass Ave, Cambridge, MA 02139, USA. |
| 13 | * |
| 13 | 14 | */ |
| 14 | | #include <asm/mach-jz4740/irq.h> |
| 15 | | #include <linux/irq.h> |
| 16 | 15 | |
| 17 | 16 | #include <linux/errno.h> |
| 18 | 17 | #include <linux/init.h> |
| ... | ... | |
| 78 | 77 | .mask = intc_irq_mask, |
| 79 | 78 | .unmask = intc_irq_unmask, |
| 80 | 79 | .ack = intc_irq_ack, |
| 81 | | .end = intc_irq_end, |
| 82 | 80 | .set_wake = intc_irq_set_wake, |
| 83 | 81 | }; |
| 84 | 82 | |
| ... | ... | |
| 130 | 128 | void jz4740_intc_suspend(void) |
| 131 | 129 | { |
| 132 | 130 | jz_intc_saved = readl(jz_intc_base + JZ_REG_INTC_MASK); |
| 133 | | printk("intc wakeup: %d\n", jz_intc_wakeup); |
| 134 | 131 | writel(~jz_intc_wakeup, jz_intc_base + JZ_REG_INTC_SET_MASK); |
| 135 | 132 | } |
| 136 | 133 | |