summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/poppy/base_detect_poppy.c7
-rw-r--r--board/poppy/board.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/board/poppy/base_detect_poppy.c b/board/poppy/base_detect_poppy.c
index a049b41acd..dc4341d51a 100644
--- a/board/poppy/base_detect_poppy.c
+++ b/board/poppy/base_detect_poppy.c
@@ -5,6 +5,7 @@
/* Poppy/Soraka base detection code */
+#include "acpi.h"
#include "adc.h"
#include "adc_chip.h"
#include "board.h"
@@ -96,6 +97,12 @@ static void base_detect_change(enum base_status status)
gpio_set_level(GPIO_PP3300_DX_BASE, connected);
tablet_set_mode(!connected);
current_base_status = status;
+
+ if (connected)
+ acpi_dptf_set_profile_num(DPTF_PROFILE_BASE_ATTACHED);
+ else
+ acpi_dptf_set_profile_num(DPTF_PROFILE_BASE_DETACHED);
+
}
/* Measure detection pin pulse duration (used to wake AP from deep S3). */
diff --git a/board/poppy/board.h b/board/poppy/board.h
index 8b0a0f5944..c7beac8fcf 100644
--- a/board/poppy/board.h
+++ b/board/poppy/board.h
@@ -22,6 +22,9 @@
#define CONFIG_BUTTON_TRIGGERED_RECOVERY
#define CONFIG_DETACHABLE_BASE
#define CONFIG_DPTF
+#ifndef BOARD_LUX
+#define CONFIG_DPTF_MULTI_PROFILE
+#endif
#define CONFIG_EMULATED_SYSRQ
#define CONFIG_FLASH_SIZE 0x80000
#define CONFIG_FPU