summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-11-01 14:34:45 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-11-15 02:16:02 -0800
commit8c506ad9954b783a50d0785a117c28e3949c2695 (patch)
treed025a7042a3783e0a7e35888428a806442b9700c /include
parent3b41a2b157de0a48160745d632163f7cc400c49b (diff)
downloadchrome-ec-8c506ad9954b783a50d0785a117c28e3949c2695.tar.gz
motion_lid: Add support for setting DPTF profile based on lid angle
This change adds support in motion_lid driver to set DPTF profile number based on the lid angle, only when: 1. CONFIG_DPTF_MULTI_PROFILE is selected by board 2. If board does not have a hall sensor to indicate completely flipped mode. This is done by adding another new config option CONFIG_DPTF_MOTION_LID_NO_HALL_SENSOR which will have to be selected by boards to indicate to motion_lid driver to set DPTF profile numbers. BUG=b:117844490 CQ-DEPEND=CL:1295851 BRANCH=None TEST=make -j buildall Change-Id: If695429240e0645e3d19eeb9073bd00bac580705 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/1295852 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 7017a73a25..a4aecc1ffe 100644
--- a/include/config.h
+++ b/include/config.h
@@ -2987,6 +2987,13 @@
#undef CONFIG_DPTF
/*
+ * If defined, this indicates to the motion lid driver that the board does not
+ * have any hall sensor and hence DPTF profile selection is required to be done
+ * based on lid angle.
+ */
+#undef CONFIG_DPTF_MOTION_LID_NO_HALL_SENSOR
+
+/*
* If defined, device supports multiple DPTF profiles depending upon device mode
* e.g. clamshell v/s 360-degree flipped mode or base detached v/s attached
* mode.