Skip to contentSkip to conversation

serial: mxs: Add MXS AUART driver

PATCH New Marek Vasut 2 participants 2 messages May 6, 2023 – May 21, 2023 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 serial: mxs: Add MXS AUART driver

Add trivial driver for the MXS AUART IP. This is the other UART IP present in i.MX23 and i.MX28, used to drive the non-DUART ports.

---
Cc: "NXP i.MX U-Boot Team" <[email protected]>
Cc: Andrejs Cainikovs <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Fedor Ross <[email protected]>
Cc: Jim Liu <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Samuel Holland <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stanley Chu <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Ye Li <[email protected]>
---
V2: Flip the input data test condition

---
 drivers/serial/Kconfig      |   8 +++
 drivers/serial/Makefile     |   1 +
 drivers/serial/serial_mxs.c | 129 ++++++++++++++++++++++++++++++++++++
 3 files changed, 138 insertions(+)
 create mode 100644 drivers/serial/serial_mxs.c
drivers/serial/Kconfig +8 -0
index 7faf6784442..59b2be55751 100644
@@ -956,6 +956,14 @@ config MSM_GENI_SERIAL
 	  Driver works in FIFO mode.
 	  Multiple baudrates supported.
 
+config MXS_AUART_SERIAL
+	bool "MXS AUART"
+	depends on DM_SERIAL
+	help
+	  Support for Freescale i.MX23 / i.MX28 AUART or Application UART IP.
+	  This IP is present in the aforementioned SoCs, however this is not
+	  the IP used to drive the Debug UART port, for that see PL01X_SERIAL .
+
 config OCTEON_SERIAL_BOOTCMD
 	bool "MIPS Octeon PCI remote bootcmd input"
 	depends on ARCH_OCTEON
drivers/serial/Makefile +1 -0
index 01fef3f323b..403ab1ded68 100644
@@ -46,6 +46,7 @@ obj-$(CONFIG_BCM283X_MU_SERIAL) += serial_bcm283x_mu.o
 obj-$(CONFIG_BCM283X_PL011_SERIAL) += serial_bcm283x_pl011.o
 obj-$(CONFIG_MSM_SERIAL) += serial_msm.o
 obj-$(CONFIG_MSM_GENI_SERIAL) += serial_msm_geni.o
+obj-$(CONFIG_MXS_AUART_SERIAL) += serial_mxs.o
 obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o
 obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o
 obj-$(CONFIG_NULLDEV_SERIAL) += serial_nulldev.o
drivers/serial/serial_mxs.c new file +129 -0

129 lines not on this page · raw message

Signature · 1 line
2.39.2
#1 lore raw

PATCH v2 1/1 serial: mxs: Add MXS AUART driver

Quoted 3 lines

Add trivial driver for the MXS AUART IP. This is the other UART IP present in i.MX23 and i.MX28, used to drive the non-DUART ports.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================