rk: move fiq.h from mach-rk30 to plat-rk

This commit is contained in:
黄涛
2012-07-02 20:18:56 +08:00
parent bbfd2efb43
commit b13e4b9414
3 changed files with 15 additions and 26 deletions

View File

@@ -1,27 +1,8 @@
/*
* Copyright (C) 2010 Google, Inc.
*
* Author:
* Iliyan Malchev <malchev@google.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __ASM_ARCH_RK30_FIQ_H
#define __ASM_ARCH_RK30_FIQ_H
/* enable/disable an interrupt that is an FIQ (safe from FIQ context?) */
void rk_fiq_enable(int n);
void rk_fiq_disable(int n);
void rk_irq_setpending(int irq);
void rk_irq_clearpending(int irq);
#include <plat/fiq.h>
void rk30_fiq_init(void);
#endif

View File

@@ -0,0 +1,10 @@
#ifndef __PLAT_FIQ_H
#define __PLAT_FIQ_H
/* enable/disable an interrupt that is an FIQ (safe from FIQ context?) */
void rk_fiq_enable(int n);
void rk_fiq_disable(int n);
void rk_irq_setpending(int irq);
void rk_irq_clearpending(int irq);
#endif

View File

@@ -26,13 +26,11 @@
#include <linux/serial_reg.h>
#include <linux/slab.h>
#include <linux/stacktrace.h>
#include <linux/uaccess.h>
#include <asm/fiq_debugger.h>
#include <asm/hardware/gic.h>
#include <plat/rk_fiq_debugger.h>
#include <mach/system.h>
#include <mach/fiq.h>
#include <linux/uaccess.h>
#include <plat/fiq.h>
struct rk_fiq_debugger {
struct fiq_debugger_pdata pdata;