You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
serial:st-asc: Add ST ASC driver.
This patch adds support to ASC (asynchronous serial controller) driver, which is basically a standard serial driver. This IP is common across all the ST parts for settop box platforms. ASC is embedded in ST COMMS IP block. It supports Rx & Tx functionality. It support all industry standard baud rates. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> CC: Stephen Gallimore <stephen.gallimore@st.com> CC: Stuart Menefy <stuart.menefy@st.com> CC: Arnd Bergmann <arnd@arndb.de> CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
75e66aa65e
commit
c4b0585607
18
Documentation/devicetree/bindings/tty/serial/st-asc.txt
Normal file
18
Documentation/devicetree/bindings/tty/serial/st-asc.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
*st-asc(Serial Port)
|
||||
|
||||
Required properties:
|
||||
- compatible : Should be "st,asc".
|
||||
- reg, reg-names, interrupts, interrupt-names : Standard way to define device
|
||||
resources with names. look in
|
||||
Documentation/devicetree/bindings/resource-names.txt
|
||||
|
||||
Optional properties:
|
||||
- st,hw-flow-ctrl bool flag to enable hardware flow control.
|
||||
- st,force-m1 bool flat to force asc to be in Mode-1 recommeded
|
||||
for high bit rates (above 19.2K)
|
||||
Example:
|
||||
serial@fe440000{
|
||||
compatible = "st,asc";
|
||||
reg = <0xfe440000 0x2c>;
|
||||
interrupts = <0 209 0>;
|
||||
};
|
||||
@@ -1497,6 +1497,22 @@ config SERIAL_FSL_LPUART_CONSOLE
|
||||
If you have enabled the lpuart serial port on the Freescale SoCs,
|
||||
you can make it the console by answering Y to this option.
|
||||
|
||||
config SERIAL_ST_ASC
|
||||
tristate "ST ASC serial port support"
|
||||
select SERIAL_CORE
|
||||
help
|
||||
This driver is for the on-chip Asychronous Serial Controller on
|
||||
STMicroelectronics STi SoCs.
|
||||
ASC is embedded in ST COMMS IP block. It supports Rx & Tx functionality.
|
||||
It support all industry standard baud rates.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config SERIAL_ST_ASC_CONSOLE
|
||||
bool "Support for console on ST ASC"
|
||||
depends on SERIAL_ST_ASC=y
|
||||
select SERIAL_CORE_CONSOLE
|
||||
|
||||
endmenu
|
||||
|
||||
endif # TTY
|
||||
|
||||
@@ -65,6 +65,7 @@ obj-$(CONFIG_SERIAL_KGDB_NMI) += kgdb_nmi.o
|
||||
obj-$(CONFIG_SERIAL_KS8695) += serial_ks8695.o
|
||||
obj-$(CONFIG_SERIAL_OMAP) += omap-serial.o
|
||||
obj-$(CONFIG_SERIAL_ALTERA_UART) += altera_uart.o
|
||||
obj-$(CONFIG_SERIAL_ST_ASC) += st-asc.o
|
||||
obj-$(CONFIG_KGDB_SERIAL_CONSOLE) += kgdboc.o
|
||||
obj-$(CONFIG_SERIAL_QE) += ucc_uart.o
|
||||
obj-$(CONFIG_SERIAL_TIMBERDALE) += timbuart.o
|
||||
|
||||
937
drivers/tty/serial/st-asc.c
Normal file
937
drivers/tty/serial/st-asc.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -232,4 +232,7 @@
|
||||
/* SH-SCI */
|
||||
#define PORT_HSCIF 104
|
||||
|
||||
/* ST ASC type numbers */
|
||||
#define PORT_ASC 105
|
||||
|
||||
#endif /* _UAPILINUX_SERIAL_CORE_H */
|
||||
|
||||
Reference in New Issue
Block a user