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 /programmer.h | |
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 'programmer.h')
-rw-r--r-- | programmer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/programmer.h b/programmer.h index bd8e98d..25a8506 100644 --- a/programmer.h +++ b/programmer.h @@ -45,6 +45,9 @@ enum programmer { #if CONFIG_GFXNVIDIA == 1 PROGRAMMER_GFXNVIDIA, #endif +#if CONFIG_AST2400 == 1 + PROGRAMMER_AST2400, +#endif #if CONFIG_DRKAISER == 1 PROGRAMMER_DRKAISER, #endif @@ -399,6 +402,12 @@ int gfxnvidia_init(void); extern const struct dev_entry gfx_nvidia[]; #endif +/* ast2400.c */ +#if CONFIG_AST2400 == 1 +int ast2400_init(void); +extern const struct dev_entry bmc_aspeed[]; +#endif + /* drkaiser.c */ #if CONFIG_DRKAISER == 1 int drkaiser_init(void); @@ -600,6 +609,10 @@ enum spi_controller { #if CONFIG_CH341A_SPI == 1 SPI_CONTROLLER_CH341A_SPI, #endif + +#if CONFIG_AST2400 == 1 + SPI_CONTROLLER_AST2400, +#endif }; #define MAX_DATA_UNSPECIFIED 0 |