diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2017-09-27 13:32:38 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-10-02 22:30:02 +0000 |
commit | 66e62da4c7830598c52cd0291bc8d10f4d0ff9c4 (patch) | |
tree | 778c44de3339f837d17110fe1de1620eea1f071b /src/soc/amd/stoneyridge/include | |
parent | eecb794c96f738d20bf4d5890bbad8b3834c9685 (diff) | |
download | coreboot-66e62da4c7830598c52cd0291bc8d10f4d0ff9c4.tar.xz |
amd/stoneyridge: Check SMI command address before reading
Use the currently programmed address of the SMI command port before
checking the passed command. This ensures we're reading the right
port in case the port was relocated without our knowledge.
Change-Id: I8a3ca285d3a9afd4a107cd471c202abf03f372ac
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/21744
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/amd/stoneyridge/include')
-rw-r--r-- | src/soc/amd/stoneyridge/include/soc/smi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/soc/amd/stoneyridge/include/soc/smi.h b/src/soc/amd/stoneyridge/include/soc/smi.h index 87d1a0a03a..5e6f6ff31e 100644 --- a/src/soc/amd/stoneyridge/include/soc/smi.h +++ b/src/soc/amd/stoneyridge/include/soc/smi.h @@ -194,6 +194,7 @@ enum smi_lvl { SMI_LVL_HIGH = 1, }; +uint16_t pm_acpi_smi_cmd_port(void); void configure_gevent_smi(uint8_t gevent, uint8_t mode, uint8_t level); void disable_gevent_smi(uint8_t gevent); void enable_acpi_cmd_smi(void); |