summaryrefslogtreecommitdiff
path: root/programmer.h
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-12-20 20:25:19 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-12-20 20:25:19 +0000
commit23e4adb527acd55642ae603523d6966ca0716838 (patch)
treeb5b0f8f09acac5f114c80ac1ed2ff316c7c0eb12 /programmer.h
parent5c725be0653ca35aa38238e36a7539a84f6c7419 (diff)
downloadflashrom-23e4adb527acd55642ae603523d6966ca0716838.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. 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> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1860 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'programmer.h')
-rw-r--r--programmer.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/programmer.h b/programmer.h
index 09b6087..d6e06cb 100644
--- a/programmer.h
+++ b/programmer.h
@@ -99,6 +99,9 @@ enum programmer {
#if CONFIG_USBBLASTER_SPI == 1
PROGRAMMER_USBBLASTER_SPI,
#endif
+#if CONFIG_MSTARDDC_SPI == 1
+ PROGRAMMER_MSTARDDC_SPI,
+#endif
PROGRAMMER_INVALID /* This must always be the last entry. */
};
@@ -474,6 +477,11 @@ int usbblaster_spi_init(void);
extern const struct dev_entry devs_usbblasterspi[];
#endif
+/* mstarddc_spi.c */
+#if CONFIG_MSTARDDC_SPI == 1
+int mstarddc_spi_init(void);
+#endif
+
/* rayer_spi.c */
#if CONFIG_RAYER_SPI == 1
int rayer_spi_init(void);
@@ -555,6 +563,9 @@ enum spi_controller {
#if CONFIG_USBBLASTER_SPI == 1
SPI_CONTROLLER_USBBLASTER,
#endif
+#if CONFIG_MSTARDDC_SPI == 1
+ SPI_CONTROLLER_MSTARDDC,
+#endif
};
#define MAX_DATA_UNSPECIFIED 0