From b13e4b9414810faee927abded74279df70f37add Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Mon, 2 Jul 2012 20:18:56 +0800 Subject: [PATCH] rk: move fiq.h from mach-rk30 to plat-rk --- arch/arm/mach-rk30/include/mach/fiq.h | 25 +++---------------------- arch/arm/plat-rk/include/plat/fiq.h | 10 ++++++++++ arch/arm/plat-rk/rk_fiq_debugger.c | 6 ++---- 3 files changed, 15 insertions(+), 26 deletions(-) create mode 100644 arch/arm/plat-rk/include/plat/fiq.h diff --git a/arch/arm/mach-rk30/include/mach/fiq.h b/arch/arm/mach-rk30/include/mach/fiq.h index 1eb5eab9f813..fc0aaa6b5c7e 100644 --- a/arch/arm/mach-rk30/include/mach/fiq.h +++ b/arch/arm/mach-rk30/include/mach/fiq.h @@ -1,27 +1,8 @@ -/* - * Copyright (C) 2010 Google, Inc. - * - * Author: - * Iliyan Malchev - * - * 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 + void rk30_fiq_init(void); + #endif diff --git a/arch/arm/plat-rk/include/plat/fiq.h b/arch/arm/plat-rk/include/plat/fiq.h new file mode 100644 index 000000000000..9c9261a2b2fa --- /dev/null +++ b/arch/arm/plat-rk/include/plat/fiq.h @@ -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 diff --git a/arch/arm/plat-rk/rk_fiq_debugger.c b/arch/arm/plat-rk/rk_fiq_debugger.c index a3de3bd812c0..7461f06676a9 100644 --- a/arch/arm/plat-rk/rk_fiq_debugger.c +++ b/arch/arm/plat-rk/rk_fiq_debugger.c @@ -26,13 +26,11 @@ #include #include #include +#include #include #include #include -#include -#include - -#include +#include struct rk_fiq_debugger { struct fiq_debugger_pdata pdata; -- 2.34.1