diff options
author | Mary Ruthven <mruthven@chromium.org> | 2022-04-20 11:52:37 -0500 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-06 22:04:17 +0000 |
commit | 3a2edbfb4c50c8a7f1d3f6b36a6fe5928c89e9d7 (patch) | |
tree | 2b3b52982906a847ee6542d8a05c93c3053f3356 /chip/g | |
parent | 60717561c49be02a43e81f191d9aeb9352428467 (diff) | |
download | chrome-ec-3a2edbfb4c50c8a7f1d3f6b36a6fe5928c89e9d7.tar.gz |
ap_state: add device state info
Add "K" or "F" to the AP state to give more information about the device
state. K for kernel. F for Firmware.
This uses 48 bytes
BUG=b:148492097
TEST=check ccdstate output at different times during boot. Run
firmware_Cr50DeviceState
Change-Id: If2a26c39047b9ae1818eb8d6afbaafa3d1765ca5
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3597035
Reviewed-by: Andrey Pronin <apronin@chromium.org>
(cherry picked from commit a2e434d6c70f605b89cfe403dfc64ed2bd430cc3)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3615047
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
(cherry picked from commit a54ed86f26986b77a340d15dac819ead0c9d6a6f)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3632615
Diffstat (limited to 'chip/g')
-rw-r--r-- | chip/g/system.c | 3 | ||||
-rw-r--r-- | chip/g/system_chip.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/chip/g/system.c b/chip/g/system.c index 2e464391db..2fffebdc4a 100644 --- a/chip/g/system.c +++ b/chip/g/system.c @@ -531,6 +531,9 @@ int system_process_retry_counter(void) CPRINTS("%s: retry counter %d", __func__, GREG32(PMU, LONG_LIFE_SCRATCH0)); system_clear_retry_counter(); +#if defined(CHIP_FAMILY_CR50) + system_notify_ap_boot(); +#endif if (!system_rollback_detected()) return EC_SUCCESS; diff --git a/chip/g/system_chip.h b/chip/g/system_chip.h index 3547bf58c7..7c450315fb 100644 --- a/chip/g/system_chip.h +++ b/chip/g/system_chip.h @@ -94,4 +94,9 @@ void system_pinhold_on_reset_disable(void); */ void system_pinhold_disengage(void); +/** + * Notify the board booted. + */ +void system_notify_ap_boot(void); + #endif /* __CROS_EC_SYSTEM_CHIP_H */ |