mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
264a360ae0
commit
188052a133
5 changed files with 98 additions and 32 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue