serial: mvebu-uart: use a generic way to access the registers
authorMiquel Raynal <miquel.raynal@free-electrons.com>
Fri, 13 Oct 2017 09:01:49 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Oct 2017 12:20:06 +0000 (14:20 +0200)
commit5218d76958644aa06de5d9bc5bf62d5c503e6e35
tree710791bc6f7fbf94566177880b604bd630d63d16
parent94228f9561bb6c7eb951e415f5497db52cca40f7
serial: mvebu-uart: use a generic way to access the registers

There are two UART ports on Armada3700. The second UART is based on the
first one, plus additional features, but it has a different register
layout (some bit fields are also moved inside the registers).

Clearly separate register offsets and bit fields that differ between the
standard and the extended IP. Access them in a generic way. Rename the
defines with the "STD" prefix for future distinction with "EXT" defines.
Point to these defines in the main driver data structure.

The early console only uses the standard port (not extended).

Suggested-by: Wilson Ding <dingwei@marvell.com>
Signed-off-by: Miquel Raynal <miquel.raynal@free-electrons.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mvebu-uart.c