Attention is currently required from: Simon Buhrow, Aarya.
Aarya uploaded patch set #76 to this change.
flashrom.c:Add function to get a flattened view of the chip erase blocks
Add a function to flatten out the addresses of the flash chip as per the
different erase functions. This function will return a list of layouts
which is dynamically allocated. So after use all the layouts as well as
the list itself should be freed. The free_erase_layout function does
that.
Change-Id: Iafe78de00daa55f7114bd4ce09465dd88074ece4
Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com>
flashrom.c:Add function to align region to sector boundaries
Add a function to align start and end address of the region (in struct
walk_info) to some erase sector boundaries and modify the region start
and end addresses to match nearest erase sector boundaries. This
function will be used in the new algorithm for erase function selection.
Change-Id: I215ea4986aa23360fc65ff761f4e49c6069160ac
Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com>
flashrom.c:Add a function to get list of sectors that need erasing
Add a function that returns a list of sectors (as seen by the first
erase function) that need erasing.
Change-Id: Ic57ca1cca3d1646543f6b5939ba9c35db8d08256
Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com>
---
A erasure_layout.c
A erasure_layout.h
2 files changed, 298 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/44/65844/76
To view, visit change 65844. To unsubscribe, or for help writing mail filters, visit settings.