Created
July 8, 2024 05:09
-
-
Save godmar/7a8e23748ea4825700c5554a701704fe to your computer and use it in GitHub Desktop.
Support for Winbond W25Q64-Quad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/mips/xburst/soc-t23/chip-t23/isvp/common/spi_bus.c b/arch/mips/xburst/soc-t23/chip-t23/isvp/common/spi_bus.c | |
index cd06b8ac7..cc30f332a 100644 | |
--- a/arch/mips/xburst/soc-t23/chip-t23/isvp/common/spi_bus.c | |
+++ b/arch/mips/xburst/soc-t23/chip-t23/isvp/common/spi_bus.c | |
@@ -384,6 +384,27 @@ struct spi_nor_platform_data spi_nor_pdata[] = { | |
#ifdef CONFIG_SPI_QUAD | |
.quad_mode = &flash_quad_mode[0], | |
#endif | |
+ }, | |
+ { | |
+ .name = "W25Q64-QPI", | |
+ .pagesize = 256, | |
+ .sectorsize = 4 * 1024, | |
+ .chipsize = 8192 * 1024, | |
+ .erasesize = 32 * 1024, | |
+ .id = 0xef6017, | |
+ | |
+ .block_info = flash_block_info, | |
+ .num_block_info = ARRAY_SIZE(flash_block_info), | |
+ | |
+ .addrsize = 3, | |
+ .pp_maxbusy = 3, /* 3ms */ | |
+ .se_maxbusy = 400, /* 400ms */ | |
+ .ce_maxbusy = 8 * 10000, /* 80s */ | |
+ | |
+ .st_regnum = 3, | |
+#ifdef CONFIG_SPI_QUAD | |
+ .quad_mode = &flash_quad_mode[0], | |
+#endif | |
}, | |
{ | |
.name = "XM25QH128A", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment