omap: Serial: Define register access modes in LCR
authorAndrei Emeltchenko <andrei.emeltchenko@nokia.com>
Tue, 30 Nov 2010 22:11:49 +0000 (14:11 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 30 Nov 2010 22:11:49 +0000 (14:11 -0800)
commit662b083a87a3489f3f19c6e0651c1b99b0de5df0
tree67c7ba4784a1099f404c42ba1496c3078fa4af71
parent498cb95175c29ed96bf32f30df2d11ec1c7f3879
omap: Serial: Define register access modes in LCR

Access to some registers depends on register access mode
Three different modes are available for OMAP (at least)
• Operational mode     LCR_REG[7] = 0x0
• Configuration mode A LCR_REG[7] = 0x1 and LCR_REG[7:0]! = 0xBF
• Configuration mode B LCR_REG[7] = 0x1 and LCR_REG[7:0]  = 0xBF

Define access modes and remove redefinitions and magic numbers
in serial drivers (and later in bluetooth driver).

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@nokia.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>
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/include/plat/omap-serial.h
drivers/serial/8250.c
drivers/serial/omap-serial.c
include/linux/serial_reg.h