summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-05-10 14:11:07 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-05-10 14:11:07 +0000
commitdbfa02911fe6f32503a574f84d1627a370cb7fc2 (patch)
tree958a65106a48d144142d76e79e991fa872898320 /flashrom.c
parentadd6d9b5a691ac2e0c09fcb28fce57f936358db7 (diff)
downloadast2050-flashrom-dbfa02911fe6f32503a574f84d1627a370cb7fc2.zip
ast2050-flashrom-dbfa02911fe6f32503a574f84d1627a370cb7fc2.tar.gz
Create a SB600 SPI detection heuristic
I know that the data sheets say we can't read the ROM straps, but creative interpretation of the data sheets yielded a heuristic which should work pretty well. NOTE: If you test this, make sure you power down and _unplug_ the machine for a few minutes before you boot and run flashrom with this patch. If the machine is not unplugged for some time, the test will yield incorrect results. If you run a slightly older flashrom version than svn HEAD, the test will yield incorrect results. If you run any flashrom version (except svn HEAD plus this patch) after poweron, the test will yield incorrect results. Explanation: Older flashrom versions unconditionally write to registers which are used for this heuristic. These registers are in the S5 power domain, so even powering down does not clear them, you really have to unplug the machine and remove the battery if this is a laptop. Corresponding to flashrom svn r491. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'flashrom.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud