diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2016-08-26 16:25:46 -0500 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2017-05-02 14:20:25 -0500 |
commit | ad5ce3b6e310c1465ba9d2f1022b803e392f439e (patch) | |
tree | 63640faa2693b066337144fe624beec97ee0a941 /flashrom.c | |
parent | acf6d5342b908d797c215dc35db2ae38405838a6 (diff) | |
download | ast2050-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.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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", |