coreboot/src/ec/google/chromeec
Furquan Shaikh eec30f7bea 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>
2020-04-22 18:52:20 +00:00
..
acpi google/chromeec: Add USB MUX Interrupt 2020-04-13 23:39:29 +00:00
chip.h src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00
crosec_proto.c src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00
ec.c google/chromeec: Add wrapper for EC_CMD_GET_KEYBD_CONFIG 2020-04-20 21:35:03 +00:00
ec.h google/chromeec: Add wrapper for EC_CMD_GET_KEYBD_CONFIG 2020-04-20 21:35:03 +00:00
ec_acpi.c ec/google/chromeec: Fix acpi_name() for Chrome EC device 2020-04-22 18:52:20 +00:00
ec_boardid.c src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00
ec_commands.h ec/google/chromeec: Add host command EC_CMD_GET_KEYBD_CONFIG 2020-04-17 01:07:25 +00:00
ec_i2c.c src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00
ec_lpc.c Replace DEVICE_NOOP with noop_(set|read)_resources 2020-04-10 11:50:22 +00:00
ec_message.h
ec_skuid.c ec/google/chromeec: add smbios_mainboard_manufacturer() 2020-04-13 15:03:48 +00:00
ec_spi.c src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00
Kconfig ec/google/chromeec: Introduce SKU_ID helpers 2020-02-28 00:02:35 +00:00
Makefile.inc ec/google/chromeec: Fix dev ops for chromeec 2020-03-06 08:06:02 +00:00
smihandler.c src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00
smm.h src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00
switches.c src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00
vboot_storage.c src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00
vstore.c src/ec: Use SPDX for GPL-2.0-only files 2020-04-05 17:43:16 +00:00