Commit 9a9fca64 authored by s-paulraj@ti.com's avatar s-paulraj@ti.com Committed by Kevin Hilman

ARM DaVinci: DM355 Serial Communication

Adding Support for UART's on DM355
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent 57304d6a
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "clock.h" #include "clock.h"
#define UART_DAVINCI_PWREMU 0x0c #define UART_DAVINCI_PWREMU 0x0c
#define DM355_UART2_BASE (0x01E06000)
static inline unsigned int davinci_serial_in(struct plat_serial8250_port *up, static inline unsigned int davinci_serial_in(struct plat_serial8250_port *up,
int offset) int offset)
...@@ -142,6 +143,16 @@ void __init davinci_serial_init(void) ...@@ -142,6 +143,16 @@ void __init davinci_serial_init(void)
p->iotype = UPIO_MEM32; p->iotype = UPIO_MEM32;
} }
if (cpu_is_davinci_dm355()) {
p->uartclk = 24000000;
if (i == 2) {
p->membase = (char *)
IO_ADDRESS(DM355_UART2_BASE);
p->mapbase = (unsigned long)DM355_UART2_BASE;
p->irq = IRQ_DM355_UARTINT2;
}
}
if (!(info->enabled_uarts & (1 << i))) { if (!(info->enabled_uarts & (1 << i))) {
p->membase = 0; p->membase = 0;
p->mapbase = 0; p->mapbase = 0;
...@@ -155,7 +166,7 @@ void __init davinci_serial_init(void) ...@@ -155,7 +166,7 @@ void __init davinci_serial_init(void)
__func__, __LINE__, i); __func__, __LINE__, i);
else { else {
clk_enable(uart_clk); clk_enable(uart_clk);
if (cpu_is_davinci_dm644x()) if (cpu_is_davinci_dm644x() || cpu_is_davinci_dm355())
davinci_serial_reset(p); davinci_serial_reset(p);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment