From cf246d5166170ba78fcbe2a013135fb233fc9c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 21 Jan 2021 08:17:00 +0200 Subject: ACPI: Add top-level ASL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Objects that are created with acpigen need to be declared with External () for the generation of dsdt.asl to pass iasl without errors. There are some objects that are common to all platforms, and some that should be declared only conditionally. Having a top-level ASL helps to achieve this. Change-Id: Ibaf1ab9941b82f99e5fa857c0c7e4b6192c74330 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/49794 Tested-by: build bot (Jenkins) Reviewed-by: Wim Vervoorn Reviewed-by: Patrick Rudolph Reviewed-by: Christian Walter Reviewed-by: Angel Pons --- src/mainboard/lenovo/g505s/dsdt.asl | 1 + src/mainboard/lenovo/l520/dsdt.asl | 1 + src/mainboard/lenovo/s230u/dsdt.asl | 1 + src/mainboard/lenovo/t400/dsdt.asl | 1 + src/mainboard/lenovo/t410/dsdt.asl | 1 + src/mainboard/lenovo/t420/dsdt.asl | 1 + src/mainboard/lenovo/t420s/dsdt.asl | 1 + src/mainboard/lenovo/t430/dsdt.asl | 1 + src/mainboard/lenovo/t430s/dsdt.asl | 1 + src/mainboard/lenovo/t440p/dsdt.asl | 1 + src/mainboard/lenovo/t520/dsdt.asl | 1 + src/mainboard/lenovo/t530/dsdt.asl | 1 + src/mainboard/lenovo/t60/dsdt.asl | 1 + src/mainboard/lenovo/thinkcentre_a58/dsdt.asl | 1 + src/mainboard/lenovo/x131e/dsdt.asl | 1 + src/mainboard/lenovo/x1_carbon_gen1/dsdt.asl | 1 + src/mainboard/lenovo/x200/dsdt.asl | 1 + src/mainboard/lenovo/x201/dsdt.asl | 1 + src/mainboard/lenovo/x220/dsdt.asl | 1 + src/mainboard/lenovo/x230/dsdt.asl | 1 + src/mainboard/lenovo/x60/dsdt.asl | 1 + 21 files changed, 21 insertions(+) (limited to 'src/mainboard/lenovo') diff --git a/src/mainboard/lenovo/g505s/dsdt.asl b/src/mainboard/lenovo/g505s/dsdt.asl index 57b535afc5..50c59333fd 100644 --- a/src/mainboard/lenovo/g505s/dsdt.asl +++ b/src/mainboard/lenovo/g505s/dsdt.asl @@ -13,6 +13,7 @@ DefinitionBlock ( 0x00010001 /* OEM Revision */ ) { /* Start of ASL file */ + #include /* Globals for the platform */ #include "acpi/mainboard.asl" diff --git a/src/mainboard/lenovo/l520/dsdt.asl b/src/mainboard/lenovo/l520/dsdt.asl index b0f258ec4d..06cffcf8a2 100644 --- a/src/mainboard/lenovo/l520/dsdt.asl +++ b/src/mainboard/lenovo/l520/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20141018 // OEM revision ) { + #include #include "acpi/platform.asl" #include #include diff --git a/src/mainboard/lenovo/s230u/dsdt.asl b/src/mainboard/lenovo/s230u/dsdt.asl index fb51412bd8..861309b8e9 100644 --- a/src/mainboard/lenovo/s230u/dsdt.asl +++ b/src/mainboard/lenovo/s230u/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20141018 // OEM revision ) { + #include #include "acpi/platform.asl" #include "acpi/gpe.asl" #include diff --git a/src/mainboard/lenovo/t400/dsdt.asl b/src/mainboard/lenovo/t400/dsdt.asl index 3967a90536..f9c682f9dc 100644 --- a/src/mainboard/lenovo/t400/dsdt.asl +++ b/src/mainboard/lenovo/t400/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20090419 // OEM revision ) { + #include #include "acpi/platform.asl" // global NVS and variables diff --git a/src/mainboard/lenovo/t410/dsdt.asl b/src/mainboard/lenovo/t410/dsdt.asl index 40a57cb578..63c91527d9 100644 --- a/src/mainboard/lenovo/t410/dsdt.asl +++ b/src/mainboard/lenovo/t410/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20130325 /* OEM revision */ ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/t420/dsdt.asl b/src/mainboard/lenovo/t420/dsdt.asl index 79bbd11d83..33b6f80b17 100644 --- a/src/mainboard/lenovo/t420/dsdt.asl +++ b/src/mainboard/lenovo/t420/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20110725 // OEM revision ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/t420s/dsdt.asl b/src/mainboard/lenovo/t420s/dsdt.asl index 79bbd11d83..33b6f80b17 100644 --- a/src/mainboard/lenovo/t420s/dsdt.asl +++ b/src/mainboard/lenovo/t420s/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20110725 // OEM revision ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/t430/dsdt.asl b/src/mainboard/lenovo/t430/dsdt.asl index 0287cd9027..c19e75ee82 100644 --- a/src/mainboard/lenovo/t430/dsdt.asl +++ b/src/mainboard/lenovo/t430/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20141018 // OEM revision ) { + #include #include "acpi/platform.asl" #include #include diff --git a/src/mainboard/lenovo/t430s/dsdt.asl b/src/mainboard/lenovo/t430s/dsdt.asl index 79bbd11d83..33b6f80b17 100644 --- a/src/mainboard/lenovo/t430s/dsdt.asl +++ b/src/mainboard/lenovo/t430s/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20110725 // OEM revision ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/t440p/dsdt.asl b/src/mainboard/lenovo/t440p/dsdt.asl index 9a54673ec8..e3b5070363 100644 --- a/src/mainboard/lenovo/t440p/dsdt.asl +++ b/src/mainboard/lenovo/t440p/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20141018 // OEM revision ) { + #include #include "acpi/platform.asl" #include #include diff --git a/src/mainboard/lenovo/t520/dsdt.asl b/src/mainboard/lenovo/t520/dsdt.asl index 79bbd11d83..33b6f80b17 100644 --- a/src/mainboard/lenovo/t520/dsdt.asl +++ b/src/mainboard/lenovo/t520/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20110725 // OEM revision ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/t530/dsdt.asl b/src/mainboard/lenovo/t530/dsdt.asl index 79bbd11d83..33b6f80b17 100644 --- a/src/mainboard/lenovo/t530/dsdt.asl +++ b/src/mainboard/lenovo/t530/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20110725 // OEM revision ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/t60/dsdt.asl b/src/mainboard/lenovo/t60/dsdt.asl index 7875dc6374..5847580d18 100644 --- a/src/mainboard/lenovo/t60/dsdt.asl +++ b/src/mainboard/lenovo/t60/dsdt.asl @@ -14,6 +14,7 @@ DefinitionBlock( 0x20090419 // OEM revision ) { + #include #include "acpi/platform.asl" // global NVS and variables diff --git a/src/mainboard/lenovo/thinkcentre_a58/dsdt.asl b/src/mainboard/lenovo/thinkcentre_a58/dsdt.asl index 05a0534ea4..12c14f7a71 100644 --- a/src/mainboard/lenovo/thinkcentre_a58/dsdt.asl +++ b/src/mainboard/lenovo/thinkcentre_a58/dsdt.asl @@ -10,6 +10,7 @@ DefinitionBlock( 0x20090419 // OEM revision ) { + #include // global NVS and variables #include #include diff --git a/src/mainboard/lenovo/x131e/dsdt.asl b/src/mainboard/lenovo/x131e/dsdt.asl index 10dc4ceb0c..34391416f3 100644 --- a/src/mainboard/lenovo/x131e/dsdt.asl +++ b/src/mainboard/lenovo/x131e/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20141018 // OEM revision ) { + #include #include "acpi/platform.asl" #include #include diff --git a/src/mainboard/lenovo/x1_carbon_gen1/dsdt.asl b/src/mainboard/lenovo/x1_carbon_gen1/dsdt.asl index a798424146..6838b5e9a6 100644 --- a/src/mainboard/lenovo/x1_carbon_gen1/dsdt.asl +++ b/src/mainboard/lenovo/x1_carbon_gen1/dsdt.asl @@ -16,6 +16,7 @@ DefinitionBlock( 0x20141018 // OEM revision ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/x200/dsdt.asl b/src/mainboard/lenovo/x200/dsdt.asl index c05f138c89..00a20c201b 100644 --- a/src/mainboard/lenovo/x200/dsdt.asl +++ b/src/mainboard/lenovo/x200/dsdt.asl @@ -14,6 +14,7 @@ DefinitionBlock( 0x20090419 // OEM revision ) { + #include #include "acpi/platform.asl" // global NVS and variables diff --git a/src/mainboard/lenovo/x201/dsdt.asl b/src/mainboard/lenovo/x201/dsdt.asl index 40a57cb578..63c91527d9 100644 --- a/src/mainboard/lenovo/x201/dsdt.asl +++ b/src/mainboard/lenovo/x201/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20130325 /* OEM revision */ ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/x220/dsdt.asl b/src/mainboard/lenovo/x220/dsdt.asl index 79bbd11d83..33b6f80b17 100644 --- a/src/mainboard/lenovo/x220/dsdt.asl +++ b/src/mainboard/lenovo/x220/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20110725 // OEM revision ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/x230/dsdt.asl b/src/mainboard/lenovo/x230/dsdt.asl index 79bbd11d83..33b6f80b17 100644 --- a/src/mainboard/lenovo/x230/dsdt.asl +++ b/src/mainboard/lenovo/x230/dsdt.asl @@ -15,6 +15,7 @@ DefinitionBlock( 0x20110725 // OEM revision ) { + #include #include #include "acpi/platform.asl" diff --git a/src/mainboard/lenovo/x60/dsdt.asl b/src/mainboard/lenovo/x60/dsdt.asl index 4d6f0840bb..827f0c643d 100644 --- a/src/mainboard/lenovo/x60/dsdt.asl +++ b/src/mainboard/lenovo/x60/dsdt.asl @@ -14,6 +14,7 @@ DefinitionBlock( 0x20090419 // OEM revision ) { + #include #include "acpi/platform.asl" // global NVS and variables -- cgit v1.2.3