soc/intel: Remove blank lines before '}' and after '{'
[coreboot2.git] / src / mainboard / acer / aspire_vn7_572g / dsdt.asl
blob304139b11655d897189b5656dacb69d55f3d0d67
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 DefinitionBlock(
5         "dsdt.aml",
6         "DSDT",
7         ACPI_DSDT_REV_2,
8         OEM_ID,
9         ACPI_TABLE_CREATOR,
10         0x20141018      // OEM revision
13         #include <acpi/dsdt_top.asl>
14         #include <soc/intel/common/block/acpi/acpi/platform.asl>
15         #include <soc/intel/common/block/acpi/acpi/globalnvs.asl>
16         #include <cpu/intel/common/acpi/cpu.asl>
17         #include <southbridge/intel/common/acpi/sleepstates.asl>
19         /* SW SMI ports */
20         OperationRegion (DPRT, SystemIO, 0xB2, 2)
21         Field (DPRT, ByteAcc, Lock, Preserve)
22         {
23                 SSMP, 8,
24                 SSDP, 8
25         }
27         Name (ESMI, 0xDD)       // NOTE: Could insert into SSDT at runtime
28         /* Returns a non-zero integer if SMI function failed */
29         Method (TRPS, 3, Serialized)
30         {
31                 Printf ("SMIF: %o", ToHexString (Arg0))
32                 Printf ("Param0: %o", ToHexString (Arg1))
33                 Printf ("Param1: %o", ToHexString (Arg2))
35                 Local0 = Arg1
36                 Local0 |= (Arg2 << 4)
37                 Printf ("Local0: %o", ToHexString (Local0))
39                 SMIF = Arg0
40                 SSDP = Local0
41                 /* NOTE: To use a general IO trap, program the range
42                    into a PCR_PSTH_TRPREGx. Otherwise, this is APM. */
43                 SSMP = ESMI
44                 Return (SMIF)
45         }
47         Device (\_SB.PCI0)
48         {
49                 #include <soc/intel/skylake/acpi/systemagent.asl>
50                 #include <soc/intel/skylake/acpi/pch.asl>
51                 #include "acpi/brightness_levels.asl"
52         }
54         #include "acpi/mainboard.asl"