Skip to content

Commit

Permalink
UpExtreme: add support for mockup devices
Browse files Browse the repository at this point in the history
Add pretend _ADR to probe mockup SoundWire devices and load a
machine driver. The two topologies mimic the cases supported on CML.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
  • Loading branch information
plbossart committed May 6, 2021
1 parent 4aa0b74 commit 9f7cf60
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
40 changes: 40 additions & 0 deletions UpExtreme/mockup-device-1amp.asl
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/** @file
The definition block in ACPI table for mockup devices emulating the
CometLake single amp topology.
Copyright (c) 2021, 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",
"CML1Tabl",
0x1000
)
{
External(\_SB.PCI0.HDAS.SNDW, DeviceObj)

Scope (_SB.PCI0.HDAS.SNDW) {
Device (RTK0)
{
Name (_ADR, 0x0000000105AA5500) // _ADR: Address
}
Device (RTK1)
{
Name (_ADR, 0x000100010555AA00) // _ADR: Address
}
Device (RTK3)
{
Name (_ADR, 0x0003000105555500) // _ADR: Address
}
}
}
44 changes: 44 additions & 0 deletions UpExtreme/mockup-device-2amps.asl
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/** @file
The definition block in ACPI table for mockup devices emulating the
CometLake two-amp topology.
Copyright (c) 2021, 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",
"CML2Tabl",
0x1000
)
{
External(\_SB.PCI0.HDAS.SNDW, DeviceObj)

Scope (_SB.PCI0.HDAS.SNDW) {
Device (RTK0)
{
Name (_ADR, 0x0000000105AA5500) // _ADR: Address
}
Device (RTK1)
{
Name (_ADR, 0x000100010555AA00) // _ADR: Address
}
Device (RTK2)
{
Name (_ADR, 0x000200010555AA00) // _ADR: Address
}
Device (RTK3)
{
Name (_ADR, 0x0003000105555500) // _ADR: Address
}
}
}

0 comments on commit 9f7cf60

Please sign in to comment.