summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineering.com>2017-05-02 19:15:03 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2017-08-26 23:34:51 -0500
commitb2fc3aadd7a13e3943a7cbbff6dcf439498427e2 (patch)
tree75ac96e1467b9a8af815380d0c04b2ab2d09a85d /flashrom.c
parent6c3b9415adef0d7fa99923363bf3437298ad9fef (diff)
downloadast2050-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.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index 8f2ac92..64f0a64 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -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,
OpenPOWER on IntegriCloud