summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-11-15 16:35:12 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-21 18:22:56 -0800
commitbcbeb89da1b1a906ba913a5a08ada343342781d7 (patch)
treeca2458f602eef3e113e82fd95a07aee92e9b2b38 /core
parent88685f6a667f1a3b283fd29d4f4269766be06e72 (diff)
downloadchrome-ec-bcbeb89da1b1a906ba913a5a08ada343342781d7.tar.gz
driver: bmi160: Remove unnecessary delay
Rereading the specification, remove delays when not needed: - When we move the sensor out of suspend, we need to wait before using it (BMI160 spec: 2.11.38 Register (0x7E) CMD) When we do a softreset, we need just need to wait 300us for the sensor to go in suspend, we will wait only when we change the rate and enable the sensor. - The timeout at fifo flush is not needed, it was added for debugging. - Remove unnecessary printf when initializing the magnetometer. BUG=chrome-os-partner:59188 BRANCH=glados, reef, strago TEST=On reef, check the EC boot faster: time spend initializing the sensors decreased from 240ms to 133ms Change-Id: Ia80232da42aa705df819a4988da483a344ffcbb4 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/411964 Commit-Ready: David Hendricks <dhendrix@chromium.org> Tested-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org>
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions