475-mtd-spi-nor-Add-Winbond-w25q128jv-support.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From: Robert Marko <robimarko@gmail.com>
  2. To: linux-mtd@lists.infradead.org
  3. Subject: mtd: spi-nor: Add Winbond w25q128jv support
  4. Date: Mon, 25 Jun 2018 13:17:48 +0200
  5. Datasheet:
  6. http://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf
  7. Testing done on Mikrotik Routerboard wAP R board.
  8. It does not support Dual or Quad modes.
  9. Signed-off-by: Robert Marko <robimarko@gmail.com>
  10. ---
  11. Changes in v2:
  12. - Correct the title
  13. ---
  14. drivers/mtd/spi-nor/spi-nor.c | 5 +++++
  15. 1 file changed, 5 insertions(+)
  16. --- a/drivers/mtd/spi-nor/spi-nor.c
  17. +++ b/drivers/mtd/spi-nor/spi-nor.c
  18. @@ -1146,6 +1146,11 @@ static const struct flash_info spi_nor_i
  19. SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
  20. SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
  21. },
  22. + {
  23. + "w25q128jv", INFO(0xef7018, 0, 64 * 1024, 256,
  24. + SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
  25. + SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB)
  26. + },
  27. { "w25q80", INFO(0xef5014, 0, 64 * 1024, 16, SECT_4K) },
  28. { "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16, SECT_4K) },
  29. { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256, SECT_4K) },