diff options
author | Wilfred Mallawa <wilfred.mallawa@wdc.com> | 2022-03-03 14:54:25 +1000 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2022-04-22 10:35:16 +1000 |
commit | 9c4888c9959ccb8d2e2dc7e0080d48ad1398c036 (patch) | |
tree | c844ecc390ddeef7edb8f9b1cc8e1d1c0598f932 /hw/ssi/trace-events | |
parent | da5006445a92bb7801f54a93452fac63ca2f634c (diff) | |
download | qemu-9c4888c9959ccb8d2e2dc7e0080d48ad1398c036.zip qemu-9c4888c9959ccb8d2e2dc7e0080d48ad1398c036.tar.gz qemu-9c4888c9959ccb8d2e2dc7e0080d48ad1398c036.tar.bz2 |
hw/ssi: Add Ibex SPI device model
Adds the SPI_HOST device model for ibex. The device specification is as per
[1]. The model has been tested on opentitan with spi_host unit tests
written for TockOS.
[1] https://docs.opentitan.org/hw/ip/spi_host/doc/
Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220303045426.511588-1-alistair.francis@opensource.wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/ssi/trace-events')
-rw-r--r-- | hw/ssi/trace-events | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/ssi/trace-events b/hw/ssi/trace-events index 612d3d6..c707d4a 100644 --- a/hw/ssi/trace-events +++ b/hw/ssi/trace-events @@ -20,3 +20,10 @@ npcm7xx_fiu_ctrl_read(const char *id, uint64_t addr, uint32_t data) "%s offset: npcm7xx_fiu_ctrl_write(const char *id, uint64_t addr, uint32_t data) "%s offset: 0x%04" PRIx64 " value: 0x%08" PRIx32 npcm7xx_fiu_flash_read(const char *id, int cs, uint64_t addr, unsigned int size, uint64_t value) "%s[%d] offset: 0x%08" PRIx64 " size: %u value: 0x%" PRIx64 npcm7xx_fiu_flash_write(const char *id, unsigned cs, uint64_t addr, unsigned int size, uint64_t value) "%s[%d] offset: 0x%08" PRIx64 " size: %u value: 0x%" PRIx64 + +# ibex_spi_host.c + +ibex_spi_host_reset(const char *msg) "%s" +ibex_spi_host_transfer(uint32_t tx_data, uint32_t rx_data) "tx_data: 0x%" PRIx32 " rx_data: @0x%" PRIx32 +ibex_spi_host_write(uint64_t addr, uint32_t size, uint64_t data) "@0x%" PRIx64 " size %u: 0x%" PRIx64 +ibex_spi_host_read(uint64_t addr, uint32_t size) "@0x%" PRIx64 " size %u:" |