Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: flashchips.c

Issue 6791015: Support variable-size SPI chip for dummy programmer. (Closed) Base URL: ssh://gitrw.chromium.org:9222/flashrom.git@master
Patch Set: refine according to code review Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « flashchips.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: flashchips.c
diff --git a/flashchips.c b/flashchips.c
index dca01a243fe4bc95e1fc9fd6f4d11e8bcf83b933..4b921b53c2aaaeb6cdc8109505ee44d968942de4 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -8075,6 +8075,30 @@ struct flashchip flashchips[] = {
{
.vendor = "Generic",
+ .name = "Variable Size SPI chip",
+ .bustype = CHIP_BUSTYPE_SPI,
+ .manufacture_id = VARIABLE_SIZE_MANUF_ID,
+ .model_id = VARIABLE_SIZE_DEVICE_ID,
+ .total_size = 64, /* This size is set temporarily */
+ .page_size = 256,
+ .tested = TEST_OK_PREW,
+ .probe = probe_variable_size,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 16} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {64 * 1024, 1} },
+ .block_erase = spi_block_erase_d8,
+ }
+ },
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ },
+
+ {
+ .vendor = "Generic",
.name = "unknown SPI chip (RDID)",
.bustype = CHIP_BUSTYPE_SPI,
.manufacture_id = GENERIC_MANUF_ID,
« no previous file with comments | « flashchips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698