summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2007-10-02 15:49:25 +0000
committerWard Vandewege <ward@gnu.org>2007-10-02 15:49:25 +0000
commite151499fd25fb8b46463cc6562e88016bcda3932 (patch)
tree61a0bd17a96cd4238e4f3b438a9122ee48c5c40c /flashchips.c
parent92242628382764c1ad8ea57a7263569bc8300b45 (diff)
downloadflashrom-e151499fd25fb8b46463cc6562e88016bcda3932.tar.gz
flashrom-e151499fd25fb8b46463cc6562e88016bcda3932.tar.bz2
flashrom-e151499fd25fb8b46463cc6562e88016bcda3932.zip
This patch aims to restructure SPI flash support in a more reasonable way
It introduces a generic SPI host driver for the IT8716F Super I/O which will enable easy SPI programming without having to care for the peculiarities of the SPI host. To activate probing for the IT8716F, you have to use the gigabyte:m57sli mainboard override. SPI support will then use the gathered SPI host data to access the SPI flash. This has been tested sucessfully by Ward Vandewege <ward@gnu.org> on the GA-M57SLI v2.0, which has a MX25L4005 SPI flash part. Corresponding to flashrom svn r140 and coreboot v2 svn r2817. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ward Vandewege <ward@gnu.org>
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index ec8089a3b..0c393a9f4 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -38,6 +38,8 @@ struct flashchip flashchips[] = {
probe_jedec, erase_chip_jedec, write_jedec},
{"Mx29f002", MX_ID, MX_29F002, 256, 64 * 1024,
probe_29f002, erase_29f002, write_29f002},
+ {"MX25L4005", MX_ID, MX_25L4005, 512, 4 * 1024,
+ probe_spi, NULL, NULL},
{"SST29EE020A", SST_ID, SST_29EE020A, 256, 128,
probe_jedec, erase_chip_jedec, write_jedec},
{"SST28SF040A", SST_ID, SST_28SF040, 512, 256,