mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 02:51:26 +00:00
board: reef_it8320: Report device orientation isn't tablet mode
We need to response EC ACPI device orientation command or keyboard/trackpad didn't work on OS image version R58 and after. BRANCH=none BUG=none TEST=keyboard and trackpad work on R58 and after. Change-Id: I49f9c90e73a5e529eb228169e4148f4dcd4a45e6 Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/689715 Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
@@ -311,11 +311,21 @@ static void chipset_pre_init(void)
|
||||
}
|
||||
DECLARE_HOOK(HOOK_CHIPSET_PRE_INIT, chipset_pre_init, HOOK_PRIO_DEFAULT);
|
||||
|
||||
static void board_set_tablet_mode(void)
|
||||
{
|
||||
/*
|
||||
* Always report device isn't in tablet mode because
|
||||
* our id is clamshell and no TABLET_MODE_L pin
|
||||
*/
|
||||
tablet_set_mode(0);
|
||||
}
|
||||
|
||||
/* Initialize board. */
|
||||
static void board_init(void)
|
||||
{
|
||||
int port;
|
||||
|
||||
board_set_tablet_mode();
|
||||
/* Enable charger interrupts */
|
||||
gpio_enable_interrupt(GPIO_CHARGER_INT_L);
|
||||
|
||||
|
||||
@@ -115,9 +115,11 @@
|
||||
#define CONFIG_LID_SWITCH
|
||||
#define CONFIG_LOW_POWER_IDLE
|
||||
#define CONFIG_POWER_SIGNAL_INTERRUPT_STORM_DETECT_THRESHOLD 30
|
||||
#define CONFIG_TABLET_MODE
|
||||
#define CONFIG_TEMP_SENSOR
|
||||
#define CONFIG_THERMISTOR_NCP15WB
|
||||
#define CONFIG_DPTF
|
||||
#define CONFIG_DPTF_DEVICE_ORIENTATION
|
||||
#define CONFIG_SCI_GPIO GPIO_PCH_SCI_L
|
||||
#define CONFIG_VBOOT_HASH
|
||||
#define CONFIG_BACKLIGHT_LID
|
||||
|
||||
Reference in New Issue
Block a user