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
commit7f517a710308133fd33f2fd9e10fa4e8c6a190e5 (patch)
tree8881584a476cc76b2e91ce92752029952b8e1f41 /programmer.h
parentd95355880a66fcbdb056031425288d29a9e6691f (diff)
downloadflashrom-7f517a710308133fd33f2fd9e10fa4e8c6a190e5.tar.gz
flashrom-7f517a710308133fd33f2fd9e10fa4e8c6a190e5.tar.bz2
flashrom-7f517a710308133fd33f2fd9e10fa4e8c6a190e5.zip
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. Corresponding to flashrom svn r1279. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> David writes: I applied the patch against the Chromium OS branch and successfully tested read and write operations on a Cr48. 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 fbc82cc98..b7cebc31c 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);