mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: drivers/pc80/tpm: Update default acpi path
The existing default path of PCI0.LPCB is missing the \_SB prefix and prevents Linux from detecting the TPM.
This is assuming that normally the LPCB device is most commonly on \_SB.PCI0.LPCB.
SSDT excerpt without the patch:
"""
DefinitionBlock ("", "SSDT", 2, "CORE ", "COREBOOT", 0x0000002A)
{
External (_SB_.PCI0.GFX0, DeviceObj)
[...]
External (_SB_.PCI0.SATA, DeviceObj)
External (PCI0.LPCB, DeviceObj)
[...]
Scope (PCI0.LPCB)
{
Device (TPM)
[...]
Scope (\_SB.PCI0.GFX0)
{
Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices
[...]
"""
SSDT excerpt with the patch:
"""
DefinitionBlock ("", "SSDT", 2, "CORE ", "COREBOOT", 0x0000002A)
{
External (_SB_.PCI0.GFX0, DeviceObj)
[...]
External (_SB_.PCI0.LPCB, DeviceObj)
[...]
External (_SB_.PCI0.SATA, DeviceObj)
[...]
Scope (\_SB.PCI0.LPCB)
{
Device (TPM)
[...]
Scope (\_SB.PCI0.GFX0)
{
Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices
[...]
"""
After the patch the TPM shows up in /sys/bus/acpi/devices/PNP0C31:00.
Previously it was missing and not detected by the kernel.
BUG=none
BRANCH=none
TEST=none
Change-Id: I239b934fb5ec1f320cc02cafa20f8756e4c6bf68
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Original-Commit-Id: 36537f113c
Original-Change-Id: I615b4873ca829a859211403c84234d43d60f2243
Original-Signed-off-by: Tobias Diedrich <ranma+coreboot@tdiedrich.de>
Original-Reviewed-on: https://review.coreboot.org/18315
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Nicola Corna <nicola@corna.info>
Original-Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/443680
This commit is contained in:
parent
527b3c1da5
commit
ac8261ce3b
1 changed files with 1 additions and 1 deletions
|
@ -876,7 +876,7 @@ static void lpc_tpm_fill_ssdt(struct device *dev)
|
|||
CONFIG_TPM_TIS_BASE_ADDRESS, 0x5000);
|
||||
|
||||
if (!path) {
|
||||
path = "PCI0.LPCB";
|
||||
path = "\\_SB_.PCI0.LPCB";
|
||||
printk(BIOS_DEBUG, "Using default TPM ACPI path: '%s'\n", path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue