summaryrefslogtreecommitdiffstats
path: root/chipset_enable.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-11-03 00:02:11 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-11-03 00:02:11 +0000
commit6afb613fefbd4b484babafa9680b9570aadb255d (patch)
tree582cf605e44d2d9c92de406d11cf850dd83b9fff /chipset_enable.c
parent4311956a807be357848216d5fdf665053b7ca524 (diff)
downloadast2050-flashrom-6afb613fefbd4b484babafa9680b9570aadb255d.zip
ast2050-flashrom-6afb613fefbd4b484babafa9680b9570aadb255d.tar.gz
Add additional SPI sector erase and chip erase command functions
Not all chips support all commands, so allow the implementer to select the matching function. Fix a layering violation in ICH SPI code to be less bad. Still not perfect, but the new code is shorter, more generic and architecturally more sound. TODO (in a separate patch): - move the generic sector erase code to spi.c - decide which erase command to use based on info about the chip - create a generic spi_erase_all_sectors function which calls the generic sector erase function Thanks to Stefan for reviewing and commenting. Corresponding to flashrom svn r337 and coreboot v2 svn r3722. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'chipset_enable.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud