063-v4.11-0001-mtd-nand-Add-Winbond-manufacturer-id.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From a4077ce5871304f8a78f80b74b18b6052a410f1a Mon Sep 17 00:00:00 2001
  2. From: "Andrey Jr. Melnikov" <temnota.am@gmail.com>
  3. Date: Thu, 8 Dec 2016 19:57:08 +0300
  4. Subject: [PATCH] mtd: nand: Add Winbond manufacturer id
  5. Add WINBOND manufacturer id.
  6. Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com>
  7. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
  8. ---
  9. drivers/mtd/nand/nand_ids.c | 1 +
  10. include/linux/mtd/nand.h | 1 +
  11. 2 files changed, 2 insertions(+)
  12. --- a/drivers/mtd/nand/nand_ids.c
  13. +++ b/drivers/mtd/nand/nand_ids.c
  14. @@ -182,6 +182,7 @@ struct nand_manufacturers nand_manuf_ids
  15. {NAND_MFR_SANDISK, "SanDisk"},
  16. {NAND_MFR_INTEL, "Intel"},
  17. {NAND_MFR_ATO, "ATO"},
  18. + {NAND_MFR_WINBOND, "Winbond"},
  19. {0x0, "Unknown"}
  20. };
  21. --- a/include/linux/mtd/nand.h
  22. +++ b/include/linux/mtd/nand.h
  23. @@ -928,6 +928,7 @@ static inline void nand_set_controller_d
  24. #define NAND_MFR_SANDISK 0x45
  25. #define NAND_MFR_INTEL 0x89
  26. #define NAND_MFR_ATO 0x9b
  27. +#define NAND_MFR_WINBOND 0xef
  28. /* The maximum expected count of bytes in the NAND ID sequence */
  29. #define NAND_MAX_ID_LEN 8