John Zhao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/52713 )
Change subject: ec/google/chromeec: Provide EC access for Retimer firmware upgrade ......................................................................
ec/google/chromeec: Provide EC access for Retimer firmware upgrade
Coreboot needs to access EC RFWU entry in order to suspend and resume PD and modes setting. This change adds ec_retimer_fw_update implementation for Retimer firmware upgrade.
BUG=b:186521258 TEST=Build image successfully.
Signed-off-by: John Zhao john.zhao@intel.com Change-Id: Ib937d8bd72fc39487854773573b435bf2add672a --- M src/ec/google/chromeec/ec_acpi.c 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/52713/1
diff --git a/src/ec/google/chromeec/ec_acpi.c b/src/ec/google/chromeec/ec_acpi.c index 8cfc7b1..4b3f781 100644 --- a/src/ec/google/chromeec/ec_acpi.c +++ b/src/ec/google/chromeec/ec_acpi.c @@ -241,3 +241,16 @@ { return "\_SB_.PCI0.LPCB.EC0_.RFWU"; } + +void ec_retimer_fw_update(uint8_t data) +{ + const char *RFWU = ec_retimer_fw_update_path(); + + /* + * Write the EC RAM for Retimer Upgrade + * RFWU = data + */ + acpigen_write_store(); + acpigen_write_byte(data); + acpigen_emit_namestring(RFWU); +}