superio/ite/it8772f: Program power state after failure

Allow the power state after failure to be set using an option backend
if used, otherwise fall back to the Kconfig selection. This is a
noop for all it8772f boards unless they enable an option backend, in
which case that option setting is now functional, whereas before it
would have been ignored for the Kconfig selection.

TEST=build/boot google/panther with various power state after fail
Kconfig selections.

Change-Id: I1988d70fe27a287cd2cc91dbb905c243c24c816d
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87383
Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Matt DeVillier 2025-04-20 14:23:27 -05:00
commit 4eba4e3f26

View file

@ -26,6 +26,7 @@ static void it8772f_init(struct device *dev)
if (!conf || !res)
break;
ite_ec_init(res->base, &conf->ec);
ite_ec_set_power_state(dev);
break;
case IT8772F_GPIO:
/* Set GPIO output levels */