summaryrefslogtreecommitdiffstats
path: root/w29ee011.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-12-18 15:01:24 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-12-18 15:01:24 +0000
commit8a3c60cdd0e5632173567923ae1927763e31e857 (patch)
tree3a5514d022392cf4d8fa368f9f02653da21a93ca /w29ee011.c
parent63fd9026f1e82b67a65072fda862ba7af35839e1 (diff)
downloadflashrom-8a3c60cdd0e5632173567923ae1927763e31e857.tar.gz
flashrom-8a3c60cdd0e5632173567923ae1927763e31e857.tar.bz2
flashrom-8a3c60cdd0e5632173567923ae1927763e31e857.zip
Add struct flashctx * parameter to all functions accessing flash chips
All programmer access function prototypes except init have been made static and moved to the respective file. A few internal functions in flash chip drivers had chipaddr parameters which are no longer needed. The lines touched by flashctx changes have been adjusted to 80 columns except in header files. Corresponding to flashrom svn r1474. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'w29ee011.c')
-rw-r--r--w29ee011.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/w29ee011.c b/w29ee011.c
index e86c2f4bc..d2af23dc8 100644
--- a/w29ee011.c
+++ b/w29ee011.c
@@ -38,29 +38,29 @@ int probe_w29ee011(struct flashctx *flash)
}
/* Issue JEDEC Product ID Entry command */
- chip_writeb(0xAA, bios + 0x5555);
+ chip_writeb(flash, 0xAA, bios + 0x5555);
programmer_delay(10);
- chip_writeb(0x55, bios + 0x2AAA);
+ chip_writeb(flash, 0x55, bios + 0x2AAA);
programmer_delay(10);
- chip_writeb(0x80, bios + 0x5555);
+ chip_writeb(flash, 0x80, bios + 0x5555);
programmer_delay(10);
- chip_writeb(0xAA, bios + 0x5555);
+ chip_writeb(flash, 0xAA, bios + 0x5555);
programmer_delay(10);
- chip_writeb(0x55, bios + 0x2AAA);
+ chip_writeb(flash, 0x55, bios + 0x2AAA);
programmer_delay(10);
- chip_writeb(0x60, bios + 0x5555);
+ chip_writeb(flash, 0x60, bios + 0x5555);
programmer_delay(10);
/* Read product ID */
- id1 = chip_readb(bios);
- id2 = chip_readb(bios + 0x01);
+ id1 = chip_readb(flash, bios);
+ id2 = chip_readb(flash, bios + 0x01);
/* Issue JEDEC Product ID Exit command */
- chip_writeb(0xAA, bios + 0x5555);
+ chip_writeb(flash, 0xAA, bios + 0x5555);
programmer_delay(10);
- chip_writeb(0x55, bios + 0x2AAA);
+ chip_writeb(flash, 0x55, bios + 0x2AAA);
programmer_delay(10);
- chip_writeb(0xF0, bios + 0x5555);
+ chip_writeb(flash, 0xF0, bios + 0x5555);
programmer_delay(10);
msg_cdbg("%s: id1 0x%02x, id2 0x%02x\n", __func__, id1, id2);