From f9de9ae1097cb456f51d9f7d142c9519207a14de Mon Sep 17 00:00:00 2001 From: Milan Krstic Date: Sat, 18 Nov 2017 01:13:48 +0100 Subject: [PATCH] add support for Winbond W25Q16 --- src/main/drivers/flash_m25p16.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/drivers/flash_m25p16.c b/src/main/drivers/flash_m25p16.c index 5a1b3578a..e75b97b93 100644 --- a/src/main/drivers/flash_m25p16.c +++ b/src/main/drivers/flash_m25p16.c @@ -48,6 +48,7 @@ #define JEDEC_ID_MICRON_M25P16 0x202015 #define JEDEC_ID_MICRON_N25Q064 0x20BA17 #define JEDEC_ID_MICRON_N25Q128 0x20ba18 +#define JEDEC_ID_WINBOND_W25Q16 0xEF4015 #define JEDEC_ID_WINBOND_W25Q64 0xEF4017 #define JEDEC_ID_WINBOND_W25Q128 0xEF4018 #define JEDEC_ID_WINBOND_W25Q256 0xEF4019 @@ -162,6 +163,7 @@ static bool m25p16_readIdentification(void) // All supported chips use the same pagesize of 256 bytes switch (chipID) { + case JEDEC_ID_WINBOND_W25Q16: case JEDEC_ID_MICRON_M25P16: geometry.sectors = 32; geometry.pagesPerSector = 256;