#include <mach/loader.h>
#include <mach/ddr.h>
#include <mach/cpu.h>
+#include <mach/debug_uart.h>
static void __init rk2928_cpu_axi_init(void)
{
#include <mach/gpio.h>
#include <mach/iomux.h>
#include <mach/dvfs.h>
+#include <mach/debug_uart.h>
#include <plat/rk_fiq_debugger.h>
#include <linux/regulator/consumer.h>
--- /dev/null
+#ifndef __MACH_DEBUG_UART
+#define __MACH_DEBUG_UART
+
+#if CONFIG_RK_DEBUG_UART >= 0 && CONFIG_RK_DEBUG_UART < 3
+
+#if CONFIG_RK_DEBUG_UART == 0
+#define DEBUG_UART_PHYS RK2928_UART0_PHYS
+#define DEBUG_UART_BASE RK2928_UART0_BASE
+#elif CONFIG_RK_DEBUG_UART == 1
+#define DEBUG_UART_PHYS RK2928_UART1_PHYS
+#define DEBUG_UART_BASE RK2928_UART1_BASE
+#elif CONFIG_RK_DEBUG_UART == 2
+#define DEBUG_UART_PHYS RK2928_UART2_PHYS
+#define DEBUG_UART_BASE RK2928_UART2_BASE
+#endif
+
+#define IRQ_DEBUG_UART (IRQ_UART0 + CONFIG_RK_DEBUG_UART)
+
+#endif
+
+#endif
#define RK2928_EFUSE_PHYS 0x20090000
#define RK2928_EFUSE_SIZE SZ_4K
-#if CONFIG_RK_DEBUG_UART == 0
-#define DEBUG_UART_PHYS RK2928_UART0_PHYS
-#define DEBUG_UART_BASE RK2928_UART0_BASE
-#elif CONFIG_RK_DEBUG_UART == 1
-#define DEBUG_UART_PHYS RK2928_UART1_PHYS
-#define DEBUG_UART_BASE RK2928_UART1_BASE
-#elif CONFIG_RK_DEBUG_UART == 2
-#define DEBUG_UART_PHYS RK2928_UART2_PHYS
-#define DEBUG_UART_BASE RK2928_UART2_BASE
-#endif
-
#define GIC_DIST_BASE RK2928_GICD_BASE
#define GIC_CPU_BASE RK2928_GICC_BASE
//hhb@rock-chips.com this spi is used for fiq_debugger signal irq
#define IRQ_UART_SIGNAL 127
-#if CONFIG_RK_DEBUG_UART >= 0 && CONFIG_RK_DEBUG_UART < 3
-#define IRQ_DEBUG_UART (IRQ_UART0 + CONFIG_RK_DEBUG_UART)
-#endif
#define NR_GIC_IRQS (4 * 32)
#define NR_GPIO_IRQS (4 * 32)
#include <mach/gpio.h>
#include <mach/iomux.h>
#include <mach/cru.h>
+#include <mach/debug_uart.h>
#define cru_readl(offset) readl_relaxed(RK2928_CRU_BASE + offset)
#define cru_writel(v, offset) do { writel_relaxed(v, RK2928_CRU_BASE + offset); dsb(); } while (0)