From 3b46333b39701ac2fdbbeba8d863449904f12f7a Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 15 Jun 2021 16:25:46 +0200 Subject: soc/amd/picasso/acpi/sb_fch: use AOAC offset defines Replace the magic numbers with the existing defines. Signed-off-by: Felix Held Change-Id: I2d98ea8c5bb0e487c7eef0b0a1cdada9cb04df4a Reviewed-on: https://review.coreboot.org/c/coreboot/+/55532 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson Reviewed-by: Raul Rangel --- src/soc/amd/picasso/acpi/sb_fch.asl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/soc/amd/picasso/acpi/sb_fch.asl b/src/soc/amd/picasso/acpi/sb_fch.asl index 926bf10c39..e561d1d5d3 100644 --- a/src/soc/amd/picasso/acpi/sb_fch.asl +++ b/src/soc/amd/picasso/acpi/sb_fch.asl @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include +#include #include #include #include @@ -122,7 +123,7 @@ Device (FUR0) } } - AOAC_DEVICE(11, 0) + AOAC_DEVICE(FCH_AOAC_DEV_UART0, 0) } Device (FUR1) { @@ -153,7 +154,7 @@ Device (FUR1) { } } - AOAC_DEVICE(12, 0) + AOAC_DEVICE(FCH_AOAC_DEV_UART1, 0) } Device (FUR2) { @@ -184,7 +185,7 @@ Device (FUR2) { } } - AOAC_DEVICE(16, 0) + AOAC_DEVICE(FCH_AOAC_DEV_UART2, 0) } Device (FUR3) { @@ -215,7 +216,7 @@ Device (FUR3) { } } - AOAC_DEVICE(26, 0) + AOAC_DEVICE(FCH_AOAC_DEV_UART3, 0) } Device (I2C2) { @@ -251,7 +252,7 @@ Device (I2C2) { Return (0x0F) } - AOAC_DEVICE(7, 0) + AOAC_DEVICE(FCH_AOAC_DEV_I2C2, 0) } Device (I2C3) @@ -287,7 +288,7 @@ Device (I2C3) Return (0x0F) } - AOAC_DEVICE(8, 0) + AOAC_DEVICE(FCH_AOAC_DEV_I2C3, 0) } Device (MISC) -- cgit v1.2.3