From: kfx Date: Tue, 10 Jul 2012 02:49:34 +0000 (+0800) Subject: rk2928: add devices.c X-Git-Tag: firefly_0821_release~8912^2~106 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9e853b76d41df6887c0cf683527dddc0b87c8384;p=firefly-linux-kernel-4.4.55.git rk2928: add 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);