Skip to content

Conversation

@movr4x
Copy link

@movr4x movr4x commented Nov 30, 2025

Allows to selectively enable After G3 State syncing, which can be used to sync coreboot user selected after G3 behavior (CFR) to ChromeEC at boot via custom host command EC_CMD_AFTER_G3_STATE.

Without this, ChromeEC will always use default compiled after G3 behavior (usually "Previous State"), overriding coreboot CFR.

Tested on FIZZ/SION.

This should fix the following issues (requires ChromeEC patch to work, separate PR):
MrChromebox/firmware#766
MrChromebox/firmware#669
MrChromebox/firmware#831

FIZZ ChromeEC AG3S PR:
MrChromebox/chrome-ec#11

Support for EC_CMD_AFTER_G3_STATE in coreboot can be also re-used by other boards, as long as EC is patched to handle EC_CMD_AFTER_G3_STATE. All it takes to enable syncing attempt is adding CONFIG_CHROMEEC_AFTER_G3_STATE=y to target board configs/**/*.uefi.

@movr4x movr4x marked this pull request as ready for review December 1, 2025 22:39
Allows to selectively enable After G3 State syncing, which can be
used to sync coreboot user selected after G3 behavior (CFR) to
ChromeEC at boot via custom host command EC_CMD_AFTER_G3_STATE.

Without this, ChromeEC will always use default compiled after G3
behavior (usually "Previous State").

Tested on FIZZ/SION.

Signed-off-by: Lukasz Kutyla <9387698+movr4x@users.noreply.github.com>
Signed-off-by: Lukasz Kutyla <9387698+movr4x@users.noreply.github.com>
@movr4x movr4x force-pushed the MrChromebox-2509-ag3s-up branch from 6fe79ee to 7428c24 Compare December 5, 2025 13:04
Signed-off-by: Lukasz Kutyla <9387698+movr4x@users.noreply.github.com>
Signed-off-by: Lukasz Kutyla <9387698+movr4x@users.noreply.github.com>
Signed-off-by: Lukasz Kutyla <9387698+movr4x@users.noreply.github.com>
@movr4x
Copy link
Author

movr4x commented Jan 9, 2026

@MrChromebox

I have tried to address the issues and reworked for simplicity.

If you can, please check if all of it is ok with you.

While it compiles without problem, I still need to test this on my device, so please do not merge this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants