Commit Graph
3 Commits
Author SHA1 Message Date
Stafford Horne 4bc2bd5aef serial: liteuart: Add support for earlycon
Most litex boards using RISC-V soft cores us the sbi earlycon, however
this is not available for non RISC-V litex SoC's.  This patch enables
earlycon for liteuart which is available on all Litex SoC's making
support for earycon debugging more widely available.

Cc: Florent Kermarrec <[email protected]>
Cc: Mateusz Holenko <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Gabriel L. Somlo <[email protected]>
Reviewed-and-tested-by: Gabriel Somlo <[email protected]>
Reviewed-by: Jiri Slaby <[email protected]>
Reviewed-by: Joel Stanley <[email protected]>
Signed-off-by: Stafford Horne <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-05-20 16:35:01 +02:00
Wei Yongjun cebeddd6d0 serial: liteuart: fix return value check in liteuart_probe()
In case of error, the function devm_platform_get_and_ioremap_resource()
returns ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().

Fixes: 1da81e5562 ("drivers/tty/serial: add LiteUART driver")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2021-03-10 09:34:10 +01:00
Filip Kokosinski 1da81e5562 drivers/tty/serial: add LiteUART driver
This commit adds driver for the FPGA-based LiteUART serial controller
from LiteX SoC builder.

The current implementation supports LiteUART configured
for 32 bit data width and 8 bit CSR bus width.

It does not support IRQ.

Signed-off-by: Filip Kokosinski <[email protected]>
Signed-off-by: Mateusz Holenko <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Stafford Horne <[email protected]>
2020-11-09 21:07:01 +09:00