diff options
author | Furquan Shaikh <furquan@google.com> | 2020-04-20 16:38:21 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-04-22 18:52:20 +0000 |
commit | eec30f7beae074c3f80a182cc2950ed8e4f0a640 (patch) | |
tree | 9fff5b6cb7cc26772a6f9ab297cd904344d03856 /src/superio/ite | |
parent | 7778e5c55fbf1399a7d80aac38890a8351fcc573 (diff) |
ec/google/chromeec: Fix acpi_name() for Chrome EC device
In ACPI tables, Chrome EC device (CREC - HID GOOG0004) is a child of
EC device (EC0 - HID PNP0C09). However, in coreboot device tree, there
is no separate chip/device for EC0. Thus, acpi_name() needs to return
EC0.CREC as the ACPI name for the Chrome EC device. By returning the
ACPI name as EC0.CREC, all devices that live under Chrome EC device
can simply call acpi_device_path()/acpi_device_scope() to emit the
right path/scope.
In the future, if we ever add a special chip driver for handling EC0
(HID PNP0C09), then the ACPI name for Chrome EC can be fixed to return
CREC.
BUG=b:154290952
TEST=Verified that acpi_device_path()/acpi_device_scope() return the
correct name for Chrome EC device.
Signed-off-by: Furquan Shaikh <furquan@google.com>
Change-Id: Iec4b0226d1e98ddeb0f8ed8b89477fc4f453d221
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40513
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/superio/ite')
0 files changed, 0 insertions, 0 deletions