@@ -450,6 +450,16 @@ choice
endchoice
+config DEBUG_IMX50_IMX53_UART_PORT
+ int "i.MX50 and i.MX53 Debug UART Port (1-2)" if DEBUG_IMX50_IMX53_UART
+ range 1 2
+ default 1
+ depends on SOC_IMX50 || SOC_IMX53
+ help
+ Choose UART port on which kernel low-level debug messages
+ should be output. The default choice (UART1) is correct for
+ e.g. the Freescale i.MX53 Quick Start Board.
+
config DEBUG_IMX6Q_UART_PORT
int "i.MX6Q Debug UART Port (1-5)" if DEBUG_IMX6Q_UART
range 1 5
@@ -10,12 +10,17 @@
* published by the Free Software Foundation.
*
*/
+#define IMX50_IMX53_UART1_BASE_ADDR 0x53fbc000
+#define IMX50_IMX53_UART2_BASE_ADDR 0x53fc0000
#define IMX6Q_UART1_BASE_ADDR 0x02020000
#define IMX6Q_UART2_BASE_ADDR 0x021e8000
#define IMX6Q_UART3_BASE_ADDR 0x021ec000
#define IMX6Q_UART4_BASE_ADDR 0x021f0000
#define IMX6Q_UART5_BASE_ADDR 0x021f4000
+#define IMX50_IMX53_UART_BASE_ADDR(n) IMX50_IMX53_UART##n##_BASE_ADDR
+#define IMX50_IMX53_UART_BASE(n) IMX50_IMX53_UART_BASE_ADDR(n)
+#define IMX50_IMX53_DEBUG_UART_BASE IMX50_IMX53_UART_BASE(CONFIG_DEBUG_IMX50_IMX53_UART_PORT)
/*
* IMX6Q_UART_BASE_ADDR is put in the middle to force the expansion
* of IMX6Q_UART##n##_BASE_ADDR.
@@ -35,7 +40,7 @@
#elif defined (CONFIG_DEBUG_IMX51_UART)
#define UART_PADDR 0x73fbc000
#elif defined (CONFIG_DEBUG_IMX50_IMX53_UART)
-#define UART_PADDR 0x53fbc000
+#define UART_PADDR IMX50_IMX53_DEBUG_UART_BASE
#elif defined (CONFIG_DEBUG_IMX6Q_UART)
#define UART_PADDR IMX6Q_DEBUG_UART_BASE
#endif