From b8afecd0f5b87d319e5be385d670bb6bf368d7f8 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Sun, 31 May 2009 18:00:57 +0000 Subject: 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 Tested-by: Harald Gutmann Acked-by: Harald Gutmann --- flash.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'flash.h') diff --git a/flash.h b/flash.h index c056f6e..becab69 100644 --- a/flash.h +++ b/flash.h @@ -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); -- cgit v1.1