]> Pileus Git - ~andy/linux/commit
ARM: OMAP2+: UART: Allow UART parameters to be configured from board file.
authorDeepak K <deepak.k@ti.com>
Wed, 9 Nov 2011 12:03:38 +0000 (17:33 +0530)
committerKevin Hilman <khilman@ti.com>
Thu, 15 Dec 2011 00:05:24 +0000 (16:05 -0800)
commitc86845db77ce220f77e6645b18800744684946ac
treef110531ca7ae25eb8193bd47f5ad78254eee92cc
parent634bd6e4817cd6a7109be8d2eee5c578a283d1ee
ARM: OMAP2+: UART: Allow UART parameters to be configured from board file.

The following UART parameters are defined within the UART driver:

1). Whether the UART uses DMA (dma_enabled), by default set to 0
2). The size of dma buffer (set to 4096 bytes)
3). The time after which the dma should stop if no more data is received.
4). The auto suspend delay that will be passed for pm_runtime_autosuspend
    where uart will be disabled after timeout

Different UARTs may be used for different purpose such as the console,
for interfacing bluetooth chip, for interfacing to a modem chip, etc.
Therefore, it is necessary to be able to customize the above settings
for a given board on a per UART basis.

This change allows these parameters to be configured from the board file
and allows the parameters to be configured for each UART independently.

If a board does not define its own custom parameters for the UARTs, then
use the default parameters in the structure "omap_serial_default_info".
The default parameters are defined to be the same as the current settings
in the UART driver to avoid breaking the UART for any cuurnelty supported
boards. By default, make all boards use the default UART parameters.

Signed-off-by: Deepak K <deepak.k@ti.com>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de> (for drivers/tty changes)
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/board-n8x0.c
arch/arm/mach-omap2/serial.c
arch/arm/plat-omap/include/plat/omap-serial.h
arch/arm/plat-omap/include/plat/serial.h
drivers/tty/serial/omap-serial.c