diff options
author | Furquan Shaikh <furquan@google.com> | 2018-10-19 15:34:33 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-30 01:04:57 -0700 |
commit | 09a5e0a9398a1ca9e953969d5c10d3b60cda8eac (patch) | |
tree | 609fd9dfbc271cf71513e52df5d4473749e87e70 /common/dptf.c | |
parent | 23a82485cfd2e893fa147dd0fd877ff783316c8f (diff) | |
download | chrome-ec-09a5e0a9398a1ca9e953969d5c10d3b60cda8eac.tar.gz |
dptf: Get rid of CONFIG_DPTF_DEVICE_ORIENTATION
CONFIG_DPTF_DEVICE_ORIENTATION was added to indicate mode change to
the host to allow it to read the tablet mode flag from shared EC
memory and select the right DPTF table to load (if supported).
However, this config seems unnecessary because of the following
reasons:
1. Host sets SCI mask to indicate to the EC which events it wants to
process. Thus, even if the EC sets mode change flag, it will not be
notified to the host unless it supports mode change event.
2. Additionally, if host supports mode change event, but does not
support multiple DPTF tables, then EC ACPI code takes care of ensuring
that there is a thermal event handler present to reload tables.
3. CONFIG_DPTF_DEVICE_ORIENTATION was defined for almost all new x86
boards.
BUG=b:117844490
BRANCH=None
TEST=make -j buildall
Change-Id: Ic4097ae047e2d559673a321da4df86514f902993
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1292359
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'common/dptf.c')
-rw-r--r-- | common/dptf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/dptf.c b/common/dptf.c index 6833356dec..a391732905 100644 --- a/common/dptf.c +++ b/common/dptf.c @@ -103,7 +103,7 @@ void dptf_set_temp_threshold(int sensor_id, int temp, int idx, int enable) } } -#ifdef CONFIG_DPTF_DEVICE_ORIENTATION +#ifdef CONFIG_TABLET_MODE /* * When tablet mode changes, send an event to ACPI to retrieve * tablet mode value and send an event to the kernel. |