mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
Add a dummy SPI controller driver, similar to the dummy LPC/FWH/Parallel flasher driver
Does not support reading or writing the fake chip yet. flashrom --programmer dummy also enables the dummy SPI controller driver. Testing the dummy SPI driver revealed a RDID debug printing bug in the SPI core. Fix that as well. Corresponding to flashrom svn r507. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
5
flash.h
5
flash.h
@ -571,7 +571,8 @@ typedef enum {
|
||||
BUS_TYPE_IT87XX_SPI,
|
||||
BUS_TYPE_SB600_SPI,
|
||||
BUS_TYPE_VIA_SPI,
|
||||
BUS_TYPE_WBSIO_SPI
|
||||
BUS_TYPE_WBSIO_SPI,
|
||||
BUS_TYPE_DUMMY_SPI
|
||||
} flashbus_t;
|
||||
|
||||
extern flashbus_t flashbus;
|
||||
@ -602,6 +603,8 @@ void dummy_chip_writel(uint32_t val, volatile void *addr);
|
||||
uint8_t dummy_chip_readb(const volatile void *addr);
|
||||
uint16_t dummy_chip_readw(const volatile void *addr);
|
||||
uint32_t dummy_chip_readl(const volatile void *addr);
|
||||
int dummy_spi_command(unsigned int writecnt, unsigned int readcnt,
|
||||
const unsigned char *writearr, unsigned char *readarr);
|
||||
|
||||
/* nic3com.c */
|
||||
int nic3com_init(void);
|
||||
|
Reference in New Issue
Block a user