summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2016-08-26 16:25:46 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2017-05-02 14:20:25 -0500
commitad5ce3b6e310c1465ba9d2f1022b803e392f439e (patch)
tree63640faa2693b066337144fe624beec97ee0a941 /flashrom.c
parentacf6d5342b908d797c215dc35db2ae38405838a6 (diff)
downloadast2050-flashrom-ad5ce3b6e310c1465ba9d2f1022b803e392f439e.zip
ast2050-flashrom-ad5ce3b6e310c1465ba9d2f1022b803e392f439e.tar.gz
Add support for programming SPI devices attached to the AST2400 BMC
All possible (five) Flash devices are supported with the programmer- specific parameter spibus=<n>, along with a special setting spibus=host to access the dedicated SPI controller (often used for the host BIOS). Change-Id: I3d49c73b6f5da97af23cace89759923265c256dc Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
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 f6dbbc5..8f2ac92 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -134,6 +134,18 @@ const struct programmer_entry programmer_table[] = {
},
#endif
+#if CONFIG_AST2400 == 1
+ {
+ .name = "ast2400",
+ .type = PCI,
+ .devs.dev = bmc_aspeed,
+ .init = ast2400_init,
+ .map_flash_region = fallback_map,
+ .unmap_flash_region = fallback_unmap,
+ .delay = internal_delay,
+ },
+#endif
+
#if CONFIG_DRKAISER == 1
{
.name = "drkaiser",
OpenPOWER on IntegriCloud