diff options
author | Andrei Emeltchenko <andrei.emeltchenko@nokia.com> | 2010-11-30 17:11:49 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-11-30 17:11:49 -0500 |
commit | 662b083a87a3489f3f19c6e0651c1b99b0de5df0 (patch) | |
tree | 67c7ba4784a1099f404c42ba1496c3078fa4af71 /arch/arm/plat-omap | |
parent | 498cb95175c29ed96bf32f30df2d11ec1c7f3879 (diff) |
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>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap-serial.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap-serial.h b/arch/arm/plat-omap/include/plat/omap-serial.h index 6a1788014611..b3e0bad9b77e 100644 --- a/arch/arm/plat-omap/include/plat/omap-serial.h +++ b/arch/arm/plat-omap/include/plat/omap-serial.h | |||
@@ -33,15 +33,6 @@ | |||
33 | 33 | ||
34 | #define OMAP_MODE13X_SPEED 230400 | 34 | #define OMAP_MODE13X_SPEED 230400 |
35 | 35 | ||
36 | /* | ||
37 | * LCR = 0XBF: Switch to Configuration Mode B. | ||
38 | * In configuration mode b allow access | ||
39 | * to EFR,DLL,DLH. | ||
40 | * Reference OMAP TRM Chapter 17 | ||
41 | * Section: 1.4.3 Mode Selection | ||
42 | */ | ||
43 | #define OMAP_UART_LCR_CONF_MDB 0XBF | ||
44 | |||
45 | /* WER = 0x7F | 36 | /* WER = 0x7F |
46 | * Enable module level wakeup in WER reg | 37 | * Enable module level wakeup in WER reg |
47 | */ | 38 | */ |