coreboot/src/acpi
Furquan Shaikh d47946e750 acpi: Generate power resource name instead of default "PRIC"
This change uses a static 8-bit counter in
`acpi_device_add_power_res()` to generate the name of power resource
object rather using a default name "PRIC". This makes it easier to
identify which power resource Linux kernel logs are referring to. If
more than 256 power resources are used in the system, then the counter
will wrap around to 0. However, 256 seems to be a large enough number
for the power resource count.

TEST=Verified that Power Resources are named as expected:
```
dmesg | grep ACPI | grep PR
[    0.550921] ACPI: Power Resource [PR00] (on)
[    0.869960] ACPI: Power Resource [PR01] (on)
[    1.013973] ACPI: Power Resource [PR02] (on)
```

No new ACPI errors are seen in dmesg on brya.

Change-Id: Ia18f7177b03821ce0f8c989ae5d258f2f83517a5
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57650
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2021-09-16 06:07:15 +00:00
..
acpi.c acpi: Fill fadt->century based on Kconfig 2021-08-19 18:16:04 +00:00
acpi_pm.c ACPI: Add helpers for CBMEM_ID_POWER_STATE 2021-01-23 20:31:09 +00:00
acpigen.c acpigen: Add ability to auto-generate _DSM Function 0 2021-09-10 19:39:09 +00:00
acpigen_dptf.c
acpigen_dsm.c acpi/acpigen.h: Add more intuitive AML package closing functions 2021-03-22 11:21:55 +00:00
acpigen_extern.asl ACPI: Refactor use of global and device NVS 2021-06-14 19:45:56 +00:00
acpigen_pci.c acpi: Add acpigen_write_PRT* helpers for generating _PRT entries 2021-03-24 16:08:57 +00:00
acpigen_ps2_keybd.c arch/x86/acpi: rename KEY_KBDILLUMTOGGLE to KEY_KBD_BKLIGHT_TOGGLE 2021-08-06 16:26:44 +00:00
acpigen_usb.c
device.c acpi: Generate power resource name instead of default "PRIC" 2021-09-16 06:07:15 +00:00
dsdt_top.asl ChromeOS: Use CHROMEOS_NVS guard 2021-04-21 09:27:31 +00:00
gnvs.c ACPI: Refactor use of global and device NVS 2021-06-14 19:45:56 +00:00
Kconfig ACPI: Refactor use of global and device NVS 2021-06-14 19:45:56 +00:00
Makefile.inc vc/google/chromeos: Refactor GNVS init 2021-04-30 06:46:07 +00:00
pld.c
sata.c
soundwire.c