cr50: decrease sleep delay to 20 seconds after init and resume

3 minutes is too long to delay sleep after init and resume from wake
pin. This change decreases the delay to 20 seconds

BUG=none
BRANCH=none
TEST=manual
	Use the cr50 power consumption to verify the sleep state
		active 50mW
		sleep 7mW
		deep sleep 1mW

	make sure suzyq is disconnected

	use uart to reboot cr50

	run 'reboot ap-off' on the EC console

	make sure cr50 enters deep sleep at second 20

	use uart to wakeup cr50 make sure it stays awake for 20 seconds
	and then enters deep sleep.

	wake it up again using uart and run 'idle s'

	verify it enters regular sleep after 20 seconds

	use uart to wake it up, make sure it does a regular sleep resume
	and then goes back into regular sleep after 20 seconds

Change-Id: I65791bd3d915ceda11dc29b74e150ba589f2fa9e
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/430388
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
Mary Ruthven
2017-01-18 14:51:05 -08:00
committed by chrome-bot
parent 767a12c659
commit 423eac3ac1
2 changed files with 3 additions and 3 deletions

View File

@@ -290,7 +290,7 @@ void pmu_wakeup_interrupt(void)
* Delay sleep long enough for a SPI slave transaction to start
* or for the system to be reset.
*/
delay_sleep_by(3 * MINUTE);
delay_sleep_by(20 * SECOND);
/*
* If sys_rst_l or plt_rst_l (if signal is present) is

View File

@@ -211,8 +211,8 @@ void __idle(void)
if (!idle_action)
idle_action = idle_default;
/* Disable sleep until 3 minutes after init */
delay_sleep_by(3 * MINUTE);
/* Disable sleep for 20 seconds after init */
delay_sleep_by(20 * SECOND);
while (1) {