summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorUrja Rannikko <urjaman@gmail.com>2015-06-29 23:24:23 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2015-06-29 23:24:23 +0000
commit0b4ffd58aaca065c55a7933df286dbe275d9ebd7 (patch)
tree2efb5b97da732f7bb35990a4eb86cd1bf59f13e2 /flashrom.c
parent25e9f40e21e715e4ee6183a42c8521406f91b258 (diff)
downloadast2050-flashrom-0b4ffd58aaca065c55a7933df286dbe275d9ebd7.zip
ast2050-flashrom-0b4ffd58aaca065c55a7933df286dbe275d9ebd7.tar.gz
serprog: Fix FWH/LPC by implementing serprog_map
The serprog protocol does only transmit 24 bit-wide address and ignores the top 8 bit. This is fine as long as the underlying hardware ignores the latter anyway (which is the case for parallel chips that even lack the respective pins). FWH/LPC chips, however, operate on a full 32-bit (LPC) or 28-bit (FWH) address space and would fail with the fallback mapping to NULL. Corresponding to flashrom svn r1895. Signed-off-by: Urja Rannikko <urjaman@gmail.com> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index a389cb2..d51a44c 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -212,7 +212,7 @@ const struct programmer_entry programmer_table[] = {
/* FIXME */
.devs.note = "All programmer devices speaking the serprog protocol\n",
.init = serprog_init,
- .map_flash_region = fallback_map,
+ .map_flash_region = serprog_map,
.unmap_flash_region = fallback_unmap,
.delay = serprog_delay,
},
OpenPOWER on IntegriCloud