You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ot] hw/riscv: ot_earlgrey: create flash & bus for spi passthrough mode
This commit creates a new internal SPI bus and CS GPIO for
`ot-spi_device` to communicate with a downstream flash device in
passthrough mode. This commits adds no passthrough functionality yet,
just command line functionality.
This is done by creating and adding a new flash device with an
associated drive to the board, similar to how the other flash devices
are added. The next available drive bus index was 3.
The downstream flash for passthrough mode can be created like this on
the command line:
- `-global ot-earlgrey-board.spiflash_passthrough=<type>`, where `type`
is a type of flash device from the M25P80 family, e.g `w25q256` (see
`hw/block/m25p80.c` for a list)
- `-drive if=mtd,file=<file>,format=raw,bus=3` to assign backing storage
to the flash. Bus 3 indicates the SPI flash for OT SPI Device
passthrough mode.
Signed-off-by: Alice Ziuziakowska <[email protected]>
0 commit comments