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