CHROMIUM: flashchips.c: Fake flash part size as 32MB for Felino proto 0

Felino Proto 0 has 64MB flash part but the size of image file is 32MB.
Flashrom tool fails to program an image on size mismatch.
Increasing the size of image file will increase the time to program
the flash part which involves the steps like read/write/verify so
this patch tries fake the flash part size as 32MB.

This is a temporary change for Felino Proto 0 and shall be reverted for
Proto 1/EVT which will have 32MB flash part.

BUG=b:409472563,b:412502949
TEST=Verified similar changes on previous generation board.

Change-Id: I5947031a0230e31a20b63ebcad9c5753fadfd5e4
Signed-off-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/6474988
Tested-by: Subrata Banik <subratabanik@chromium.org>
Reviewed-by: Subrata Banik <subratabanik@chromium.org>
Reviewed-by: Hsuan Ting Chen <roccochen@chromium.org>
Commit-Queue: Kapil Porwal <kapilporwal@chromium.org>
2 files changed
tree: 1181ee9552bc6988f5b8cb499a9bd31405897215
  1. .github/
  2. bindings/
  3. doc/
  4. flashchips/
  5. include/
  6. meson_cross/
  7. platform/
  8. scripts/
  9. subprojects/
  10. tests/
  11. util/
  12. .gitattributes
  13. .gitignore
  14. 82802ab.c
  15. action_descriptor.c
  16. action_descriptor.h
  17. amd_imc.c
  18. asm106x.c
  19. at45db.c
  20. atahpt.c
  21. atapromise.c
  22. atavia.c
  23. big_lock.c
  24. big_lock.h
  25. bitbang_spi.c
  26. board_enable.c
  27. buspirate_spi.c
  28. cbtable.c
  29. ch341a_spi.c
  30. ch347_spi.c
  31. chipset_enable.c
  32. cli_classic.c
  33. cli_common.c
  34. cli_getopt.c
  35. cli_output.c
  36. COPYING
  37. cros_ec.c
  38. cros_ec_commands.h
  39. custom_baud.c
  40. custom_baud_darwin.c
  41. custom_baud_linux.c
  42. dediprog.c
  43. developerbox_spi.c
  44. digilent_spi.c
  45. DIR_METADATA
  46. dirtyjtag_spi.c
  47. dmi.c
  48. Doxyfile
  49. drkaiser.c
  50. dummyflasher.c
  51. edi.c
  52. en29lv640b.c
  53. erasure_layout.c
  54. file_lock.c
  55. flashchips.c
  56. flashchips_crosbl.c
  57. flashrom.c
  58. fmap.c
  59. ft2232_spi.c
  60. gfxnvidia.c
  61. helpers.c
  62. helpers_fileio.c
  63. hwaccess_physmap.c
  64. hwaccess_x86_io.c
  65. hwaccess_x86_msr.c
  66. i2c_helper_linux.c
  67. ich_descriptors.c
  68. ichspi.c
  69. internal.c
  70. internal_par.c
  71. ipc_lock.h
  72. it8212.c
  73. it87spi.c
  74. jedec.c
  75. jlink_spi.c
  76. known_boards.c
  77. layout.c
  78. libflashrom.c
  79. libflashrom.map
  80. linux_mtd.c
  81. linux_spi.c
  82. MAINTAINERS
  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. printlock.c
  109. processor_enable.c
  110. programmer.c
  111. programmer_table.c
  112. raiden_debug_spi.c
  113. rayer_spi.c
  114. README.chromiumos
  115. README.rst
  116. realtek_mst_i2c_spi.c
  117. s25f.c
  118. satamv.c
  119. satasii.c
  120. sb600spi.c
  121. serial.c
  122. serprog.c
  123. sfdp.c
  124. spi.c
  125. spi25.c
  126. spi25_statusreg.c
  127. spi95.c
  128. sst28sf040.c
  129. sst49lfxxxc.c
  130. sst_fwhub.c
  131. stlinkv3_spi.c
  132. stm50.c
  133. superio.c
  134. test_build.sh
  135. udelay.c
  136. udelay_dos.c
  137. unblocked_terms.txt
  138. usb_device.c
  139. usbblaster_spi.c
  140. usbdev.c
  141. VERSION
  142. w29ee011.c
  143. w39.c
  144. wbsio_spi.c
  145. writeprotect.c
  146. writeprotect_ranges.c