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 | 36b3932f994bce7cb38d1b3bec9e25f6a346294b (patch) | |
tree | 592853b6f97b7906f4d1c1ad0c2bf8438bef29c6 /util/flashrom/flash.h | |
parent | 8991302f5450fd1a02eb107a6a0fc491cc437c8c (diff) | |
download | coreboot-36b3932f994bce7cb38d1b3bec9e25f6a346294b.tar.xz |
flashrom: 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!
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Ward Vandewege <ward@gnu.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3910 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/flash.h')
-rw-r--r-- | util/flashrom/flash.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/util/flashrom/flash.h b/util/flashrom/flash.h index 317155a340..0099b1484c 100644 --- a/util/flashrom/flash.h +++ b/util/flashrom/flash.h @@ -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); |