summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-01-08 16:53:13 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-01-08 16:53:13 +0000
commitf8bc28fc3a52c4b635a4c2c1af3c105b44d5c475 (patch)
tree9907373911d2536b2a54832367e7b20f02034062 /flashchips.c
parent851ecf29f196e9f394db551fb76d8817a16a19ad (diff)
downloadast2050-flashrom-f8bc28fc3a52c4b635a4c2c1af3c105b44d5c475.zip
ast2050-flashrom-f8bc28fc3a52c4b635a4c2c1af3c105b44d5c475.tar.gz
Add erase and write functions to the following chip definitions
AT25DF021 AT25DF041A AT25DF081 AT25DF161 AT25DF321 AT25DF321A AT25DF641 AT25F512B AT25FS010 AT25FS040 AT26DF081A AT26DF161 AT26DF161A AT26DF321 AT26F004 Straight from the data sheets, untested because I lack the hardware. Corresponding to flashrom svn r376 and coreboot v2 svn r3853. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Peter Stuge <peter@stuge.se>
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/flashchips.c b/flashchips.c
index df57432..628d48d 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -123,8 +123,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -137,8 +137,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -151,8 +151,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -165,8 +165,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -179,7 +179,7 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_OK_PREW,
.probe = probe_spi_rdid,
- .erase = spi_chip_erase_c7,
+ .erase = spi_chip_erase_60_c7,
.write = spi_chip_write,
.read = spi_chip_read,
},
@@ -193,8 +193,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -207,8 +207,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -221,8 +221,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -235,8 +235,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -249,8 +249,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -277,8 +277,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -291,8 +291,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -305,8 +305,8 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
- .write = NULL,
+ .erase = spi_chip_erase_60_c7,
+ .write = spi_chip_write,
.read = spi_chip_read,
},
@@ -320,7 +320,7 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = spi_chip_erase_c7,
+ .erase = spi_chip_erase_60_c7,
.write = spi_chip_write,
.read = spi_chip_read,
},*/
@@ -334,7 +334,7 @@ struct flashchip flashchips[] = {
.page_size = 256,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
- .erase = NULL,
+ .erase = spi_chip_erase_60_c7,
.write = NULL /* Incompatible Page write */,
.read = spi_chip_read,
},
OpenPOWER on IntegriCloud