aboutsummaryrefslogtreecommitdiff
path: root/hw/block
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-05-18 20:21:28 +0200
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2019-07-02 02:31:13 +0200
commit9ac45b886ac36937ff0969d63c5b819b4efaa337 (patch)
treefc88d3172beeebe94d39fab0380d0311b43805cf /hw/block
parent1eb27d692ead211ff19667c5447fe9701c9fd992 (diff)
downloadqemu-9ac45b886ac36937ff0969d63c5b819b4efaa337.zip
qemu-9ac45b886ac36937ff0969d63c5b819b4efaa337.tar.gz
qemu-9ac45b886ac36937ff0969d63c5b819b4efaa337.tar.bz2
hw/block/pflash_cfi02: Document the current CFI values
Signed-off-by: Stephen Checkoway <stephen.checkoway@oberlin.edu> Message-Id: <20190426162624.55977-6-stephen.checkoway@oberlin.edu> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> [PMD: Extracted from bigger patch] Acked-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/block')
-rw-r--r--hw/block/pflash_cfi02.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c
index 1a794fa..f1bac48 100644
--- a/hw/block/pflash_cfi02.c
+++ b/hw/block/pflash_cfi02.c
@@ -550,6 +550,7 @@ static void pflash_cfi02_realize(DeviceState *dev, Error **errp)
pfl->wcycle = 0;
pfl->cmd = 0;
pfl->status = 0;
+
/* Hardcoded CFI table (mostly from SG29 Spansion flash) */
/* Standard "QRY" string */
pfl->cfi_table[0x10] = 'Q';
@@ -575,7 +576,7 @@ static void pflash_cfi02_realize(DeviceState *dev, Error **errp)
pfl->cfi_table[0x1D] = 0x00;
/* Vpp max (no Vpp pin) */
pfl->cfi_table[0x1E] = 0x00;
- /* Reserved */
+ /* Timeout per single byte/word write (128 ms) */
pfl->cfi_table[0x1F] = 0x07;
/* Timeout for min size buffer write (NA) */
pfl->cfi_table[0x20] = 0x00;
@@ -614,17 +615,25 @@ static void pflash_cfi02_realize(DeviceState *dev, Error **errp)
pfl->cfi_table[0x32] = 'R';
pfl->cfi_table[0x33] = 'I';
+ /* Extended version 1.0 */
pfl->cfi_table[0x34] = '1';
pfl->cfi_table[0x35] = '0';
+ /* Address sensitive unlock required. */
pfl->cfi_table[0x36] = 0x00;
+ /* Erase suspend not supported. */
pfl->cfi_table[0x37] = 0x00;
+ /* Sector protect not supported. */
pfl->cfi_table[0x38] = 0x00;
+ /* Temporary sector unprotect not supported. */
pfl->cfi_table[0x39] = 0x00;
+ /* Sector protect/unprotect scheme. */
pfl->cfi_table[0x3a] = 0x00;
+ /* Simultaneous operation not supported. */
pfl->cfi_table[0x3b] = 0x00;
+ /* Burst mode not supported. */
pfl->cfi_table[0x3c] = 0x00;
}