0012-mtd-spi-nor-mx25l3205d-mx25l6405d-append-SECT_4K.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. From 655585649ba3f4675b4386afc1feb22c6a880eb8 Mon Sep 17 00:00:00 2001
  2. From: Andreas Fenkart <afenkart@gmail.com>
  3. Date: Thu, 5 Nov 2015 10:04:23 +0100
  4. Subject: [PATCH 12/33] mtd: spi-nor: mx25l3205d/mx25l6405d: append SECT_4K
  5. according datasheet both chips can erase 4kByte sectors individually
  6. Signed-off-by: Andreas Fenkart <andreas.fenkart@dev.digitalstrom.org>
  7. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  8. ---
  9. drivers/mtd/spi-nor/spi-nor.c | 4 ++--
  10. 1 file changed, 2 insertions(+), 2 deletions(-)
  11. diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
  12. index 0d2be38..c5bc927 100644
  13. --- a/drivers/mtd/spi-nor/spi-nor.c
  14. +++ b/drivers/mtd/spi-nor/spi-nor.c
  15. @@ -738,9 +738,9 @@ static const struct flash_info spi_nor_ids[] = {
  16. { "mx25l4005a", INFO(0xc22013, 0, 64 * 1024, 8, SECT_4K) },
  17. { "mx25l8005", INFO(0xc22014, 0, 64 * 1024, 16, 0) },
  18. { "mx25l1606e", INFO(0xc22015, 0, 64 * 1024, 32, SECT_4K) },
  19. - { "mx25l3205d", INFO(0xc22016, 0, 64 * 1024, 64, 0) },
  20. + { "mx25l3205d", INFO(0xc22016, 0, 64 * 1024, 64, SECT_4K) },
  21. { "mx25l3255e", INFO(0xc29e16, 0, 64 * 1024, 64, SECT_4K) },
  22. - { "mx25l6405d", INFO(0xc22017, 0, 64 * 1024, 128, 0) },
  23. + { "mx25l6405d", INFO(0xc22017, 0, 64 * 1024, 128, SECT_4K) },
  24. { "mx25u6435f", INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
  25. { "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
  26. { "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
  27. --
  28. 2.8.1