ec/google/chromeec/acpi: Move ECPD under CREC

Move the ECPD (GOOG0003) device under CREC (GOOG0004) so that the ECPD AP
device drivers can access the parent EC device to communicate with the
EC. Also, update the Notify() call to reflect the new location of the
ECPD device.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Change-Id: I830b030c7a063506f50f9cd51df3a5018e248fc2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39469
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Prashant Malani 2020-03-10 15:42:54 -07:00 committed by Duncan Laurie
parent 22d5b07160
commit dabc0adb3a
2 changed files with 5 additions and 5 deletions

View File

@ -60,6 +60,10 @@ Device (CREC)
Name (_DDN, "EC Base Switch Device")
}
#endif
#ifdef EC_ENABLE_PD_MCU_DEVICE
#include "pd.asl"
#endif
Method(_STA, 0)
{
Return (0xB)

View File

@ -344,7 +344,7 @@ Device (EC0)
Method (_Q16, 0, NotSerialized)
{
Store ("EC: GOT PD EVENT", Debug)
Notify (ECPD, 0x80)
Notify (\_SB.PCI0.LPCB.EC0.CREC.ECPD, 0x80)
}
#endif
@ -558,10 +558,6 @@ Device (EC0)
#include "keyboard_backlight.asl"
#endif
#ifdef EC_ENABLE_PD_MCU_DEVICE
#include "pd.asl"
#endif
#ifdef EC_ENABLE_TBMC_DEVICE
#include "tbmc.asl"
#endif