]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sf: winbond: add support W25Q64 parts
authorGraeme Smecher <graeme.smecher@mail.mcgill.ca>
Thu, 29 Jul 2010 13:00:02 +0000 (09:00 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 6 Oct 2010 07:34:10 +0000 (03:34 -0400)
Adds support for Winbond's W25Q64 SPI flash. These devices are used on
(among others) Xilinx' SP601 and SP605 Spartan-6 evaluation boards.
Tested with "sf" commands.

Signed-off-by: Graeme Smecher <graeme.smecher@mail.mcgill.ca>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/mtd/spi/winbond.c

index ff1df25a1dfd47e9e635008ae2394b290348ac25..de3aeb810a6a2b244308399c78ea44f9c6dea6b5 100644 (file)
@@ -27,6 +27,7 @@
 #define WINBOND_ID_W25X16              0x3015
 #define WINBOND_ID_W25X32              0x3016
 #define WINBOND_ID_W25X64              0x3017
+#define WINBOND_ID_W25Q64              0x4017
 
 #define WINBOND_SR_WIP         (1 << 0)        /* Write-in-Progress */
 
@@ -77,6 +78,14 @@ static const struct winbond_spi_flash_params winbond_spi_flash_table[] = {
                .nr_blocks              = 128,
                .name                   = "W25X64",
        },
+       {
+               .id                     = WINBOND_ID_W25Q64,
+               .l2_page_size           = 8,
+               .pages_per_sector       = 16,
+               .sectors_per_block      = 16,
+               .nr_blocks              = 128,
+               .name                   = "W25Q64",
+       },
 };
 
 static int winbond_wait_ready(struct spi_flash *flash, unsigned long timeout)