From 9e853b76d41df6887c0cf683527dddc0b87c8384 Mon Sep 17 00:00:00 2001 From: kfx Date: Tue, 10 Jul 2012 10:49:34 +0800 Subject: [PATCH] rk2928: add devices.c --- arch/arm/mach-rk2928/Makefile | 1 + arch/arm/mach-rk2928/devices.c | 39 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100755 arch/arm/mach-rk2928/devices.c diff --git a/arch/arm/mach-rk2928/Makefile b/arch/arm/mach-rk2928/Makefile index 06e6cae19294..1ed968ac88d6 100644 --- a/arch/arm/mach-rk2928/Makefile +++ b/arch/arm/mach-rk2928/Makefile @@ -2,6 +2,7 @@ obj-y += common.o obj-y += io.o obj-y += reset.o obj-y += timer.o +obj-y += devices.o obj-$(CONFIG_PM) += pm.o obj-$(CONFIG_MACH_RK2928_FPGA) += board-rk2928-fpga.o diff --git a/arch/arm/mach-rk2928/devices.c b/arch/arm/mach-rk2928/devices.c new file mode 100755 index 000000000000..3da7cfc3f95e --- /dev/null +++ b/arch/arm/mach-rk2928/devices.c @@ -0,0 +1,39 @@ +/* arch/arm/mach-rk30/devices.c + * + * Copyright (C) 2012 ROCKCHIP, Inc. + * + * 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. + * + */ + +#include +#include +#include +#ifdef CONFIG_USB_ANDROID +#include +#endif +#include +#include +#include +#include +#include +#include +#include +//#include +#include + +static int __init rk2928_init_devices(void) +{ +#if defined(CONFIG_FIQ_DEBUGGER) && defined(DEBUG_UART_PHYS) + rk_serial_debug_init(DEBUG_UART_BASE, IRQ_DEBUG_UART, IRQ_UART_SIGNAL, -1); +#endif + return 0; +} +arch_initcall(rk2928_init_devices); -- 2.34.1