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

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