aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@nokia.com>2010-11-30 17:11:49 -0500
committerTony Lindgren <tony@atomide.com>2010-11-30 17:11:49 -0500
commit498cb95175c29ed96bf32f30df2d11ec1c7f3879 (patch)
treef46ffac45790929c8e7f1bf2838f537bc9e31e48 /arch/arm/mach-omap1
parente8a7e48bb248a1196484d3f8afa53bded2b24e71 (diff)
OMAP: Serial: Define OMAP uart MDR1 reg and remove magic numbers
Define MDR1 register serial definitions used in serial and bluetooth drivers. Change magic number to ones defined in serial_reg for omap1/2 serial driver. Remove redefined MDR1 register definitions in omap-serial driver. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.com> Acked-by: G, Manjunath Kondaiah <manjugk@ti.com> Acked-by: Govindraj.R <govindraj.raja@ti.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r--arch/arm/mach-omap1/serial.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c
index b78d0749f13d..c73d1b77b364 100644
--- a/arch/arm/mach-omap1/serial.c
+++ b/arch/arm/mach-omap1/serial.c
@@ -52,9 +52,11 @@ static inline void omap_serial_outp(struct plat_serial8250_port *p, int offset,
52 */ 52 */
53static void __init omap_serial_reset(struct plat_serial8250_port *p) 53static void __init omap_serial_reset(struct plat_serial8250_port *p)
54{ 54{
55 omap_serial_outp(p, UART_OMAP_MDR1, 0x07); /* disable UART */ 55 omap_serial_outp(p, UART_OMAP_MDR1,
56 UART_OMAP_MDR1_DISABLE); /* disable UART */
56 omap_serial_outp(p, UART_OMAP_SCR, 0x08); /* TX watermark */ 57 omap_serial_outp(p, UART_OMAP_SCR, 0x08); /* TX watermark */
57 omap_serial_outp(p, UART_OMAP_MDR1, 0x00); /* enable UART */ 58 omap_serial_outp(p, UART_OMAP_MDR1,
59 UART_OMAP_MDR1_16X_MODE); /* enable UART */
58 60
59 if (!cpu_is_omap15xx()) { 61 if (!cpu_is_omap15xx()) {
60 omap_serial_outp(p, UART_OMAP_SYSC, 0x01); 62 omap_serial_outp(p, UART_OMAP_SYSC, 0x01);