0001-Purge-redundant-Macronix-chips.patch 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. From 4a262ea16a10a6067d48d70a2195151dea9292c6 Mon Sep 17 00:00:00 2001
  2. From: Andrew Robbins <contact@andrewrobbins.info>
  3. Date: Fri, 2 Mar 2018 00:13:16 -0500
  4. Subject: [PATCH] Purge redundant Macronix chips
  5. Removing the redundant Macronix chips avoids the situation where X60
  6. owners have to specify their particular chip on the command line with
  7. flashrom's '--chip' flag.
  8. ---
  9. flashchips.c | 16 ++++++++--------
  10. 1 file changed, 8 insertions(+), 8 deletions(-)
  11. diff --git a/flashchips.c b/flashchips.c
  12. index 1ab4986..7f85415 100644
  13. --- a/flashchips.c
  14. +++ b/flashchips.c
  15. @@ -7595,7 +7595,7 @@ const struct flashchip flashchips[] = {
  16. .name = "MX25L1605A/MX25L1606E/MX25L1608E",
  17. .bustype = BUS_SPI,
  18. .manufacture_id = MACRONIX_ID,
  19. - .model_id = MACRONIX_MX25L1605,
  20. + .model_id = 0xDEAD,
  21. .total_size = 2048,
  22. .page_size = 256,
  23. /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
  24. @@ -7634,7 +7634,7 @@ const struct flashchip flashchips[] = {
  25. .name = "MX25L1605D/MX25L1608D/MX25L1673E",
  26. .bustype = BUS_SPI,
  27. .manufacture_id = MACRONIX_ID,
  28. - .model_id = MACRONIX_MX25L1605,
  29. + .model_id = 0xDEAD,
  30. .total_size = 2048,
  31. .page_size = 256,
  32. .feature_bits = FEATURE_WRSR_WREN,
  33. @@ -7776,7 +7776,7 @@ const struct flashchip flashchips[] = {
  34. .name = "MX25L3205D/MX25L3208D",
  35. .bustype = BUS_SPI,
  36. .manufacture_id = MACRONIX_ID,
  37. - .model_id = MACRONIX_MX25L3205,
  38. + .model_id = 0xDEAD,
  39. .total_size = 4096,
  40. .page_size = 256,
  41. /* OTP: 64B total; enter 0xB1, exit 0xC1 */
  42. @@ -7812,7 +7812,7 @@ const struct flashchip flashchips[] = {
  43. .name = "MX25L3206E/MX25L3208E",
  44. .bustype = BUS_SPI,
  45. .manufacture_id = MACRONIX_ID,
  46. - .model_id = MACRONIX_MX25L3205,
  47. + .model_id = 0xDEAD,
  48. .total_size = 4096,
  49. .page_size = 256,
  50. /* OTP: 64B total; enter 0xB1, exit 0xC1 */
  51. @@ -7851,7 +7851,7 @@ const struct flashchip flashchips[] = {
  52. .name = "MX25L3273E",
  53. .bustype = BUS_SPI,
  54. .manufacture_id = MACRONIX_ID,
  55. - .model_id = MACRONIX_MX25L3205,
  56. + .model_id = 0xDEAD,
  57. .total_size = 4096,
  58. .page_size = 256,
  59. /* OTP: 64B total; enter 0xB1, exit 0xC1 */
  60. @@ -7962,7 +7962,7 @@ const struct flashchip flashchips[] = {
  61. .name = "MX25L6405D",
  62. .bustype = BUS_SPI,
  63. .manufacture_id = MACRONIX_ID,
  64. - .model_id = MACRONIX_MX25L6405,
  65. + .model_id = 0xDEAD,
  66. .total_size = 8192,
  67. .page_size = 256,
  68. /* OTP: 64B total; enter 0xB1, exit 0xC1 */
  69. @@ -7998,7 +7998,7 @@ const struct flashchip flashchips[] = {
  70. .name = "MX25L6406E/MX25L6408E",
  71. .bustype = BUS_SPI,
  72. .manufacture_id = MACRONIX_ID,
  73. - .model_id = MACRONIX_MX25L6405,
  74. + .model_id = 0xDEAD,
  75. .total_size = 8192,
  76. .page_size = 256,
  77. /* MX25L6406E supports SFDP */
  78. @@ -8038,7 +8038,7 @@ const struct flashchip flashchips[] = {
  79. .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
  80. .bustype = BUS_SPI,
  81. .manufacture_id = MACRONIX_ID,
  82. - .model_id = MACRONIX_MX25L6405,
  83. + .model_id = 0xDEAD,
  84. .total_size = 8192,
  85. .page_size = 256,
  86. /* supports SFDP */
  87. --
  88. 1.9.1