rk2928: add devices.c
authorkfx <kfx@rock-chips.com>
Tue, 10 Jul 2012 02:49:34 +0000 (10:49 +0800)
committerkfx <kfx@rock-chips.com>
Tue, 10 Jul 2012 02:49:34 +0000 (10:49 +0800)
arch/arm/mach-rk2928/Makefile
arch/arm/mach-rk2928/devices.c [new file with mode: 0755]

index 06e6cae1929472b41a6ac9f4481feaf9f7ef7249..1ed968ac88d62e07e94c59cd4626d78607852c76 100644 (file)
@@ -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 (executable)
index 0000000..3da7cfc
--- /dev/null
@@ -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 <linux/fs.h>
+#include <linux/kernel.h>
+#include <linux/platform_device.h>
+#ifdef CONFIG_USB_ANDROID
+#include <linux/usb/android_composite.h>
+#endif
+#include <linux/delay.h>
+#include <linux/dma-mapping.h>
+#include <asm/pmu.h>
+#include <mach/irqs.h>
+#include <mach/board.h>
+#include <plat/dma-pl330.h>
+#include <mach/gpio.h>
+//#include <mach/iomux.h>
+#include <plat/rk_fiq_debugger.h>
+
+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);