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 /flashrom.c | |
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 'flashrom.c')
-rw-r--r-- | flashrom.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -5,6 +5,7 @@ * Copyright (C) 2004 Tyan Corp <yhlu@tyan.com> * Copyright (C) 2005-2008 coresystems GmbH * Copyright (C) 2008,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 @@ -134,11 +135,23 @@ const struct programmer_entry programmer_table[] = { }, #endif +#if CONFIG_AST1100 == 1 + { + .name = "ast1100", + .type = PCI, + .devs.dev = bmc_aspeed_ast1100, + .init = ast1100_init, + .map_flash_region = fallback_map, + .unmap_flash_region = fallback_unmap, + .delay = internal_delay, + }, +#endif + #if CONFIG_AST2400 == 1 { .name = "ast2400", .type = PCI, - .devs.dev = bmc_aspeed, + .devs.dev = bmc_aspeed_ast2400, .init = ast2400_init, .map_flash_region = fallback_map, .unmap_flash_region = fallback_unmap, |