From 2fdef8e551b6c1c3f9b82372a497ba7f3240c097 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Tue, 8 Mar 2011 00:23:49 +0000 Subject: Various IT85* cleanups and fixes Fix a few typos. Change the EC memory region mapping name. Drop unused function parameter. Use mmio_writeb()/mmio_readb() to get reliable access to volatile memory locations instead of plain pointer access which is optimized away by gcc. Use own it85_* SPI high-level chip read/write functions instead of relying on unrelated ICH functions. David writes: I applied the patch against the Chromium OS branch and successfully tested read and write operations on a Cr48. Corresponding to flashrom svn r1279. Signed-off-by: Carl-Daniel Hailfinger Acked-by: David Hendricks --- programmer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'programmer.h') diff --git a/programmer.h b/programmer.h index fbc82cc..b7cebc3 100644 --- a/programmer.h +++ b/programmer.h @@ -585,9 +585,11 @@ int ich_spi_send_multicommand(struct spi_command *cmds); struct superio probe_superio_ite85xx(void); int it85xx_spi_init(void); int it85xx_shutdown(void); -int it85xx_probe_spi_flash(const char *name); +int it85xx_probe_spi_flash(void); int it85xx_spi_send_command(unsigned int writecnt, unsigned int readcnt, const unsigned char *writearr, unsigned char *readarr); +int it85_spi_read(struct flashchip *flash, uint8_t * buf, int start, int len); +int it85_spi_write_256(struct flashchip *flash, uint8_t * buf, int start, int len); /* it87spi.c */ void enter_conf_mode_ite(uint16_t port); -- cgit v1.1