From e151499fd25fb8b46463cc6562e88016bcda3932 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Tue, 2 Oct 2007 15:49:25 +0000 Subject: 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 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 Acked-by: Ward Vandewege --- flashchips.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'flashchips.c') diff --git a/flashchips.c b/flashchips.c index ec8089a3..0c393a9f 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, -- cgit v1.2.3