diff mbox

[12/14] Davinci: tnetv107x decompresser uart definitions

Message ID 1269476345-16111-13-git-send-email-cyril@ti.com (mailing list archive)
State Superseded
Headers show

Commit Message

Cyril Chemparathy March 25, 2010, 12:19 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-davinci/include/mach/serial.h b/arch/arm/mach-davinci/include/mach/serial.h
index a584697..7eacbc0 100644
--- a/arch/arm/mach-davinci/include/mach/serial.h
+++ b/arch/arm/mach-davinci/include/mach/serial.h
@@ -22,6 +22,10 @@ 
 #define DA8XX_UART1_BASE	(IO_PHYS + 0x10c000)
 #define DA8XX_UART2_BASE	(IO_PHYS + 0x10d000)
 
+#define TNETV107X_UART0_BASE	(0x08108100)
+#define TNETV107X_UART1_BASE	(0x08088400)
+#define TNETV107X_UART2_BASE	(0x08108300)
+
 /* DaVinci UART register offsets */
 #define UART_DAVINCI_PWREMU		0x0c
 #define UART_DM646X_SCR			0x10
diff --git a/arch/arm/mach-davinci/include/mach/uncompress.h b/arch/arm/mach-davinci/include/mach/uncompress.h
index 33796b4..e36c7fb 100644
--- a/arch/arm/mach-davinci/include/mach/uncompress.h
+++ b/arch/arm/mach-davinci/include/mach/uncompress.h
@@ -21,11 +21,17 @@  static u32 *uart;
 
 static u32 *get_uart_base(void)
 {
-	if (__machine_arch_type == MACH_TYPE_DAVINCI_DA830_EVM ||
-		__machine_arch_type == MACH_TYPE_DAVINCI_DA850_EVM)
+	switch (__machine_arch_type) {
+	case MACH_TYPE_DAVINCI_DA830_EVM:
+	case MACH_TYPE_DAVINCI_DA850_EVM:
 		return (u32 *)DA8XX_UART2_BASE;
-	else
+
+	case MACH_TYPE_TNETV107X:
+		return (u32 *)TNETV107X_UART1_BASE;
+
+	default:
 		return (u32 *)DAVINCI_UART0_BASE;
+	}
 }
 
 /* PORT_16C550A, in polled non-fifo mode */