1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #if CONFIG(EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_RANGE)
4 #define LPC_GMR_SIZE 0x10000
9 Name (_HID, "GOOG0004")
11 Name (_DDN, "EC Command Device")
12 #ifdef EC_ENABLE_WAKE_PIN
13 #ifndef EC_ENABLE_SYNC_IRQ_GPIO
14 Name (_PRW, Package () { EC_ENABLE_WAKE_PIN, 0x5 })
16 #define EC_SYNC_IRQ_WAKE_CAPABLE
20 #ifdef EC_SYNC_IRQ_WAKE_CAPABLE
21 #define EC_SYNC_SHARE_TYPE ExclusiveAndWake
23 #define EC_SYNC_SHARE_TYPE Exclusive
26 #if defined(EC_ENABLE_SYNC_IRQ) || defined(EC_ENABLE_SYNC_IRQ_GPIO)
27 Method (_CRS, 0x0, NotSerialized)
29 Name (RBUF, ResourceTemplate()
31 #ifdef EC_ENABLE_SYNC_IRQ
32 Interrupt (ResourceConsumer, Level, ActiveLow, EC_SYNC_SHARE_TYPE) { EC_SYNC_IRQ }
35 #ifdef EC_ENABLE_SYNC_IRQ_GPIO
36 GpioInt (Level, ActiveLow, EC_SYNC_SHARE_TYPE, PullDefault,
37 0x0000, "\\_SB.GPIO", 0x00, ResourceConsumer, ,)
43 #if CONFIG(EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_RANGE)
44 Memory32Fixed (ReadWrite, 0, 0, MADR)
48 #if CONFIG(EC_GOOGLE_CHROMEEC_LPC_GENERIC_MEMORY_RANGE)
49 CreateDWordField (RBUF, MADR._BAS, BAS0)
50 CreateDWordField (RBUF, MADR._LEN, LEN0)
51 BAS0 = \_SB.PCI0.LPCB.GLGM()
58 #ifdef EC_ENABLE_MKBP_DEVICE
61 Name (_HID, "GOOG0007")
63 Name (_DDN, "EC MKBP Device")
67 #ifdef EC_ENABLE_CBAS_DEVICE
70 Name (_HID, "GOOG000B")
72 Name (_DDN, "EC Base Switch Device")
76 #ifdef EC_ENABLE_PD_MCU_DEVICE
80 #ifdef EC_ENABLE_TBMC_DEVICE
89 #if CONFIG(DRIVERS_ACPI_THERMAL_ZONE)