diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-05-31 18:00:57 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-05-31 18:00:57 +0000 |
commit | b8afecd0f5b87d319e5be385d670bb6bf368d7f8 (patch) | |
tree | 97fc6f5f98b27d821d7a3a917742ea8020bd4528 /flash.h | |
parent | 1dfe0ff1745118406f2ca0d03340dd346cc39770 (diff) | |
download | flashrom-b8afecd0f5b87d319e5be385d670bb6bf368d7f8.tar.gz flashrom-b8afecd0f5b87d319e5be385d670bb6bf368d7f8.tar.bz2 flashrom-b8afecd0f5b87d319e5be385d670bb6bf368d7f8.zip |
Add IT87xx SPI as external flasher option
This is a fast way to test if a IT87xx board_enable() would work.
Corresponding to flashrom svn r557.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Tested-by: Harald Gutmann <harald.gutmann@gmx.net>
Acked-by: Harald Gutmann <harald.gutmann@gmx.net>
Diffstat (limited to 'flash.h')
-rw-r--r-- | flash.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -84,6 +84,7 @@ extern int programmer; #define PROGRAMMER_DUMMY 0x01 #define PROGRAMMER_NIC3COM 0x02 #define PROGRAMMER_SATASII 0x03 +#define PROGRAMMER_IT87SPI 0x04 struct programmer_entry { const char *vendor; @@ -752,6 +753,7 @@ int ich_spi_write_256(struct flashchip *flash, uint8_t * buf); extern uint16_t it8716f_flashport; void enter_conf_mode_ite(uint16_t port); void exit_conf_mode_ite(uint16_t port); +int it87spi_init(void); int it87xx_probe_spi_flash(const char *name); int it8716f_spi_command(unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr); |