SiFive RISC-V GPIO Device
QEMU model of the GPIO device on the SiFive E300 series SOCs. The pins are not used by a board definition yet, however this implementation can already be used to trigger GPIO interrupts from the software by configuring a pin as both output and input. Signed-off-by:Fabien Chouteau <chouteau@adacore.com> Reviewed-by:
Palmer Dabbelt <palmer@sifive.com> Signed-off-by:
Palmer Dabbelt <palmer@sifive.com>
Showing
- Makefile.objs 1 addition, 0 deletionsMakefile.objs
- hw/riscv/Makefile.objs 1 addition, 0 deletionshw/riscv/Makefile.objs
- hw/riscv/sifive_e.c 26 additions, 2 deletionshw/riscv/sifive_e.c
- hw/riscv/sifive_gpio.c 388 additions, 0 deletionshw/riscv/sifive_gpio.c
- hw/riscv/trace-events 7 additions, 0 deletionshw/riscv/trace-events
- include/hw/riscv/sifive_e.h 6 additions, 2 deletionsinclude/hw/riscv/sifive_e.h
- include/hw/riscv/sifive_gpio.h 72 additions, 0 deletionsinclude/hw/riscv/sifive_gpio.h
Loading
Please register or sign in to comment