Commit 254da0d7 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Greg Kroah-Hartman

serial: mxs-auart: add Alphascale ASM9260 support

Alphascale ASM9260 uart IP has some common registers with
Freescale STMP37XX. This patch provide changes which
allow to reuse mxs-auart.c code for ASM9260.
Reviewed-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarOleksij Rempel <linux@rempel-privat.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e69ef01f
* Freescale MXS Application UART (AUART) * Freescale MXS Application UART (AUART)
Required properties: Required properties for all SoCs:
- compatible : Should be "fsl,<soc>-auart". The supported SoCs include - compatible : Should be one of fallowing variants:
imx23 and imx28. "fsl,imx23-auart" - Freescale i.MX23
"fsl,imx28-auart" - Freescale i.MX28
"alphascale,asm9260-auart" - Alphascale ASM9260
- reg : Address and length of the register set for the device - reg : Address and length of the register set for the device
- interrupts : Should contain the auart interrupt numbers - interrupts : Should contain the auart interrupt numbers
- dmas: DMA specifier, consisting of a phandle to DMA controller node - dmas: DMA specifier, consisting of a phandle to DMA controller node
...@@ -10,6 +12,12 @@ Required properties: ...@@ -10,6 +12,12 @@ Required properties:
Refer to dma.txt and fsl-mxs-dma.txt for details. Refer to dma.txt and fsl-mxs-dma.txt for details.
- dma-names: "rx" for RX channel, "tx" for TX channel. - dma-names: "rx" for RX channel, "tx" for TX channel.
Required properties for "alphascale,asm9260-auart":
- clocks : the clocks feeding the watchdog timer. See clock-bindings.txt
- clock-names : should be set to
"mod" - source for tick counter.
"ahb" - ahb gate.
Optional properties: Optional properties:
- fsl,uart-has-rtscts : Indicate the UART has RTS and CTS lines - fsl,uart-has-rtscts : Indicate the UART has RTS and CTS lines
for hardware flow control, for hardware flow control,
......
...@@ -1384,11 +1384,12 @@ config SERIAL_PCH_UART_CONSOLE ...@@ -1384,11 +1384,12 @@ config SERIAL_PCH_UART_CONSOLE
config SERIAL_MXS_AUART config SERIAL_MXS_AUART
tristate "MXS AUART support" tristate "MXS AUART support"
depends on HAS_DMA depends on HAS_DMA
depends on ARCH_MXS || COMPILE_TEST depends on ARCH_MXS || MACH_ASM9260 || COMPILE_TEST
select SERIAL_CORE select SERIAL_CORE
select SERIAL_MCTRL_GPIO if GPIOLIB select SERIAL_MCTRL_GPIO if GPIOLIB
help help
This driver supports the MXS Application UART (AUART) port. This driver supports the MXS and Alphascale ASM9260 Application
UART (AUART) port.
config SERIAL_MXS_AUART_CONSOLE config SERIAL_MXS_AUART_CONSOLE
bool "MXS AUART console support" bool "MXS AUART console support"
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment