diff options
author | Jonathan Brandmeyer <jbrandmeyer@chromium.org> | 2018-06-07 11:04:20 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-06-28 12:47:06 -0700 |
commit | 616e73051406c6aac806a6abd17018149376e2aa (patch) | |
tree | 015cc0754c916ea58ced8626c8ce20e4bb7ec4fe /baseboard/grunt | |
parent | b6f2187bb736cdbebc369de54aa749cd1775e719 (diff) | |
download | chrome-ec-616e73051406c6aac806a6abd17018149376e2aa.tar.gz |
motion_sense: Provide option to defer resume actions.
See also crrev.com/c/433338. Grunt requires a delay on startup to
account for the slew rate on the sensor power rails. Similar to the
delay option for suspend actions, also provide a delay option for resume
actions.
BUG=b:79159777, b:35550738
TEST=KX022 init on S5->S3->S0 succeeds on both grunt clamshell and grunt
convertible SKUs.
BRANCH=none
Signed-off-by: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Change-Id: I061c4c148c5c31c09b8d0c1d40aef1ba1e3d344b
Reviewed-on: https://chromium-review.googlesource.com/1091211
Commit-Ready: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Tested-by: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'baseboard/grunt')
-rw-r--r-- | baseboard/grunt/baseboard.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/baseboard/grunt/baseboard.h b/baseboard/grunt/baseboard.h index 252d731f7f..e894a81f31 100644 --- a/baseboard/grunt/baseboard.h +++ b/baseboard/grunt/baseboard.h @@ -147,6 +147,11 @@ #define CONFIG_LID_ANGLE_UPDATE #define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL #define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL +/* + * Slew rate on the PP1800_SENSOR load switch requires a short delay on startup. + */ +#undef CONFIG_MOTION_SENSE_RESUME_DELAY_US +#define CONFIG_MOTION_SENSE_RESUME_DELAY_US (10 * MSEC) /* Thermal */ #define CONFIG_TEMP_SENSOR_SB_TSI |