Skip to content

Commit

Permalink
Up board support: add PCM512x and WM8804 support
Browse files Browse the repository at this point in the history
same as for Up^2, different I2C controller only

Signed-off-by: Pierre-Louis Bossart <[email protected]>
  • Loading branch information
plbossart committed May 22, 2018
1 parent 1c46e77 commit ad6a929
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 0 deletions.
55 changes: 55 additions & 0 deletions Up/PCM512X.asl
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/** @file
The definition block in ACPI table for PCM512X device under I2C2 Controller
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/

DefinitionBlock (
"",
"SSDT",
2,
"INTEL ",
"P512Tabl",
0x1000
)
{
External(\_SB.PCI0.I2C2, DeviceObj)

Scope (\_SB.PCI0.I2C2) {
Device (P512)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "104C5122" /* TI PCM5121 I2S Audio Codec */) // _HID: Hardware ID
Name (_CID, "104C5122" /* TI PCM5121 I2S Audio Codec */) // _CID: Compatible ID
Name (_DDN, "TI PCM512X Codec Controller ") // _DDN: DOS Device Name
Name (_UID, One) // _UID: Unique ID
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
{
Name (SBUF, ResourceTemplate ()
{
I2cSerialBus (0x004D, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C2",
0x00, ResourceConsumer, ,
)
})
Return (SBUF) /* \_SB_PCI0.I2C2.P512._CRS.SBUF */
}

Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}

Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
{
}
}
}
}
55 changes: 55 additions & 0 deletions Up/WM8804.asl
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/** @file
The definition block in ACPI table for WM8804 device under I2C2 Controller
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/

DefinitionBlock (
"",
"SSDT",
2,
"INTEL ",
"WLFSTabl",
0x1000
)
{
External(\_SB.PCI0.I2C2, DeviceObj)

Scope (\_SB.PCI0.I2C2) {
Device (WLFS)
{
Name (_ADR, Zero) // _ADR: Address
Name (_HID, "1AEC8804" /* Wolfson/Cirrus WM8804 I2S Audio Codec */) // _HID: Hardware ID
Name (_CID, "1AEC8804" /* Wolfson/Cirrus WM8804 I2S Audio Codec */) // _CID: Compatible ID
Name (_DDN, "Wolfson/CirrusLogic WM8804 Codec Controller ") // _DDN: DOS Device Name
Name (_UID, One) // _UID: Unique ID
Method (_CRS, 0, Serialized) // _CRS: Current Resource Settings
{
Name (SBUF, ResourceTemplate ()
{
I2cSerialBus (0x003B, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C2",
0x00, ResourceConsumer, ,
)
})
Return (SBUF) /* \_SB_PCI0.I2C2.WLFS._CRS.SBUF */
}

Method (_STA, 0, NotSerialized) // _STA: Status
{
Return (0x0F)
}

Method (_DIS, 0, NotSerialized) // _DIS: Disable Device
{
}
}
}
}

0 comments on commit ad6a929

Please sign in to comment.