diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-03-08 00:23:49 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-03-08 00:23:49 +0000 |
commit | 7f517a710308133fd33f2fd9e10fa4e8c6a190e5 (patch) | |
tree | 8881584a476cc76b2e91ce92752029952b8e1f41 /spi.c | |
parent | d95355880a66fcbdb056031425288d29a9e6691f (diff) | |
download | ast2050-flashrom-7f517a710308133fd33f2fd9e10fa4e8c6a190e5.zip ast2050-flashrom-7f517a710308133fd33f2fd9e10fa4e8c6a190e5.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.
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 'spi.c')
-rw-r--r-- | spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,8 +58,8 @@ const struct spi_programmer spi_programmer[] = { { /* SPI_CONTROLLER_IT85XX */ .command = it85xx_spi_send_command, .multicommand = default_spi_send_multicommand, - .read = ich_spi_read, - .write_256 = ich_spi_write_256, + .read = it85_spi_read, + .write_256 = it85_spi_write_256, }, { /* SPI_CONTROLLER_IT87XX */ |