diff options
author | Iris Chen | 2022-05-25 10:31:33 +0200 |
---|---|---|
committer | Cédric Le Goater | 2022-05-25 10:31:33 +0200 |
commit | 188052a13377ff1f88b433255005eb9082d048e5 (patch) | |
tree | 74e19ae3bc8234d296ae00bad202b27a7d9735ba /hw/block | |
parent | docs: aspeed: Add fby35 board (diff) | |
download | qemu-188052a13377ff1f88b433255005eb9082d048e5.tar.gz qemu-188052a13377ff1f88b433255005eb9082d048e5.tar.xz qemu-188052a13377ff1f88b433255005eb9082d048e5.zip |
hw: m25p80: allow write_enable latch get/set
The write_enable latch property is not currently exposed.
This commit makes it a modifiable property.
Signed-off-by: Iris Chen <irischenlj@fb.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Message-Id: <20220513055022.951759-1-irischenlj@fb.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/block')
-rw-r--r-- | hw/block/m25p80.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 7d3d8b12e0..81ba3da4df 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -1533,6 +1533,7 @@ static int m25p80_pre_save(void *opaque) static Property m25p80_properties[] = { /* This is default value for Micron flash */ + DEFINE_PROP_BOOL("write-enable", Flash, write_enable, false), DEFINE_PROP_UINT32("nonvolatile-cfg", Flash, nonvolatile_cfg, 0x8FFF), DEFINE_PROP_UINT8("spansion-cr1nv", Flash, spansion_cr1nv, 0x0), DEFINE_PROP_UINT8("spansion-cr2nv", Flash, spansion_cr2nv, 0x8), |