summaryrefslogtreecommitdiffstats
path: root/programmer.h
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 /programmer.h
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 'programmer.h')
-rw-r--r--programmer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/programmer.h b/programmer.h
index 913522b..3bf292d 100644
--- a/programmer.h
+++ b/programmer.h
@@ -706,6 +706,7 @@ int register_master(const struct registered_master *mst);
#if CONFIG_SERPROG == 1
int serprog_init(void);
void serprog_delay(unsigned int usecs);
+void *serprog_map(const char *descr, uintptr_t phys_addr, size_t len);
#endif
/* serial.c */
OpenPOWER on IntegriCloud