/* SPDX-License-Identifier: GPL-2.0-only */ // This is defined in SSDT2 which is generated at boot based // on whether or not the device is enabled in ACPI mode. External (\S8EN) External (\S8B0) External (\S8B1) Device (ADSP) { Method (_HID, 0, Serialized) { If (\ISWP ()) { // WildcatPoint Return ("INT3438") } // LynxPoint-LP Return ("INT33C8") } Name (_UID, 1) Name (_DDN, "Intel Smart Sound Technology") Name (RBUF, ResourceTemplate () { Memory32Fixed (ReadWrite, 0x00000000, 0x00100000, BAR0) Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR1) Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {3} }) Method (_CRS, 0, NotSerialized) { // Update BAR address and length if set in NVS If (\S8B0 != 0) { CreateDwordField (^RBUF, ^BAR0._BAS, B8A0) CreateDwordField (^RBUF, ^BAR1._BAS, B8A1) B8A0 = \S8B0 B8A1 = \S8B1 } Return (RBUF) } Method (_STA, 0, NotSerialized) { If (\S8EN == 0) { Return (0x0) } Else { Return (0xF) } } Device (I2S0) { Name (_ADR, 0) } Device (I2S1) { Name (_ADR, 1) } }