chromeec: Add commands to check PD image type
Coreboot needs to be able to reboot the PD controller into RO
image in recovery mode early in the boot process in order to
avoid a lengthy recovery mode boot if it is only done at vboot
software sync time.
In order to do this a new device index field is added to the
command structure which must be initaalized to zero for all EC
This early init and image check code is only used in romstage so
include it in the __PRE_RAM__ block.
TEST=build and boot on samus EVT in recovery mode and see that
the PD is rebooted to RO mode early in the boot.
Signed-off-by: Stefan Reinauer <email@example.com>
Original-Signed-off-by: Duncan Laurie <firstname.lastname@example.org>
Original-Reviewed-by: Aaron Durbin <email@example.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <firstname.lastname@example.org>
2 files changed