rk3066b: init debug uart
author黄涛 <huangtao@rock-chips.com>
Fri, 31 Aug 2012 11:30:32 +0000 (19:30 +0800)
committer黄涛 <huangtao@rock-chips.com>
Fri, 31 Aug 2012 11:30:50 +0000 (19:30 +0800)
arch/arm/mach-rk30/common.c

index 21775fb0d53b7e7877b6a9677200b4063940c2ee..02ef0baf48a1baf99307737f8996d57ad5de4088 100755 (executable)
@@ -120,6 +120,16 @@ int __init clk_disable_unused(void);
 void __init rk30_map_io(void)
 {
        rk30_map_common_io();
+#ifdef DEBUG_UART_BASE
+       writel_relaxed(0x000f0005, RK30_GRF_BASE + 0x74);
+       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();
        rk30_cpu_axi_init();
        rk29_sram_init();