Date:2010-01-11 03:18:57 (3 years 4 months ago)
Author:Lars C.
Commit:6cafd0ed52d3cbdbd1e659fdc1fcf6de1bf238a7
Message:jz4740: irq.c: Some cleanup

Files: target/linux/xburst/files-2.6.31/arch/mips/jz4740/irq.c (3 diffs)

Change Details

target/linux/xburst/files-2.6.31/arch/mips/jz4740/irq.c
11/*
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
84 *
95 * This program is free software; you can redistribute it and/or modify it
106 * under the terms of the GNU General Public License as published by the
117 * Free Software Foundation; either version 2 of the License, or (at your
128 * 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 *
1314 */
14#include <asm/mach-jz4740/irq.h>
15#include <linux/irq.h>
1615
1716#include <linux/errno.h>
1817#include <linux/init.h>
...... 
7877    .mask = intc_irq_mask,
7978    .unmask = intc_irq_unmask,
8079    .ack = intc_irq_ack,
81    .end = intc_irq_end,
8280    .set_wake = intc_irq_set_wake,
8381};
8482
...... 
130128void jz4740_intc_suspend(void)
131129{
132130    jz_intc_saved = readl(jz_intc_base + JZ_REG_INTC_MASK);
133    printk("intc wakeup: %d\n", jz_intc_wakeup);
134131    writel(~jz_intc_wakeup, jz_intc_base + JZ_REG_INTC_SET_MASK);
135132}
136133

Archive Download the corresponding diff file



interactive