coreboot/src/ec/google/chromeec
Karthikeyan Ramasubramanian a95907b066 ec/google/chromeec: Update the USBC ACPI device hierarchy
Type C connector class driver in kernel (v5.4) expects the Type C ACPI
device under ChromeEC ACPI device scope. Currently the Type C ACPI
device is populated under ChromeEC device's parent. This leads to
incorrect casting of Type C's parent device and hence a crash. Move the
Type C device under ChromeEC ACPI device.

BUG=b:153518804
TEST=Build and boot the mainboard. Ensure that the USBC ACPI device is
populated under ChromeEC ACPI device.
Scope (\_SB.PCI0.LPCB.EC0.CREC)
{
	Device (USBC)
	{
		Name (_HID, "GOOG0014")  // _HID: Hardware ID
		...
	}
}

Change-Id: I628489bc420d7a3db4ad3cb93d085d568c6de507
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40354
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aamir Bohra <aamir.bohra@intel.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2020-04-17 18:51:04 +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 ec/google/chromeec: add BOARD_VERSION CBI support 2020-04-16 03:53:31 +00:00
ec.h ec/google/chromeec: add BOARD_VERSION CBI support 2020-04-16 03:53:31 +00:00
ec_acpi.c ec/google/chromeec: Update the USBC ACPI device hierarchy 2020-04-17 18:51:04 +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