summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorAlexandre Boeglin <alex@boeglin.org>2014-12-20 20:25:19 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-12-20 20:25:19 +0000
commit80e647158800d927c776d1278d8817f0ed8f17cd (patch)
treeb5b0f8f09acac5f114c80ac1ed2ff316c7c0eb12 /flashrom.c
parent5859ced80f17217e7e829b61b02bb18b66b4f8e4 (diff)
downloadast2050-flashrom-80e647158800d927c776d1278d8817f0ed8f17cd.zip
ast2050-flashrom-80e647158800d927c776d1278d8817f0ed8f17cd.tar.gz
Add support for the MSTAR I2C ISP protocol
Basically, among other chips, MSTAR manufactures SoCs that equip TV sets and computer screens, and it seems that all of their products use the same in-system programming protocol. Basically, they use the DDC channel of VGA or DVI connectors, which is actually an I2C bus, to encapsulate SPI frames (the flash chip is connected to the SoC through an SPI bus). I wrote this patch since the screen I bought had a software bug, and the manufacturer only released a new firmware binary, but no tool or instructions on flashing it. More details can be found here: http://boeglin.org/blog/index.php?entry=Flashing-a-BenQ-Z-series-for-free(dom) I only read code from Linux kernel archives published by Acer to figure out the protocol (for a touchscreen controller and an NFC chip, both by MSTAR, that share the same ISP protocol), so I don't think there are any legal problems with it. Compilation is currently disabled by default in the Makefile. If in doubt, additional Makefile bugs were added by Stefan. Corresponding to flashrom svn r1860. Signed-off-by: Alexandre Boeglin <alex@boeglin.org> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index 27bc36a..104ecb8 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -354,6 +354,18 @@ const struct programmer_entry programmer_table[] = {
},
#endif
+#if CONFIG_MSTARDDC_SPI == 1
+ {
+ .name = "mstarddc_spi",
+ .type = OTHER,
+ .devs.note = "MSTAR DDC devices addressable via /dev/i2c-* on Linux.\n",
+ .init = mstarddc_spi_init,
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .delay = internal_delay,
+ },
+#endif
+
{0}, /* This entry corresponds to PROGRAMMER_INVALID. */
};
OpenPOWER on IntegriCloud