Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/79766?usp=email )
Change subject: drivers/smmstore/ramstage: use pm_acpi_smi_cmd_port ......................................................................
drivers/smmstore/ramstage: use pm_acpi_smi_cmd_port
Use pm_acpi_smi_cmd_port() to get the APMC trigger IO port instead of using the hard-coded APM_CNT define.
Signed-off-by: Felix Held felix-coreboot@felixheld.de Change-Id: Ib14de0d120ae5c7db3bb7a529837ababe653e1a2 --- M src/drivers/smmstore/ramstage.c 1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/79766/1
diff --git a/src/drivers/smmstore/ramstage.c b/src/drivers/smmstore/ramstage.c index ef80e22..3804c0f 100644 --- a/src/drivers/smmstore/ramstage.c +++ b/src/drivers/smmstore/ramstage.c @@ -36,6 +36,7 @@
static void init_store(void *unused) { + const uint16_t apmc_port = pm_acpi_smi_cmd_port(); struct smmstore_params_init args; uint32_t eax = ~0; uint32_t ebx; @@ -63,7 +64,7 @@ : "=a" (eax) : "a" ((SMMSTORE_CMD_INIT << 8) | APM_CNT_SMMSTORE), "b" (ebx), - "d" (APM_CNT) + "d" (apmc_port) : "memory");
if (eax != SMMSTORE_RET_SUCCESS) {