aboutsummaryrefslogtreecommitdiff
path: root/module-common.c
diff options
context:
space:
mode:
authorJamin Lin <jamin_lin@aspeedtech.com>2024-10-22 17:40:55 +0800
committerCédric Le Goater <clg@redhat.com>2024-10-24 07:57:47 +0200
commit9785731ec4f7f314d583e65114da5afd90980420 (patch)
treef10442d2254e1b8e446295ceea28c997a7887790 /module-common.c
parentc0400e3ac6c2d5751ce2bff314f3cc7a01e7c50d (diff)
downloadqemu-9785731ec4f7f314d583e65114da5afd90980420.zip
qemu-9785731ec4f7f314d583e65114da5afd90980420.tar.gz
qemu-9785731ec4f7f314d583e65114da5afd90980420.tar.bz2
hw/block:m25p80: Support write status register 2 command (0x31) for w25q01jvq
According to the w25q01jv datasheet at page 16, it is required to set QE bit in "Status Register 2" to enable quad mode. Currently, m25p80 support users utilize "Write Status Register 1(0x01)" command to set QE bit in "Status Register 2" and utilize "Read Status Register 2(0x35)" command to get the QE bit status. However, some firmware directly utilize "Status Register 2(0x31)" command to set QE bit. To fully support quad mode for w25q01jvq, adds WRSR2 command. Update collecting data needed 1 byte for WRSR2 command in decode_new_cmd function and verify QE bit at the first byte of collecting data bit 2 in complete_collecting_data. Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Reviewed-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'module-common.c')
0 files changed, 0 insertions, 0 deletions