mb/starlabs/{lite_adl,byte_adl}: Don't select MAINBOARD_HAS_TPM2
[coreboot2.git] / src / soc / intel / apollolake / acpi / pmc_ipc.asl
blob55585c4dd954beba6dc21bd949a007cb3b163a2f
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <soc/iomap.h>
5 #define MAILBOX_DATA 0x7080
6 #define MAILBOX_INTF 0x7084
7 #define PMIO_LENGTH 0x80
8 #define PMIO_LIMIT 0x480
10 scope (\_SB) {
11         Device (IPC1)
12         {
13                 Name (_HID, "INT34D2")
14                 Name (_CID, "INT34D2")
15                 Name (_DDN, "Intel(R) IPC1 Controller")
16                 Name (RBUF, ResourceTemplate ()
17                 {
18                         Memory32Fixed (ReadWrite, 0x0, 0x2000, IBAR)
19                         Memory32Fixed (ReadWrite, 0x0, 0x4, MDAT)
20                         Memory32Fixed (ReadWrite, 0x0, 0x4, MINF)
21                         IO (Decode16, ACPI_BASE_ADDRESS, PMIO_LIMIT,
22                               0x04, PMIO_LENGTH)
23                         Memory32Fixed (ReadWrite, 0x0, 0x2000, SBAR)
24                         Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , )
25                         {
26                               PMC_INT
27                         }
28                 })
30                 Method (_CRS, 0x0, NotSerialized)
31                 {
32                         CreateDwordField (^RBUF, ^IBAR._BAS, IBAS)
33                         IBAS = PCH_PWRM_BASE_ADDRESS
35                         CreateDwordField (^RBUF, ^MDAT._BAS, MDBA)
36                         MDBA = MCH_BASE_ADDRESS + MAILBOX_DATA
37                         CreateDwordField (^RBUF, ^MINF._BAS, MIBA)
38                         MIBA = MCH_BASE_ADDRESS + MAILBOX_INTF
40                         CreateDwordField (^RBUF, ^SBAR._BAS, SBAS)
41                         SBAS = SRAM_BASE_0
43                         Return (^RBUF)
44                 }
45                 Method (_STA, 0x0, NotSerialized)
46                 {
47                         Return(0xb)
48                 }
49         }