OSDN Git Service

tty: amba-pl011: use iotype instead of access_32b to track 32-bit I/O
authorTimur Tabi <timur@codeaurora.org>
Mon, 4 Jan 2016 21:37:42 +0000 (15:37 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2016 05:02:45 +0000 (21:02 -0800)
commit3b78fae793c027140cfe635ef216bf60aa6498f4
tree3b0157674a758482d9f3c773f3bdcb78990a9774
parentcdf091ca2c3d6875e5f0fca28de4a6ca2f5273e6
tty: amba-pl011: use iotype instead of access_32b to track 32-bit I/O

Instead of defining a new field in the uart_amba_port structure, use the
existing iotype field of the uart_port structure, which is intended for
this purpose.  If we need to use 32-bit register access, we set iotype
to UPIO_MEM32, otherwise we set it to UPIO_MEM.

For early console, specify the "mmio32" option on the kernel command-line.
Example:

        earlycon=pl011,mmio32,0x3ced1000

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/kernel-parameters.txt
drivers/tty/serial/amba-pl011.c