summaryrefslogtreecommitdiffstats
path: root/chipdrivers.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-09-12 08:28:56 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-09-12 08:28:56 +0000
commitfaac94d9852b43d230b76d175249f7032c3e9ce7 (patch)
tree6e759d9d533e8d1bd7e736607c411232412b18f8 /chipdrivers.h
parentf15d79a5e01721ab6492f227c132eec3706cbe63 (diff)
downloadflashrom-faac94d9852b43d230b76d175249f7032c3e9ce7.zip
flashrom-faac94d9852b43d230b76d175249f7032c3e9ce7.tar.gz
Cleanup ST M50 driver
There are two locking strategies used by this umbrella family, one uniform and one that matches the sector layout of the chip. Refactor the functions involved and rename the overly complicated file to just stm50.c and the functions accordingly. This fixes unlocking of some of the non-uniform chips and gets rid of the abuse of page_size. Corresponding to flashrom svn r1736. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'chipdrivers.h')
-rw-r--r--chipdrivers.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/chipdrivers.h b/chipdrivers.h
index 180d36d..851e90a 100644
--- a/chipdrivers.h
+++ b/chipdrivers.h
@@ -193,9 +193,10 @@ int printlock_at49f(struct flashctx *flash);
/* w29ee011.c */
int probe_w29ee011(struct flashctx *flash);
-/* stm50flw0x0x.c */
-int erase_sector_stm50flw0x0x(struct flashctx *flash, unsigned int block, unsigned int blocksize);
-int unlock_stm50flw0x0x(struct flashctx *flash);
+/* stm50.c */
+int erase_sector_stm50(struct flashctx *flash, unsigned int block, unsigned int blocksize);
+int unlock_stm50_uniform(struct flashctx *flash);
+int unlock_stm50_nonuniform(struct flashctx *flash);
/* en29lv640b.c */
int probe_en29lv640b(struct flashctx *flash);
OpenPOWER on IntegriCloud