From 1482f1d5766d95b1cd4316ec09a981d5743fef85 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Mon, 30 Mar 2020 19:06:59 -0500 Subject: [PATCH] Up2: add PCM512 codec master mode A second device PRP0001 device is used to probe the clock platform device using the .compatible string Signed-off-by: Pierre-Louis Bossart --- Up2/PCM512X-clock-master.asl | 72 ++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Up2/PCM512X-clock-master.asl diff --git a/Up2/PCM512X-clock-master.asl b/Up2/PCM512X-clock-master.asl new file mode 100644 index 0000000..e5d3bdc --- /dev/null +++ b/Up2/PCM512X-clock-master.asl @@ -0,0 +1,72 @@ +/** @file + The definition block in ACPI table for PCM512X device under I2C5 Controller + +Copyright (c) 2015, Intel Corporation. All rights reserved.
+ 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.I2C1, DeviceObj) + + Scope (\_SB.PCI0.I2C1) { + 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.I2C1", + 0x00, ResourceConsumer, , + ) + }) + Return (SBUF) /* \_SB_PCI0.I2C1.P512._CRS.SBUF */ + } + + Method (_STA, 0, NotSerialized) // _STA: Status + { + Return (0x0F) + } + + Method (_DIS, 0, NotSerialized) // _DIS: Disable Device + { + } + } + + Device (C512) + { + Name (_ADR, Zero) + Name (_HID, "PRP0001") + Name (_CID, "PRP0001") + Name (_UID, One) + + Name (_DSD, Package () + { + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () + { + Package () {"compatible", "hifiberry,dacpro-clk"}, + } + }) + } + } +}