#ifdef CONFIG_ARCH_RK29\r
#define DBG_PORT 1 //DBG_PORT which uart is used to print log message\r
#else\r
-#define DBG_PORT -1 //DBG_PORT which uart is used to print log message\r
+#ifndef CONFIG_RK_DEBUG_UART //DBG_PORT which uart is used to print log message\r
+#define DBG_PORT 2\r
+#else\r
+#define DBG_PORT CONFIG_RK_DEBUG_UART\r
+#endif\r
#endif\r
+\r
#ifdef CONFIG_SERIAL_CORE_CONSOLE\r
#define uart_console(port) ((port)->cons && (port)->cons->index == (port)->line)\r
#else\r
}\r
\r
//enable log output\r
-#define DEBUG 1\r
+#define DEBUG 0\r
static int log_port = -1;\r
module_param(log_port, int, S_IRUGO|S_IWUSR);\r
\r