amd/picasso/acpi: Add power resources for UART0

Follow-up for a31a769 -
"amd/picasso/acpi: Add power resources for I2C and UART".
Now PSP properly handles UART0 D3, we can shutdown UART0.

BUG=b:158772504
TEST=suspend_stress_test for 50 cycles,
* echo 1 > /sys/module/acpi/parameters/aml_debug_output
* dmesg | grep FUR to check on&off for FUR0
[ 2413.647500] ACPI Debug:  "AOAC.FUR0._OFF"
[ 2413.736265] ACPI Debug:  "AOAC.FUR0._ON"

Change-Id: I25457e18b69d28a83e42c2fe02b45a3979ad58cd
Signed-off-by: Kangheui Won <khwon@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44266
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Kangheui Won 2020-08-06 19:03:23 +10:00 committed by Aaron Durbin
parent 108570654e
commit 7fe005ff30
2 changed files with 13 additions and 0 deletions

View File

@ -139,6 +139,7 @@ Device (AOAC) {
AOAC_DEVICE(I2C2, 7, 0) AOAC_DEVICE(I2C2, 7, 0)
AOAC_DEVICE(I2C3, 8, 0) AOAC_DEVICE(I2C3, 8, 0)
AOAC_DEVICE(FUR0, 11, 0)
AOAC_DEVICE(FUR1, 12, 0) AOAC_DEVICE(FUR1, 12, 0)
AOAC_DEVICE(FUR2, 16, 0) AOAC_DEVICE(FUR2, 16, 0)
AOAC_DEVICE(FUR3, 26, 0) AOAC_DEVICE(FUR3, 26, 0)

View File

@ -122,6 +122,18 @@ Device (FUR0)
Return (Local0) Return (Local0)
} }
} }
Name (_PR0, Package () { \_SB.AOAC.FUR0 })
Name (_PR2, Package () { \_SB.AOAC.FUR0 })
Name (_PR3, Package () { \_SB.AOAC.FUR0 })
Method (_PS0, 0, Serialized) {
Printf("FUR0._PS0")
\_SB.AOAC.FUR0.TDS = 1
}
Method (_PS3, 0, Serialized) {
Printf("FUR0._PS3")
\_SB.AOAC.FUR0.TDS = 3
}
} }
Device (FUR1) { Device (FUR1) {