0001-Lenovobios-adaptation-for-Macronix-and-SST-chips.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. From aa2dd05f61f6ca91212d7f6d4055486af6e01436 Mon Sep 17 00:00:00 2001
  2. From: Leah Rowe <info@minifree.org>
  3. Date: Fri, 5 Aug 2016 22:40:49 +0200
  4. Subject: [PATCH] Lenovobios adaptation for Macronix and SST chips
  5. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
  6. ---
  7. flashchips.c | 12 ++++++------
  8. 1 file changed, 6 insertions(+), 6 deletions(-)
  9. diff --git a/flashchips.c b/flashchips.c
  10. index e5ea181..f3a017c 100644
  11. --- a/flashchips.c
  12. +++ b/flashchips.c
  13. @@ -7454,12 +7454,12 @@ const struct flashchip flashchips[] = {
  14. .name = "MX25L1605D/MX25L1608D/MX25L1673E",
  15. .bustype = BUS_SPI,
  16. .manufacture_id = MACRONIX_ID,
  17. - .model_id = MACRONIX_MX25L1605,
  18. + .model_id = 0x14,
  19. .total_size = 2048,
  20. .page_size = 256,
  21. .feature_bits = FEATURE_WRSR_WREN,
  22. .tested = TEST_OK_PREW,
  23. - .probe = probe_spi_rdid,
  24. + .probe = probe_spi_res1,
  25. .probe_timing = TIMING_ZERO,
  26. .block_erasers =
  27. {
  28. @@ -9857,7 +9857,7 @@ const struct flashchip flashchips[] = {
  29. },
  30. .printlock = spi_prettyprint_status_register_bp2_srwd,
  31. .unlock = spi_disable_blockprotect,
  32. - .write = spi_chip_write_256,
  33. + .write = spi_chip_write_1,
  34. .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
  35. .voltage = {2700, 3600},
  36. },
  37. @@ -12150,12 +12150,12 @@ const struct flashchip flashchips[] = {
  38. .name = "SST25VF016B",
  39. .bustype = BUS_SPI,
  40. .manufacture_id = SST_ID,
  41. - .model_id = SST_SST25VF016B,
  42. + .model_id = 0x41,
  43. .total_size = 2048,
  44. .page_size = 256,
  45. .feature_bits = FEATURE_WRSR_EITHER,
  46. .tested = TEST_OK_PREW,
  47. - .probe = probe_spi_rdid,
  48. + .probe = probe_spi_res2,
  49. .probe_timing = TIMING_ZERO,
  50. .block_erasers =
  51. {
  52. @@ -12178,7 +12178,7 @@ const struct flashchip flashchips[] = {
  53. },
  54. .printlock = spi_prettyprint_status_register_sst25vf016,
  55. .unlock = spi_disable_blockprotect,
  56. - .write = spi_aai_write,
  57. + .write = spi_chip_write_1,
  58. .read = spi_chip_read,
  59. .voltage = {2700, 3600},
  60. },
  61. --
  62. 2.9.0