Fix power_on_after_fail handling on AMD SB600

Bit 0 of pm reg#74 have to be set turn on system after power resumes.
See '42661_sb600_rrg_nda_3.02.pdf' (or '46155_sb600_rrg_pub_3.03.pdf')
for details, look for 'PwrFailShadow'.

[Patrick: I didn't include the get_options reorganization as get_option
doesn't overwrite "on" if power_on_after_fail isn't found in CMOS.
Style changes were also left out.]

Signed-off-by: Josef Kellermann <seppk@arcor.de>
Acked-by: Patrick Georgi <patrick.georgi@secunet.com>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6451 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Josef Kellermann 2011-03-17 12:34:15 +00:00 committed by Patrick Georgi
parent 3eb5e4e9a3
commit ea1c0a714d
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ static void sm_init(device_t dev)
byte = pm_ioread(0x74);
byte &= ~0x03;
if (on) {
byte |= 2;
byte |= 1 << 0;
}
byte |= 1 << 2;
pm_iowrite(0x74, byte);