summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-04-01 07:40:30 +1100
committerCommit Bot <commit-bot@chromium.org>2021-04-01 21:32:13 +0000
commitf38daf612e9bd788791191dfd17940d757d303fa (patch)
tree2c2ce0120df584cecebca2c93ea4d58bdc796081 /board
parent27c3bf4011f017b296fe3c49ae35ff6d9960b962 (diff)
downloadchrome-ec-f38daf612e9bd788791191dfd17940d757d303fa.tar.gz
add 'atboot' arg to rddkeepalivestabilize-13895.B-cr50_stab
Add 'atboot' arg to rddkeepalive that can be used to store rddkeepalive across cr50 resets. The atboot flag gets cleared with rddkeepalive disable. BUG=b:144724216 TEST=manual # Verify 'rddkeepalive disable' is unchanged rddkeepalive disable Using actual Rdd state rddkeepalive Rdd: connected # Verify 'rddkeepalive enable' is unchanged rddkeepalive enable Forcing Rdd detect keepalive rddkeepalive Rdd: keepalive # Verify 'rddkeepalive disable' disables keepalive rddkeepalive disable Using actual Rdd state rddkeepalive Rdd: connected ccd ... Flags: 0x000000 # Verify 'rddkeepalive enable atboot' enables keepalive and sets # the atboot flag. rddkeepalive enable atboot Forcing Rdd detect keepalive atboot. rddkeepalive Rdd: keepalive (atboot) # check the ccd rddkeepalive atboot flag (0x80000) ccd ... Flags: 0x080000 reboot ... rddkeepalive Rdd: keepalive (atboot) ccd ... Flags: 0x080000 # Verify this new string doesn't break dut-control dut-control cr50.ccd_keepalive_en ccd_keepalive_en:on # 'rddkeepalive enable' doesn't touch the atboot flag rddkeepalive enable Forcing Rdd detect keepalive rddkeepalive Rdd: keepalive (atboot) # 'rddkeepalive disable' clears it. rddkeepalive disable Using actual Rdd state rddkeepalive Rdd: connected Change-Id: I10227e335a5de6ed73290ff5be2e65892913de35 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2799441 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/cr50/board.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/cr50/board.c b/board/cr50/board.c
index 4dc20f8b8c..047613969a 100644
--- a/board/cr50/board.c
+++ b/board/cr50/board.c
@@ -849,6 +849,7 @@ static void board_init(void)
* used for battery cutoff software support on detachable devices.
*/
init_ac_detect();
+ /* Reads ccd_flag. Must be done after ccd_config_init. */
init_rdd_state();
/* Initialize write protect. Must be after CCD config init. */