summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi
diff options
context:
space:
mode:
authorGraeme Smecher <graeme.smecher@mail.mcgill.ca>2010-07-29 09:00:02 -0400
committerMike Frysinger <vapier@gentoo.org>2010-10-06 03:34:10 -0400
commit74f9e0d8a0e1fa73af43e93b0b67985db973b1ed (patch)
tree457bf2c6d78f5d59fb9890b4153bb43f1d4002c8 /drivers/mtd/spi
parentd6288664743cdd4824cb877ca424619c827c1256 (diff)
downloadu-boot-imx-74f9e0d8a0e1fa73af43e93b0b67985db973b1ed.zip
u-boot-imx-74f9e0d8a0e1fa73af43e93b0b67985db973b1ed.tar.gz
u-boot-imx-74f9e0d8a0e1fa73af43e93b0b67985db973b1ed.tar.bz2
sf: winbond: add support W25Q64 parts
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>
Diffstat (limited to 'drivers/mtd/spi')
-rw-r--r--drivers/mtd/spi/winbond.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mtd/spi/winbond.c b/drivers/mtd/spi/winbond.c
index ff1df25..de3aeb8 100644
--- a/drivers/mtd/spi/winbond.c
+++ b/drivers/mtd/spi/winbond.c
@@ -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)