summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Pan <harry.pan@intel.com>2018-09-23 21:16:04 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-10-03 02:52:32 -0700
commit641bb517ea8f9cd6fef960f1ce3dd0c4a322e1a6 (patch)
tree23ad7c5a8dad4c448b1c498ecfe3165fb211e670
parent99d9bd68c45045ec3004ca420c462bab32addfeb (diff)
downloadchrome-ec-641bb517ea8f9cd6fef960f1ce3dd0c4a322e1a6.tar.gz
octopus: motion_sense: provide option to defer the sensor resume actions
It is observed that the lid accelerator not apprears on the i2c bus which causes the i2c master got NACK in multiple retries during the S5 (and G3) to S0 power sequence. (i.e. [10106.692955 Lid Accel: 0: init failed: 1]) Learnt from the CL:1091211, refer to the CL:433338 as well, the patch is similar to the delay option for suspend actions, provide a delay option for the resume actions as well. BRANCH=master BUG=b:116170194 TEST=Examining EC console for KX022 init succeeds in S5->S3->S0 path on octopus child boards w/ KX022. (i.e. [10039.971601 Lid Accel: MS Done Init type:0x0 range:4]) Change-Id: Iae4f0fd1e6c46c1b7e12a202a517d8f3b3d82c40 Signed-off-by: Harry Pan <harry.pan@intel.com> Reviewed-on: https://chromium-review.googlesource.com/1239974 Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r--baseboard/octopus/baseboard.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/baseboard/octopus/baseboard.h b/baseboard/octopus/baseboard.h
index f1d3bc0d0f..8c4ef9c961 100644
--- a/baseboard/octopus/baseboard.h
+++ b/baseboard/octopus/baseboard.h
@@ -252,6 +252,11 @@
#define CONFIG_TABLET_MODE
#define CONFIG_TABLET_SWITCH
#define TABLET_MODE_GPIO_L GPIO_TABLET_MODE_L
+/*
+ * 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)
#ifndef __ASSEMBLER__