[U-Boot] [PATCH v3 0/2] SiFive UART support

Anup Patel anup at brainfault.org
Sat Dec 15 06:05:14 UTC 2018


This patchset adds SiFive UART driver for SiFive UART
found on SiFive boards.

The driver is tested on QEMU sifive_u machine. In fact,
with this patchset same U-Boot binary boots on QEMU virt
machine and QEMU sifive_u machine in both M-mode and
S-mode.

The patches are based upon latest RISC-V UBoot tree
(git://git.denx.de/u-boot-riscv.git) at commit id
48cbf6246052de10d35b616b5efb2f783904a49d

Changes since v2:
 - Added pending() callback implementation for tstc()
   console API to work correctly.

Changes since v1:
 - Fixed copyright header in SiFive UART driver
 - Imply SIFIVE_SERIAL for QEMU emulation instead
   of enabling it in defconfigs.

Anup Patel (2):
  drivers: serial: Add SiFive UART driver
  riscv: qemu: Imply SIFIVE_SERIAL for emulation

 board/emulation/qemu-riscv/Kconfig |   1 +
 drivers/serial/Kconfig             |  13 ++
 drivers/serial/Makefile            |   1 +
 drivers/serial/serial_sifive.c     | 215 +++++++++++++++++++++++++++++
 4 files changed, 230 insertions(+)
 create mode 100644 drivers/serial/serial_sifive.c

-- 
2.17.1



More information about the U-Boot mailing list