mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
Modified flash API batch write logic to respect row boundaries.
* Added MACRO for specifying row size of flash device. * Set chip/g specific values for flash row size. The flash API for g/chip will segment large write operations into a maximum of 32 word blocks for batch writes to flash memory. Prior to the change in this commit, the segmentation will adhere to avoiding crossing page boundaries (2048B) but will not respect row boundaries (256B). The flash controller will reject any write op that crosses a row boundary and set a row boundary violation code on its error register. BRANCH=none BUG=b:30819377 TEST=make BOARD=haven_dev Change-Id: I489122ec0f0db6374dd373a1385c3012bdface20 Reviewed-on: https://chromium-review.googlesource.com/371003 Commit-Ready: Bill Richardson <wfrichar@chromium.org> Commit-Ready: Johnnie Chan <johnniec@google.com> Tested-by: Johnnie Chan <johnniec@google.com> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
@@ -835,6 +835,7 @@
|
||||
#undef CONFIG_FLASH_BANK_SIZE
|
||||
#undef CONFIG_FLASH_ERASED_VALUE32
|
||||
#undef CONFIG_FLASH_ERASE_SIZE
|
||||
#undef CONFIG_FLASH_ROW_SIZE
|
||||
|
||||
/* Base address of program memory */
|
||||
#undef CONFIG_PROGRAM_MEMORY_BASE
|
||||
|
||||
Reference in New Issue
Block a user