ichspi.c: Drop opaque_disable_blockprotect hack

This was previously required to deal with flashrom's lack of
writeprotect support in order to unlock the status register
bit for W&E ops. By leveraging proper writeprotect support
to unlock the status register in a spi flash chip correct
fashion we can dispense with this hack.

PENDING merge of upstream:
 https://review.coreboot.org/c/flashrom/+/70349/
 https://review.coreboot.org/c/flashrom/+/69517/

BUG=b:237485865,b:247421511,b:236660711
BRANCH=none
TEST=builds

Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Change-Id: I70cd44252ef0a2fba3045b832302f360c63d11dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/4121924
Tested-by: Nikolai Artemiev <nartemiev@google.com>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Commit-Queue: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
4 files changed
tree: 0f49726eb0de46a4c2b7e663cb30f2e2aa3ac080
  1. .github/
  2. bindings/
  3. Documentation/
  4. include/
  5. Makefile.d/
  6. platform/
  7. scripts/
  8. subprojects/
  9. tests/
  10. util/
  11. .gitattributes
  12. .gitignore
  13. 82802ab.c
  14. action_descriptor.c
  15. action_descriptor.h
  16. amd_imc.c
  17. at45db.c
  18. atahpt.c
  19. atapromise.c
  20. atavia.c
  21. big_lock.c
  22. big_lock.h
  23. bitbang_spi.c
  24. board_enable.c
  25. buspirate_spi.c
  26. cbtable.c
  27. ch341a_spi.c
  28. chipset_enable.c
  29. cli_classic.c
  30. cli_common.c
  31. cli_output.c
  32. COPYING
  33. cros_alias.c
  34. cros_ec.c
  35. cros_ec.h
  36. cros_ec_commands.h
  37. cros_ec_dev.c
  38. cros_ec_wp.c
  39. custom_baud.c
  40. custom_baud_linux.c
  41. dediprog.c
  42. developerbox_spi.c
  43. digilent_spi.c
  44. DIR_METADATA
  45. dirtyjtag_spi.c
  46. dmi.c
  47. Doxyfile
  48. drkaiser.c
  49. dummyflasher.c
  50. edi.c
  51. en29lv640b.c
  52. file_lock.c
  53. flashchips.c
  54. flashchips_crosbl.c
  55. flashrom.8.tmpl
  56. flashrom.c
  57. fmap.c
  58. ft2232_spi.c
  59. gfxnvidia.c
  60. helpers.c
  61. helpers_fileio.c
  62. hwaccess_physmap.c
  63. hwaccess_x86_io.c
  64. hwaccess_x86_msr.c
  65. i2c_helper_linux.c
  66. ich_descriptors.c
  67. ichspi.c
  68. internal.c
  69. ipc_lock.h
  70. it8212.c
  71. it87spi.c
  72. jedec.c
  73. jlink_spi.c
  74. known_boards.c
  75. layout.c
  76. libflashrom.c
  77. libflashrom.map
  78. linux_mtd.c
  79. linux_spi.c
  80. MAINTAINERS
  81. Makefile
  82. Makefile.include
  83. mcp6x_spi.c
  84. mediatek_i2c_spi.c
  85. meson.build
  86. meson_options.txt
  87. mstarddc_spi.c
  88. ni845x_spi.c
  89. nic3com.c
  90. nicintel.c
  91. nicintel_eeprom.c
  92. nicintel_spi.c
  93. nicnatsemi.c
  94. nicrealtek.c
  95. ogp_spi.c
  96. opaque.c
  97. OWNERS
  98. parade_lspcon.c
  99. parallel.c
  100. pcidev.c
  101. pickit2_spi.c
  102. pony_spi.c
  103. power.c
  104. power.h
  105. PRESUBMIT.cfg
  106. print.c
  107. print_wiki.c
  108. processor_enable.c
  109. programmer.c
  110. programmer_table.c
  111. raiden_debug_spi.c
  112. rayer_spi.c
  113. README
  114. README.chromiumos
  115. realtek_mst_i2c_spi.c
  116. s25f.c
  117. satamv.c
  118. satasii.c
  119. sb600spi.c
  120. serial.c
  121. serprog.c
  122. sfdp.c
  123. spi.c
  124. spi25.c
  125. spi25_statusreg.c
  126. spi95.c
  127. sst28sf040.c
  128. sst49lfxxxc.c
  129. sst_fwhub.c
  130. stlinkv3_spi.c
  131. stm50.c
  132. udelay.c
  133. unblocked_terms.txt
  134. usb_device.c
  135. usbblaster_spi.c
  136. usbdev.c
  137. w29ee011.c
  138. w39.c
  139. wbsio_spi.c
  140. writeprotect.c
  141. writeprotect_ranges.c