arm:omap:am33xx: IA EVM low level debug
authorAfzal Mohammed <afzal@ti.com>
Thu, 13 Oct 2011 05:33:46 +0000 (11:03 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:31 +0000 (00:44 +0530)
Low level debug support for IA EVM, it uses UART3
(numbering as per TRM). This is referred as UART4
by software, software UART numbering starts from 1.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
arch/arm/mach-omap2/include/mach/debug-macro.S
arch/arm/plat-omap/include/plat/serial.h
arch/arm/plat-omap/include/plat/uncompress.h

index d7f844a99a7bae0d87232dae9b98da3c26f3c957..b9b10e50cbddf44d227dfc1e99de0bec2b992921 100644 (file)
@@ -74,6 +74,8 @@ omap_uart_lsr:        .word   0
                beq     83f                     @ configure UART3
                cmp     \rp, #AM33XXUART1       @ AM33XX UART offsets different
                beq     84f                     @ configure UART1
+               cmp     \rp, #AM33XXUART4       @ AM33XX UART offsets different
+               beq     85f                     @ configure UART1
                cmp     \rp, #ZOOM_UART         @ only on zoom2/3
                beq     95f                     @ configure ZOOM_UART
 
@@ -105,6 +107,8 @@ omap_uart_lsr:      .word   0
 84:            ldr     \rp, =AM33XX_UART1_BASE
                and     \rp, \rp, #0x00ffffff
                b       97f
+85:            ldr     \rp, =UART_OFFSET(AM33XX_UART4_BASE)
+               b       98f
 95:            ldr     \rp, =ZOOM_UART_BASE
                str     \rp, [\tmp, #0]         @ omap_uart_phys
                ldr     \rp, =ZOOM_UART_VIRT
index 5e141e181f2f86e138a57925227c9f0f23a1fbcc..d15ddb2f81dc06226ef330bea0e964e4c3fa45e6 100644 (file)
 #define TI81XXUART2            82
 #define TI81XXUART3            83
 #define AM33XXUART1            84
+#define AM33XXUART4            85
 #define ZOOM_UART              95              /* Only on zoom2/3 */
 
 /* This is only used by 8250.c for omap1510 */
index d5786bdeeae8b0a656b54e66f5552aad99fe9ccd..8686776cc0c8b08596d4f8ec25c266afcb43021d 100644 (file)
@@ -190,6 +190,9 @@ static inline void __arch_decomp_setup(unsigned long arch_id)
 
                /* AM33XX base boards using UART1 */
                DEBUG_LL_AM33XX(1, am335xevm);
+
+               /* AM33XX IA boards using UART4 */
+               DEBUG_LL_AM33XX(4, am335xiaevm);
        } while (0);
 }