diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2017-05-02 19:15:03 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2017-08-26 23:34:51 -0500 |
commit | b2fc3aadd7a13e3943a7cbbff6dcf439498427e2 (patch) | |
tree | 75ac96e1467b9a8af815380d0c04b2ab2d09a85d /programmer.h | |
parent | 6c3b9415adef0d7fa99923363bf3437298ad9fef (diff) | |
download | ast2050-flashrom-b2fc3aadd7a13e3943a7cbbff6dcf439498427e2.zip ast2050-flashrom-b2fc3aadd7a13e3943a7cbbff6dcf439498427e2.tar.gz |
Add support for programming SPI devices attached to the AST1100 BMC
All possible (three) Flash devices are supported with the programmer-
specific parameter spibus=<n>. The AST2050 device is compatible with
this driver.
Read and write tested on ASUS KGPE-D16 with ASMB4 BMC module installed.
Change-Id: I5b17061a7f308eabe50d87127311dc88cc96e16c
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
Diffstat (limited to 'programmer.h')
-rw-r--r-- | programmer.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/programmer.h b/programmer.h index 25a8506..754f3cc 100644 --- a/programmer.h +++ b/programmer.h @@ -5,6 +5,7 @@ * Copyright (C) 2000 Ronald G. Minnich <rminnich@gmail.com> * Copyright (C) 2005-2009 coresystems GmbH * Copyright (C) 2006-2009 Carl-Daniel Hailfinger + * Copyright (C) 2016-2017 Raptor Engineering, LLC * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -45,6 +46,9 @@ enum programmer { #if CONFIG_GFXNVIDIA == 1 PROGRAMMER_GFXNVIDIA, #endif +#if CONFIG_AST1100 == 1 + PROGRAMMER_AST1100, +#endif #if CONFIG_AST2400 == 1 PROGRAMMER_AST2400, #endif @@ -402,10 +406,16 @@ int gfxnvidia_init(void); extern const struct dev_entry gfx_nvidia[]; #endif +/* ast1100.c */ +#if CONFIG_AST1100 == 1 +int ast1100_init(void); +extern const struct dev_entry bmc_aspeed_ast1100[]; +#endif + /* ast2400.c */ #if CONFIG_AST2400 == 1 int ast2400_init(void); -extern const struct dev_entry bmc_aspeed[]; +extern const struct dev_entry bmc_aspeed_ast2400[]; #endif /* drkaiser.c */ @@ -610,6 +620,10 @@ enum spi_controller { SPI_CONTROLLER_CH341A_SPI, #endif +#if CONFIG_AST1100 == 1 + SPI_CONTROLLER_AST1100, +#endif + #if CONFIG_AST2400 == 1 SPI_CONTROLLER_AST2400, #endif |