serial: npcm: Add support for Nuvoton NPCM SoCs
PATCH v2 1/1 serial: npcm: Add support for Nuvoton NPCM SoCs
Add Nuvoton BMC NPCM7xx/NPCM8xx uart driver
Signed-off-by Stanley Chu <[email protected]>
---
Changes in v2:
Drop unnecessary outer brackets.
Return -EAGAIN if not ready for tx/rx.
Add comments.
--- drivers/serial/Kconfig | 9 +++ drivers/serial/Makefile | 1 + drivers/serial/serial_npcm.c | 150 +++++++++++++++++++++++++++++++++++ 3 files changed, 160 insertions(+) create mode 100644 drivers/serial/serial_npcm.c
drivers/serial/Kconfig +9 -0
@@ -920,6 +920,15 @@ config MPC8XX_CONS depends on MPC8xx default y +config NPCM_SERIAL + bool "UART driver for Nuvoton NPCM BMC" + depends on DM_SERIAL + help + Select this to enable UART support for Nuvoton BMCs + (NPCM7xx and NPCM8xx). + The driver enables the onboard serial port with 8-N-1 + configuration. + config XEN_SERIAL bool "XEN serial support" depends on XEN
drivers/serial/Makefile +1 -0
@@ -73,6 +73,7 @@ obj-$(CONFIG_OWL_SERIAL) += serial_owl.o obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o obj-$(CONFIG_MTK_SERIAL) += serial_mtk.o obj-$(CONFIG_MT7620_SERIAL) += serial_mt7620.o +obj-$(CONFIG_NPCM_SERIAL) += serial_npcm.o obj-$(CONFIG_SIFIVE_SERIAL) += serial_sifive.o obj-$(CONFIG_XEN_SERIAL) += serial_xen.o
drivers/serial/serial_npcm.c new file +150 -0
150 lines not on this page · raw message
Signature · 1 line
2.17.1
Quoted 9 lines · Stanley Chu
Add Nuvoton BMC NPCM7xx/NPCM8xx uart driver
Signed-off-by Stanley Chu <[email protected]>---
Changes in v2:
Drop unnecessary outer brackets.
Return-EAGAINif not ready for tx/rx.
Add comments.
Quoted 6 lines
--- drivers/serial/Kconfig | 9 +++ drivers/serial/Makefile | 1 + drivers/serial/serial_npcm.c | 150 +++++++++++++++++++++++++++++++++++ 3 files changed, 160 insertions(+) create mode 100644 drivers/serial/serial_npcm.c
Reviewed-by Simon Glass <[email protected]>