From ad5ce3b6e310c1465ba9d2f1022b803e392f439e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 26 Aug 2016 16:25:46 -0500 Subject: Add support for programming SPI devices attached to the AST2400 BMC All possible (five) Flash devices are supported with the programmer- specific parameter spibus=, 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 --- flashrom.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'flashrom.c') 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", -- cgit v1.1