hw/block: m25p80: Add support for w25q01jvq
PATCH 1/1 hw/block: m25p80: Add support for w25q01jvq
The w25q01jvq is a 128MB part. Support is being added to the kernel[1] and the two have been tested together.
1. https://lore.kernel.org/lkml/[email protected]/
--- hw/block/m25p80.c | 1 + 1 file changed, 1 insertion(+)
hw/block/m25p80.c +1 -0
@@ -340,6 +340,7 @@ static const FlashPartInfo known_devices[] = { { INFO("w25q80bl", 0xef4014, 0, 64 << 10, 16, ER_4K) }, { INFO("w25q256", 0xef4019, 0, 64 << 10, 512, ER_4K) }, { INFO("w25q512jv", 0xef4020, 0, 64 << 10, 1024, ER_4K) }, + { INFO("w25q01jvq", 0xef4021, 0, 64 << 10, 2048, ER_4K) }, }; typedef enum {
Signature · 1 line
2.34.1
Quoted 16 lines · Patrick Williams
The w25q01jvq is a 128MB part. Support is being added to the kernel[1] and the two have been tested together.
1. https://lore.kernel.org/lkml/[email protected]/
Signed-off-by Patrick Williams <[email protected]>Cc Potin Lai <[email protected]>--- hw/block/m25p80.c | 1 + 1 file changed, 1 insertion(+)hw/block/m25p80.c +0
-0
hw/block/m25p80.c static const FlashPartInfo known_devices[] = { · line 346
Quoted 7 lines
hw/block/m25p80.c +1
-0@@ -340,6 +340,7 @@ static const FlashPartInfo known_devices[] = { { INFO("w25q80bl", 0xef4014, 0, 64 << 10, 16, ER_4K) }, { INFO("w25q256", 0xef4019, 0, 64 << 10, 512, ER_4K) }, { INFO("w25q512jv", 0xef4020, 0, 64 << 10, 1024, ER_4K) }, + { INFO("w25q01jvq", 0xef4021, 0, 64 << 10, 2048, ER_4K) }, }; typedef enum {
Am 2022-03-04 20:30, schrieb Philippe Mathieu-Daudé:
Quoted 21 lines · Patrick Williams
Quoted 20 lines
The w25q01jvq is a 128MB part. Support is being added to the kernel[1] and the two have been tested together.
1. https://lore.kernel.org/lkml/[email protected]/
Signed-off-by Patrick Williams <[email protected]>Cc Potin Lai <[email protected]>--- hw/block/m25p80.c | 1 + 1 file changed, 1 insertion(+)hw/block/m25p80.c +0
-0@@ -340,6 +340,7 @@ static const FlashPartInfo known_devices[] = { {INFO ("w25q80bl" ,0xef4014 ,0 ,64 <<10 ,16 ,ER_4K ) }, { INFO("w25q256", 0xef4019, 0, 64 << 10, 512, ER_4K) },
Quoted 8 lines
Quoted 6 lines
hw/block/m25p80.c +1
-0{INFO ("w25q512jv" ,0xef4020 ,0 ,64 <<10 ,1024 ,ER_4K ) }, + { INFO("w25q01jvq", 0xef4021, 0, 64 << 10, 2048, ER_4K)},
}; typedef enum {Reviewed-by Philippe Mathieu-Daudé <[email protected]>
FWIW, the linux spi nor subsystem will rely more and more on the SFDP for newer flashes. I had a quick look at qemu's source and command RDSFDP (0x5a) isn't emulated. Might be worth implementing ;)
-michael
Quoted 27 lines · Michael Walle
Am 2022-03-04 20:30, schrieb Philippe Mathieu-Daudé:
Quoted 12 lines · Patrick Williams
Quoted 11 lines
The w25q01jvq is a 128MB part. Support is being added to the kernel[1] and the two have been tested together.
1. https://lore.kernel.org/lkml/[email protected]/
Signed-off-by Patrick Williams <[email protected]>Cc Potin Lai <[email protected]>---
hw/block/m25p80.c| 1 +1 file changed, 1 insertion(+)Quoted 13 lines
hw/block/m25p80.c static const FlashPartInfo known_devices[] = { · line 345
Quoted 11 lines
hw/block/m25p80.c +1
-0@@ -340,6 +340,7 @@ static const FlashPartInfo known_devices[] = { { INFO("w25q80bl", 0xef4014, 0, 64 << 10, 16, ER_4K) }, { INFO("w25q256", 0xef4019, 0, 64 << 10, 512, ER_4K) }, { INFO("w25q512jv", 0xef4020, 0, 64 << 10, 1024, ER_4K) }, + { INFO("w25q01jvq", 0xef4021, 0, 64 << 10, 2048, ER_4K) }, }; typedef enum {Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 3 lines
FWIW, the linux spi nor subsystem will rely more and more on the SFDP for newer flashes. I had a quick look at qemu's source and command RDSFDP (
0x5a) isn't emulated. Might be worth implementing ;)
Indeed. I really pulled my hair out when mx25l25635_post_bfpt_fixups was introduced for the MX25L25635F to activate 4B opcodes.
I have sent a patchset adding SFDP support :
http://patchwork.ozlabs.org/project/qemu-devel/list/?series=199024
but Francisco had comments I didn't have time to address.
Anyhow, the series is still in use in the aspeed branch :
https://github.com/legoater/qemu/commits/aspeed-7.0
I can respin.
Thanks,
C.
Quoted 16 lines · Patrick Williams
The w25q01jvq is a 128MB part. Support is being added to the kernel[1] and the two have been tested together.
1. https://lore.kernel.org/lkml/[email protected]/
Signed-off-by Patrick Williams <[email protected]>Cc Potin Lai <[email protected]>--- hw/block/m25p80.c | 1 + 1 file changed, 1 insertion(+)hw/block/m25p80.c +0
-0
hw/block/m25p80.c static const FlashPartInfo known_devices[] = { · line 343
Quoted 4 lines
hw/block/m25p80.c +1
-0@@ -340,6 +340,7 @@ static const FlashPartInfo known_devices[] = { { INFO("w25q80bl", 0xef4014, 0, 64 << 10, 16, ER_4K) }, { INFO("w25q256", 0xef4019, 0, 64 << 10, 512, ER_4K) }, { INFO("w25q512jv", 0xef4020, 0, 64 << 10, 1024, ER_4K) }, + { INFO("w25q01jvq", 0xef4021, 0, 64 << 10, 2048, ER_4K) },
Quoted 7 lines
hw/block/m25p80.c +0
-0}; typedef enum {Signature · 1 line
2.34.1
Quoted 10 lines · Patrick Williams
The w25q01jvq is a 128MB part. Support is being added to the kernel[1] and the two have been tested together.
1. https://lore.kernel.org/lkml/[email protected]/
Signed-off-by Patrick Williams <[email protected]>Cc Potin Lai <[email protected]>--- hw/block/m25p80.c | 1 + 1 file changed, 1 insertion(+)
If that's ok with the maintainers, I am going to take this patch through the aspeed machine queue since the new 'bletchley-bmc' machine depends on it :
http://patchwork.ozlabs.org/project/qemu-devel/patch/[email protected]/
I should send the PR today.
Thanks,
C.
Quoted 12 lines
hw/block/m25p80.c +1
-0@@ -340,6 +340,7 @@ static const FlashPartInfo known_devices[] = { { INFO("w25q80bl", 0xef4014, 0, 64 << 10, 16, ER_4K) }, { INFO("w25q256", 0xef4019, 0, 64 << 10, 512, ER_4K) }, { INFO("w25q512jv", 0xef4020, 0, 64 << 10, 1024, ER_4K) }, + { INFO("w25q01jvq", 0xef4021, 0, 64 << 10, 2048, ER_4K) }, }; typedef enum {