coreboot/src/mainboard
Tobias Diedrich 4e22a3bc58 Add acpi_get_sleep_type() to i82371eb and P2B _PTS/_WAK methods
Build fix for src/arch/i386/boot/acpi.c if !CONFIG_SMP
Also check for acpi_slp_type 2 in acpi_is_wakeup, since S2
uses the same acpi wakeup vector as S3.
Add _PTS/_WAK methods to turn off/on the CPU/case fans and blink
the power LED while sleeping.
acpi_get_sleep_type() is in a seperate file i82371eb_wakeup.c because
it is used in both romstage and ramstage after patch 3/3, whereas
i82371eb_early_pm.c is used only in romstage.
I used the name acpi_get_sleep_type instead of  acpi_is_wakeup_early
because I think acpi_is_wakeup_early is a bit misleading as a name since it
doesn't return a boolean value.

Other chipsets so far only ever set acpi_slp_type to 0 and 3, so the
added check for acpi_slp_type == 2 (resume from S2) should not
change behaviour of other boards:
northbridge/intel/i945/northbridge.c:256:extern u8 acpi_slp_type;
northbridge/intel/i945/northbridge.c:263: acpi_slp_type=0;
northbridge/intel/i945/northbridge.c:267: acpi_slp_type=3;
northbridge/intel/i945/northbridge.c:271: acpi_slp_type=0;
southbridge/intel/i82801gx/i82801gx_lpc.c:171:extern u8 acpi_slp_type;
southbridge/via/vt8237r/vt8237r_lpc.c:149:extern u8 acpi_slp_type;
southbridge/via/vt8237r/vt8237r_lpc.c:238:  acpi_slp_type = ((tmp & (7 << 10)) >> 10) == 1 ? 3 : 0 ;
southbridge/via/vt8237r/vt8237r_lpc.c:239:  printk(BIOS_DEBUG, "SLP_TYP type was %x %x\n", tmp, acpi_slp_type);

Change-Id: I13feff0b8f49aa988e5467cdbef02981f0a6be8a
Signed-off-by: Tobias Diedrich <ranma+coreboot@tdiedrich.de>
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/188
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2011-09-12 15:56:12 +02:00
..
a-trend run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
aaeon Added support for Aaeon PFM-540I RevB PC104 SBC 2011-06-29 18:32:59 +02:00
abit run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
advansus AMD SB800 southbridge update 2011-09-07 01:10:05 +02:00
advantech run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
amd AMD F14 southbridge update 2011-09-07 01:08:57 +02:00
arima run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
artecgroup run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
asi run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
asrock AMD SB800 southbridge update 2011-09-07 01:10:05 +02:00
asus Add acpi_get_sleep_type() to i82371eb and P2B _PTS/_WAK methods 2011-09-12 15:56:12 +02:00
axus run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
azza run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
bcom run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
biostar run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
broadcom run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
compaq run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
dell run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
digitallogic run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
eaglelion run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
ecs run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
emulation Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
getac Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
gigabyte Disable dev3 on ma78gm-us2h 2011-09-04 12:22:00 +02:00
hp run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
ibase Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
ibm run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
iei Update AMD SR5650 and SB700 2011-07-22 00:20:59 +02:00
intel Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
iwave Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
iwill run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
jetway Update AMD SR5650 and SB700 2011-07-22 00:20:59 +02:00
kontron Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
lanner run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
lenovo X60/T60: remove obsolete dmi.h 2011-08-26 22:35:43 +02:00
lippert run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
mitac run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
msi ms7135: add ACPI support 2011-08-06 18:17:07 +02:00
nec run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
newisys run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
nokia run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
nvidia run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
pcengines run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
rca run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
roda Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
siemens siemens/sitemp_g1p1: Adapt read_option() to latest changes 2011-05-13 06:25:16 +00:00
soyo run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
sunw run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
supermicro Do not compile nuvoton superio for all board 2011-08-09 20:11:01 +02:00
technexion run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
technologic run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
televideo run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
thomson run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
traverse run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
tyan run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
via Add automatic SMBIOS table generation 2011-08-26 20:08:52 +02:00
winent run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
wyse run uart_init() from console_init, just like the other console initialization functions. 2011-04-20 20:54:07 +00:00
Kconfig Added support for Aaeon PFM-540I RevB PC104 SBC 2011-06-29 18:32:59 +02:00