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 <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49794 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Wim Vervoorn <wvervoorn@eltan.com> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-by: Christian Walter <christian.walter@9elements.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/* DefinitionBlock Statement */
|
|
#include <acpi/acpi.h>
|
|
DefinitionBlock (
|
|
"dsdt.aml",
|
|
"DSDT",
|
|
ACPI_DSDT_REV_2,
|
|
OEM_ID,
|
|
ACPI_TABLE_CREATOR,
|
|
0x00010001 /* OEM Revision */
|
|
)
|
|
{ /* Start of ASL file */
|
|
#include <acpi/dsdt_top.asl>
|
|
|
|
#include "acpi/mainboard.asl"
|
|
|
|
#include <cpu/amd/agesa/family14/acpi/cpu.asl>
|
|
|
|
#include "acpi/routing.asl"
|
|
|
|
Scope(\_SB) {
|
|
/* global utility methods expected within the \_SB scope */
|
|
#include <arch/x86/acpi/globutil.asl>
|
|
|
|
Device(PCI0) {
|
|
|
|
/* Describe the AMD Northbridge */
|
|
#include <northbridge/amd/agesa/family14/acpi/northbridge.asl>
|
|
|
|
/* Describe the AMD Fusion Controller Hub Southbridge */
|
|
#include <southbridge/amd/cimx/sb800/acpi/fch.asl>
|
|
|
|
/* Primary (and only) IDE channel */
|
|
Device(IDEC) {
|
|
Name(_ADR, 0x00140001)
|
|
#include "acpi/ide.asl"
|
|
} /* end IDEC */
|
|
|
|
}
|
|
} /* End Scope(_SB) */
|
|
|
|
/* Contains the supported sleep states for this chipset */
|
|
#include <southbridge/amd/common/acpi/sleepstates.asl>
|
|
|
|
/* Contains the Sleep methods (WAK, PTS, GTS, etc.) */
|
|
#include "acpi/sleep.asl"
|
|
|
|
#include "acpi/gpe.asl"
|
|
}
|
|
/* End of ASL file */
|