Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Part 1:
- Scope (_SB.PCI0.I2C2)
- {
- Device (CODC)
- {
- Name (_HID, "193C9890") // _HID: Hardware ID
- Name (_DDN, "Maxim 98090 Codec") // _DDN: DOS Device Name
- Name (_UID, One) // _UID: Unique ID
- Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
- {
- I2cSerialBusV2 (0x0010, ControllerInitiated, 0x00061A80,
- AddressingMode7Bit, "\\_SB.PCI0.I2C2",
- 0x00, ResourceConsumer, , Exclusive,
- )
- Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, ,, )
- {
- 0x00000043,
- }
- })
- Name (GBUF, ResourceTemplate()
- {
- GpioInt (Level, ActiveHigh, Exclusive, PullNone, 0x0000,
- "\\_SB.GPSC", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x000E
- }
- GpioInt (Level, ActiveHigh, Exclusive, PullNone, 0x0000,
- "\\_SB.GPSC", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x000F
- }
- })
- Method (_STA, 0, NotSerialized) // _STA: Status
- {
- If (LEqual (S2EN, One))
- {
- Return (0x0F)
- }
- Else
- {
- Return (Zero)
- }
- }
- }
- }
- Part 2: In LPEA
- Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
- {
- CreateDWordField (RBUF, \_SB.PCI0.LPEA._Y16._BAS, BAS0) // _BAS: Base Address
- Store (LPB0, BAS0) /* \_SB_.PCI0.LPEA._CRS.BAS0 */
- CreateDWordField (RBUF, \_SB.PCI0.LPEA._Y17._BAS, BAS1) // _BAS: Base Address
- Store (LPB1, BAS1) /* \_SB_.PCI0.LPEA._CRS.BAS1 */
- CreateDWordField (RBUF, \_SB.PCI0.LPEA._Y18._BAS, BAS2) // _BAS: Base Address
- Store (LPFW, BAS2) /* \_SB_.PCI0.LPEA._CRS.BAS2 */
- If (CondRefOf (\_SB.PCI0.I2C2.CODC.GBUF))
- {
- ConcatenateResTemplate (RBUF, ^^I2C2.CODC.GBUF, Local1)
- Return (Local1)
- }
- Return (RBUF) /* \_SB_.PCI0.LPEA.RBUF */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement