diff options
author | Furquan Shaikh <furquan@chromium.org> | 2018-01-25 15:49:37 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-29 16:38:32 -0800 |
commit | 8160d1ae86c4306b61c1636e99178423f8a7a0d6 (patch) | |
tree | 22cecfed5af4fe12399bb6526fe42921967a3c7c /board/poppy | |
parent | a4e1e476308ed717c0909c0a67e9a45152371dd0 (diff) | |
download | chrome-ec-8160d1ae86c4306b61c1636e99178423f8a7a0d6.tar.gz |
poppy: Enable dptf device orientation
This is required to support mode-aware DPTF. Also, there is no need to
send mode change event in board specific code as that is already done
by dptf common code.
BUG=b:65467566
BRANCH=None
TEST=Verified that trip point temperatures get updated in the OS
depending upon the device mode.
Change-Id: I854628bcde755bdb1c6c1b73fbfa0948e1d7e420
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/887725
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/poppy')
-rw-r--r-- | board/poppy/base_detect_lux.c | 1 | ||||
-rw-r--r-- | board/poppy/base_detect_poppy.c | 1 | ||||
-rw-r--r-- | board/poppy/board.c | 2 | ||||
-rw-r--r-- | board/poppy/board.h | 1 |
4 files changed, 1 insertions, 4 deletions
diff --git a/board/poppy/base_detect_lux.c b/board/poppy/base_detect_lux.c index 749a59833d..0b9432a3bb 100644 --- a/board/poppy/base_detect_lux.c +++ b/board/poppy/base_detect_lux.c @@ -123,7 +123,6 @@ static void base_detect_change(enum base_status status) task_wake(TASK_ID_CHARGER); tablet_set_mode(!connected); - host_set_single_event(EC_HOST_EVENT_MODE_CHANGE); current_base_status = status; } diff --git a/board/poppy/base_detect_poppy.c b/board/poppy/base_detect_poppy.c index 0361e89c66..4a220af993 100644 --- a/board/poppy/base_detect_poppy.c +++ b/board/poppy/base_detect_poppy.c @@ -93,7 +93,6 @@ static void base_detect_change(enum base_status status) CPRINTS("Base %sconnected", connected ? "" : "not "); gpio_set_level(GPIO_PP3300_DX_BASE, connected); - host_set_single_event(EC_HOST_EVENT_MODE_CHANGE); tablet_set_mode(!connected); current_base_status = status; } diff --git a/board/poppy/board.c b/board/poppy/board.c index 9ed130fc03..0db69536d1 100644 --- a/board/poppy/board.c +++ b/board/poppy/board.c @@ -141,7 +141,6 @@ void anx74xx_cable_det_interrupt(enum gpio_signal signal) static int command_attach_base(int argc, char **argv) { - host_set_single_event(EC_HOST_EVENT_MODE_CHANGE); tablet_set_mode(0); return EC_SUCCESS; } @@ -150,7 +149,6 @@ DECLARE_CONSOLE_COMMAND(attachbase, command_attach_base, static int command_detach_base(int argc, char **argv) { - host_set_single_event(EC_HOST_EVENT_MODE_CHANGE); tablet_set_mode(1); return EC_SUCCESS; } diff --git a/board/poppy/board.h b/board/poppy/board.h index 1ac8b9237c..5e005f6d42 100644 --- a/board/poppy/board.h +++ b/board/poppy/board.h @@ -21,6 +21,7 @@ #define CONFIG_BOARD_SPECIFIC_VERSION #define CONFIG_BUTTON_TRIGGERED_RECOVERY #define CONFIG_DPTF +#define CONFIG_DPTF_DEVICE_ORIENTATION #define CONFIG_EMULATED_SYSRQ #define CONFIG_FLASH_SIZE 0x80000 #define CONFIG_FPU |