summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-03-08 00:23:49 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-03-08 00:23:49 +0000
commit2fdef8e551b6c1c3f9b82372a497ba7f3240c097 (patch)
tree8881584a476cc76b2e91ce92752029952b8e1f41 /programmer.h
parentee4b033cc96040eb0cf33909eb1c2f489f98a577 (diff)
downloadflashrom-2fdef8e551b6c1c3f9b82372a497ba7f3240c097.zip
flashrom-2fdef8e551b6c1c3f9b82372a497ba7f3240c097.tar.gz
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 <c-d.hailfinger.devel.2006@gmx.net> Acked-by: David Hendricks <dhendrix@google.com>
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h4
1 files changed, 3 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud