summaryrefslogtreecommitdiffstats
path: root/programmer.h
diff options
context:
space:
mode:
authorJonathan Kollasch <jakllsch@kollasch.net>2014-06-01 10:26:23 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-06-01 10:26:23 +0000
commit7f0f3fab4531c975245bf8f3553ff380ac802fc7 (patch)
tree1d2beb0dcc9fa121e7cfffc7e84d5c367cce9203 /programmer.h
parentf2756fa240ccf5b2fe888c4abc9c4cdf33932e3a (diff)
downloadflashrom-7f0f3fab4531c975245bf8f3553ff380ac802fc7.tar.gz
flashrom-7f0f3fab4531c975245bf8f3553ff380ac802fc7.tar.bz2
flashrom-7f0f3fab4531c975245bf8f3553ff380ac802fc7.zip
Add VIA VT6421A LPC programmer driver
Due to the mysterious address handling of this chip the user can specify a base address with the offset parameter, e.g.: flashrom -p atavia:offset=0xFFF00000 Thanks to Idwer Vollering for his iterative testing of this code, as well as to Martijn Bastiaan who did the last tests before merging. Corresponding to flashrom svn r1809. Signed-off-by: Jonathan Kollasch <jakllsch@kollasch.net> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/programmer.h b/programmer.h
index b896ddf5a..02d0db8f6 100644
--- a/programmer.h
+++ b/programmer.h
@@ -54,6 +54,9 @@ enum programmer {
#if CONFIG_ATAHPT == 1
PROGRAMMER_ATAHPT,
#endif
+#if CONFIG_ATAVIA == 1
+ PROGRAMMER_ATAVIA,
+#endif
#if CONFIG_FT2232_SPI == 1
PROGRAMMER_FT2232_SPI,
#endif
@@ -434,6 +437,13 @@ int atahpt_init(void);
extern const struct dev_entry ata_hpt[];
#endif
+/* atavia.c */
+#if CONFIG_ATAVIA == 1
+int atavia_init(void);
+void *atavia_map(const char *descr, uintptr_t phys_addr, size_t len);
+extern const struct dev_entry ata_via[];
+#endif
+
/* ft2232_spi.c */
#if CONFIG_FT2232_SPI == 1
int ft2232_spi_init(void);