diff options
author | Alexandru M Stan <amstan@chromium.org> | 2018-01-04 11:28:11 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-14 04:06:53 -0700 |
commit | 4a1d2e3daf005766dc523216b8c3639fcd9595a2 (patch) | |
tree | 5665e76b5281a997edc9e38a6f379a5af5bd2bea /driver/sync.h | |
parent | b63595258df33b0c31effe979feb4bfe884cc9fb (diff) | |
download | chrome-ec-4a1d2e3daf005766dc523216b8c3639fcd9595a2.tar.gz |
sensors: Add driver for SYNC
Useful for recording the exact time a gpio interrupt happened in the
context of sensors.
Adding it for camera vsync purposes.
BUG=b:67743747
TEST=With next patch see it work on scarlet.
BRANCH=master
Change-Id: Ic8e8fb444e08200e5d8daded8b4a5920b13431ac
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/850580
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'driver/sync.h')
-rw-r--r-- | driver/sync.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/driver/sync.h b/driver/sync.h new file mode 100644 index 0000000000..1f6115a086 --- /dev/null +++ b/driver/sync.h @@ -0,0 +1,18 @@ +/* Copyright 2017 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + * + * Sync event driver. + * Useful for recording the exact time a gpio interrupt happened in the + * context of sensors. Originally created for a camera vsync signal. + */ + +#ifndef __CROS_EC_VSYNC_H +#define __CROS_EC_VSYNC_H + +extern const struct accelgyro_drv sync_drv; + +void sync_interrupt(enum gpio_signal signal); + +#endif /* __CROS_EC_VSYNC_H */ + |