util/intelp2m: Print the current project version
[coreboot2.git] / src / mainboard / google / cyan / acpi / codec_realtek.asl
blob1ac0f7cc4c3ff3bdbb18ec42950dda4f33837f9e
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 Scope (\_SB.PCI0.I2C5)
5         /* Realtek Audio Codec */
6         Device (RTEK)   /* Audio Codec driver I2C */
7         {
8                 Name (_HID, AUDIO_CODEC_HID)
9                 Name (_CID, Package() { AUDIO_CODEC_CID, "INTCCFFD" })
10                 Name (_DDN, AUDIO_CODEC_DDN)
11                 Name (_UID, 1)
13                 Method(_CRS, 0x0, Serialized)
14                 {
15                         Name(SBUF,ResourceTemplate ()
16                         {
17                                 I2CSerialBus(
18                                         AUDIO_CODEC_I2C_ADDR,   /* SlaveAddress: bus address */
19                                         ControllerInitiated,    /* SlaveMode: default to ControllerInitiated */
20                                         400000,                 /* ConnectionSpeed: in Hz */
21                                         AddressingMode7Bit,     /* Addressing Mode: default to 7 bit */
22                                         "\\_SB.PCI0.I2C5",      /* ResourceSource: I2C bus controller name */
23                                 )
25                          /* Jack Detect (index 0) */
26                          GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault,,
27                                   "\\_SB.GPSW") { JACK_DETECT_GPIO_INDEX }
28                         } )
29                         Return (SBUF)
30                 }
32                 Method (_STA)
33                 {
34                         Return (0xF)
35                 }
36         }
39 Scope (\_SB.PCI0.LPEA)
41         Name (GBUF, ResourceTemplate ()
42         {
43                 /* Jack Detect (index 0) */
44                 GpioInt (Edge, ActiveBoth, ExclusiveAndWake, PullDefault,,
45                          "\\_SB.GPSW") { JACK_DETECT_GPIO_INDEX }
46         })