diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-04-14 09:04:26 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-04-27 12:49:45 -0400 |
commit | 617b925f94e0126841164ffd40dd3a8879502b57 (patch) | |
tree | fd078ef27fb9c97aa4d572f02f78b9832471d1e2 /arch/arm/mach-davinci/include/mach/serial.h | |
parent | f9337405b21bafb1c1a24316b3e43b3d3d697925 (diff) |
davinci: serial: generalize for more SoCs
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/serial.h')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/serial.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/arch/arm/mach-davinci/include/mach/serial.h b/arch/arm/mach-davinci/include/mach/serial.h index fb8cb229bfd2..632847d74a1c 100644 --- a/arch/arm/mach-davinci/include/mach/serial.h +++ b/arch/arm/mach-davinci/include/mach/serial.h | |||
@@ -13,8 +13,23 @@ | |||
13 | 13 | ||
14 | #include <mach/io.h> | 14 | #include <mach/io.h> |
15 | 15 | ||
16 | #define DAVINCI_UART0_BASE (IO_PHYS + 0x20000) | 16 | #define DAVINCI_MAX_NR_UARTS 3 |
17 | #define DAVINCI_UART1_BASE (IO_PHYS + 0x20400) | 17 | #define DAVINCI_UART0_BASE (IO_PHYS + 0x20000) |
18 | #define DAVINCI_UART2_BASE (IO_PHYS + 0x20800) | 18 | #define DAVINCI_UART1_BASE (IO_PHYS + 0x20400) |
19 | #define DAVINCI_UART2_BASE (IO_PHYS + 0x20800) | ||
20 | |||
21 | #define DM355_UART2_BASE (IO_PHYS + 0x206000) | ||
22 | |||
23 | /* DaVinci UART register offsets */ | ||
24 | #define UART_DAVINCI_PWREMU 0x0c | ||
25 | #define UART_DM646X_SCR 0x10 | ||
26 | #define UART_DM646X_SCR_TX_WATERMARK 0x08 | ||
27 | |||
28 | struct davinci_uart_config { | ||
29 | /* Bit field of UARTs present; bit 0 --> UART1 */ | ||
30 | unsigned int enabled_uarts; | ||
31 | }; | ||
32 | |||
33 | extern void davinci_serial_init(struct davinci_uart_config *); | ||
19 | 34 | ||
20 | #endif /* __ASM_ARCH_SERIAL_H */ | 35 | #endif /* __ASM_ARCH_SERIAL_H */ |