diff options
author | xiong.huang <xiong.huang@bitland.corp-partner.google.com> | 2020-04-20 20:46:18 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-06 08:31:42 +0000 |
commit | 78f281827f03f83ec70a3b7b335d8b71f94b6525 (patch) | |
tree | 64514568ac68617955003bb180f715c7819ffd10 /baseboard/volteer/baseboard.h | |
parent | 32b54e8ad9d09f994c301d6d6ec822692bb1919a (diff) | |
download | chrome-ec-78f281827f03f83ec70a3b7b335d8b71f94b6525.tar.gz |
malefor: enable lid angle
Enable lid angle function to make peripherals get correct state on
convertible SKUs.
BUG=b:152434719
BRANCH=none
TEST=boot malefor, test keyboard function when hinge is at 135, 180,
270, 360 degree when set bit #4 of CBI fw_config. No sensor data when
clear bit #4 of CBI fw_config.
Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com>
Change-Id: I83797a4d4a16b2c2903ac7c6d9cc5597a9855ac0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2156685
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'baseboard/volteer/baseboard.h')
-rw-r--r-- | baseboard/volteer/baseboard.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/baseboard/volteer/baseboard.h b/baseboard/volteer/baseboard.h index 7ce7acd673..f68fc431f6 100644 --- a/baseboard/volteer/baseboard.h +++ b/baseboard/volteer/baseboard.h @@ -279,6 +279,21 @@ enum usb_db_id { #define CBI_FW_CONFIG_USB_DB_TYPE(bits) \ (((bits) & CBI_FW_CONFIG_USB_DB_MASK) >> CBI_FW_CONFIG_USB_DB_SHIFT) +/* + * Tablet Mode (1 bit) + * + * ec_config_has_tablet_mode() will return 1 is present or 0 + */ +enum ec_cfg_tablet_mode_type { + TABLET_MODE_NO = 0, + TABLET_MODE_YES = 1, +}; +#define EC_CFG_TABLET_MODE_L 11 +#define EC_CFG_TABLET_MODE_H 11 +#define EC_CFG_TABLET_MODE_MASK \ + GENMASK(EC_CFG_TABLET_MODE_H,\ + EC_CFG_TABLET_MODE_L) + extern enum gpio_signal ps8xxx_rst_odl; void board_reset_pd_mcu(void); @@ -297,6 +312,8 @@ unsigned char get_board_id(void); */ __override_proto void config_volteer_gpios(void); +enum ec_cfg_tablet_mode_type ec_config_has_tablet_mode(void); + #endif /* !__ASSEMBLER__ */ #endif /* __CROS_EC_BASEBOARD_H */ |