mbox series

[U-Boot,0/2] SiFive UART support

Message ID 20181205062924.26640-1-anup@brainfault.org
Headers show
Series SiFive UART support | expand

Message

Anup Patel Dec. 5, 2018, 6:29 a.m. UTC
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
ce41c65382300b4be2b84df3c06c2aa6c591741d

Anup Patel (2):
  drivers: serial: Add SiFive UART driver
  riscv: qemu: Enable SiFive UART driver in defconfigs

 configs/qemu-riscv32_defconfig       |   1 +
 configs/qemu-riscv32_smode_defconfig |   1 +
 configs/qemu-riscv64_defconfig       |   1 +
 configs/qemu-riscv64_smode_defconfig |   1 +
 drivers/serial/Kconfig               |  13 ++
 drivers/serial/Makefile              |   1 +
 drivers/serial/serial_sifive.c       | 193 +++++++++++++++++++++++++++
 7 files changed, 211 insertions(+)
 create mode 100644 drivers/serial/serial_sifive.c

Comments

Bin Meng Dec. 10, 2018, 1:28 a.m. UTC | #1
Hi Anup,

On Wed, Dec 5, 2018 at 2:29 PM Anup Patel <anup@brainfault.org> wrote:
>
> 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.
>

I was unable to get this working with QEMU sifive_u target. I am using:

$ qemu-system-riscv64 -nographic -M sifive_u -kernel u-boot

with QEMU version 3.0.50

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

Regards,
Bin