summaryrefslogtreecommitdiffstats
path: root/at25.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-08-26 02:35:13 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2012-08-26 02:35:13 +0000
commit62218c39de75bb19adaad16b843757adbe272aad (patch)
tree1b16694c99e340f36cf93faf3709ebd08d915d39 /at25.c
parent3dcdc03a72b839d7746edabcb4b679f559b47683 (diff)
downloadast2050-flashrom-62218c39de75bb19adaad16b843757adbe272aad.zip
ast2050-flashrom-62218c39de75bb19adaad16b843757adbe272aad.tar.gz
Clean up enable_flash_ich and attempt to disable SMM write protection
This is based on chromiumos commit a5f4e82c59d6bcaf06b94623e5516d1db8cb843a. http://git.chromium.org/gitweb/?p=chromiumos/third_party/flashrom.git;a=commit;h=a5f4e82c59d6bcaf06b94623e5516d1db8cb843a See also http://www.flashrom.org/pipermail/flashrom/2011-November/008191.html Besides disabling the SMM protection this also fixes something that bothered me for a long time: the content of BIOS_CNTL was shown before we try to modify it. This is usually not what interests us and contradicts other outputs. With this patch we try to set the write enable and disable the SMM protection first and show the state of BIOS_CNTL afterwards. We now return an error only if the write enable is not set (which should be equivalent to the previous behavior on sane hardware, but it seems to be 'more correct' and makes the code clearer to do this explicitly). Corresponding to flashrom svn r1582. Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'at25.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud