diff options
author | Peter Stuge <peter@stuge.se> | 2009-01-26 03:08:45 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2009-01-26 03:08:45 +0000 |
commit | bf196e91997a6f2a0d0e1b6670f300d3fc73ca8f (patch) | |
tree | 647b2bdde31184104f4eac0758d03d872a3e45ea /flash.h | |
parent | 9d9399c5b47c63648dd72ce8b699ae8cc58a2f1a (diff) | |
download | flashrom-bf196e91997a6f2a0d0e1b6670f300d3fc73ca8f.tar.gz flashrom-bf196e91997a6f2a0d0e1b6670f300d3fc73ca8f.tar.bz2 flashrom-bf196e91997a6f2a0d0e1b6670f300d3fc73ca8f.zip |
Winbond SuperIO SPI driver
Developed and tested to work on Intel D201GLY in July 2008.
Tested by a helpful person on IRC whose name I've since forgotten. Sorry!
Corresponding to flashrom svn r404 and coreboot v2 svn r3910.
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Ward Vandewege <ward@gnu.org>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -474,7 +474,8 @@ typedef enum { BUS_TYPE_ICH9_SPI, BUS_TYPE_IT87XX_SPI, BUS_TYPE_SB600_SPI, - BUS_TYPE_VIA_SPI + BUS_TYPE_VIA_SPI, + BUS_TYPE_WBSIO_SPI } flashbus_t; extern flashbus_t flashbus; @@ -647,6 +648,12 @@ int probe_w29ee011(struct flashchip *flash); /* w49f002u.c */ int write_49f002(struct flashchip *flash, uint8_t *buf); +/* wbsio_spi.c */ +int wbsio_check_for_spi(const char *name); +int wbsio_spi_command(unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr); +int wbsio_spi_read(struct flashchip *flash, uint8_t *buf); +int wbsio_spi_write(struct flashchip *flash, uint8_t *buf); + /* stm50flw0x0x.c */ int probe_stm50flw0x0x(struct flashchip *flash); int erase_stm50flw0x0x(struct flashchip *flash); |