mainboards: align on using ACPI_Sx definitions
commit30b0c7adf0a5d77a8e902dbbf0ee68954bf28385
authorAaron Durbin <adurbin@chromium.org>
Wed, 13 Jul 2016 18:01:13 +0000 (13 13:01 -0500)
committerAaron Durbin <adurbin@chromium.org>
Fri, 15 Jul 2016 06:30:31 +0000 (15 08:30 +0200)
treecd13a5a401a9a4698aa3e7601f1fd91567a0269a
parent95c4344a2092bd9fd5eca74d23d0c270628f66d2
mainboards: align on using ACPI_Sx definitions

The mainboard_smi_sleep() function takes ACPI sleep values
of the form S3=3, S4=4, S5=5, etc. All the chipsets ensure
that whatever hardware PM1 control register values are used
the interface to the mainboard is the same. Move all the
SMI handlers in the mainboard directory to not open code
the literal values 3 and 5 for ACPI_S3 and ACPI_S5.

There were a few notable exceptions where the code was
attempting to use the hardware values and not the common
translated values. The few users of SLEEP_STATE_X were
updated to align with ACPI_SX as those defines are
already equal. The removal of SLEEP_STATE_X defines is
forthcoming in a subsequent patch.

BUG=chrome-os-partner:54977

Change-Id: I76592c9107778cce5995e5af764760453f54dc50
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/15664
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
29 files changed:
src/mainboard/google/auron/smihandler.c
src/mainboard/google/auron_paine/smihandler.c
src/mainboard/google/bolt/smihandler.c
src/mainboard/google/chell/romstage.c
src/mainboard/google/chell/smihandler.c
src/mainboard/google/cyan/smihandler.c
src/mainboard/google/falco/smihandler.c
src/mainboard/google/glados/smihandler.c
src/mainboard/google/guado/smihandler.c
src/mainboard/google/jecht/smihandler.c
src/mainboard/google/lars/smihandler.c
src/mainboard/google/link/mainboard_smi.c
src/mainboard/google/ninja/mainboard_smi.c
src/mainboard/google/peppy/smihandler.c
src/mainboard/google/rambi/mainboard_smi.c
src/mainboard/google/reef/smihandler.c
src/mainboard/google/rikku/smihandler.c
src/mainboard/google/samus/romstage.c
src/mainboard/google/samus/smihandler.c
src/mainboard/google/slippy/smihandler.c
src/mainboard/google/tidus/smihandler.c
src/mainboard/intel/amenia/smihandler.c
src/mainboard/intel/baskingridge/mainboard_smi.c
src/mainboard/intel/cougar_canyon2/mainboard_smi.c
src/mainboard/intel/emeraldlake2/smihandler.c
src/mainboard/intel/kunimitsu/smihandler.c
src/mainboard/intel/stargo2/mainboard_smi.c
src/mainboard/intel/strago/smihandler.c
src/mainboard/samsung/stumpy/smihandler.c