Attention is currently required from: Simon Buhrow, Thomas Heijligen, Aarya.

Aarya uploaded patch set #6 to this change.

View Change

spi.c: Add erasefn and opcodes for AT45 and S25F to lookup list

Add opcode and erasefn for AT45 and S25F to the
spi_get_[opcode/erasefn]_from[erasefn/opcode] lookup list. Also
AT45CS1282 uses multiple opcodes in it's erasefn so modifying
aforementioned functions and the lookup list to use a list of opcodes
rather than a single opcode.

The lookup list and the passed lookup list must have opcodes in sorted
order and must be 0x00 terminated. Also the macro MAX_OPCODE must have
be one more than the maximum opcodes used by any erasefn.

Change-Id: Ief25932120f940dea0ffe161a79219deecb2e8ab
Signed-off-by: Aarya Chaumal <aarya.chaumal@gmail.com>
---
M flashrom.c
M include/chipdrivers.h
M sfdp.c
M spi.c
4 files changed, 80 insertions(+), 32 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/54/67354/6

To view, visit change 67354. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ief25932120f940dea0ffe161a79219deecb2e8ab
Gerrit-Change-Number: 67354
Gerrit-PatchSet: 6
Gerrit-Owner: Aarya <aarya.chaumal@gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: Simon Buhrow
Gerrit-Reviewer: Thomas Heijligen <src@posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Attention: Simon Buhrow
Gerrit-Attention: Thomas Heijligen <src@posteo.de>
Gerrit-Attention: Aarya <aarya.chaumal@gmail.com>
Gerrit-MessageType: newpatchset