Skip to content

Instantly share code, notes, and snippets.

@godmar
Created July 8, 2024 05:09
Show Gist options
  • Save godmar/7a8e23748ea4825700c5554a701704fe to your computer and use it in GitHub Desktop.
Save godmar/7a8e23748ea4825700c5554a701704fe to your computer and use it in GitHub Desktop.
Support for Winbond W25Q64-Quad
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