Added definitions for tnetv107x uart base addresses, and modified base address
selection for kernel decompressor to check for tnetv107x machine type.

Signed-off-by: Cyril Chemparathy <[email protected]>
---
 arch/arm/mach-davinci/include/mach/serial.h     |    4 ++++
 arch/arm/mach-davinci/include/mach/uncompress.h |   12 +++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

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 */
-- 
1.6.3.3

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to