rk2928: rk2928_a720_defconfig: add usb debug config
authorkfx <kfx@rock-chips.com>
Tue, 11 Sep 2012 12:16:46 +0000 (20:16 +0800)
committerkfx <kfx@rock-chips.com>
Tue, 11 Sep 2012 12:16:46 +0000 (20:16 +0800)
arch/arm/configs/rk2928_a720_defconfig
arch/arm/mach-rk2928/common.c

index 7f844c1def7386d0495bfb61c1bfaf38ed2f3896..d218666ddeb0e03a1cbd16b0caae4c0b338cde14 100644 (file)
@@ -23,7 +23,7 @@ CONFIG_MODULE_UNLOAD=y
 CONFIG_MODULE_FORCE_UNLOAD=y
 CONFIG_ARCH_RK2928=y
 CONFIG_RK_CLOCK_PROC=y
-CONFIG_RK_DEBUG_UART=0
+CONFIG_RK_USB_UART=y
 CONFIG_MACH_RK2928_A720=y
 CONFIG_FIQ_DEBUGGER=y
 CONFIG_FIQ_DEBUGGER_NO_SLEEP=y
index 41b7a3bb68e50a767973a2206a6e61aeb90b7b03..d26d028cdcfb41a819639a127b25145b23c5ee28 100755 (executable)
@@ -117,6 +117,18 @@ extern int __init clk_disable_unused(void);
 void __init rk2928_map_io(void)
 {
        rk2928_map_common_io();
+#ifdef DEBUG_UART_BASE
+        #ifdef CONFIG_RK_USB_UART
+        writel_relaxed(0x30003000, RK2928_GRF_BASE + GRF_UOC1_CON4);
+        #endif
+        writel_relaxed(0x07, DEBUG_UART_BASE + 0x88);
+        writel_relaxed(0x07, DEBUG_UART_BASE + 0x88);
+        writel_relaxed(0x00, DEBUG_UART_BASE + 0x04);
+        writel_relaxed(0x83, DEBUG_UART_BASE + 0x0c);
+        writel_relaxed(0x0d, DEBUG_UART_BASE + 0x00);
+        writel_relaxed(0x00, DEBUG_UART_BASE + 0x04);
+        writel_relaxed(0x03, DEBUG_UART_BASE + 0x0c);
+#endif
        rk29_setup_early_printk();
        rk2928_cpu_axi_init();
        rk29_sram_init();