summaryrefslogtreecommitdiff
path: root/baseboard/dedede/cbi_fw_config.h
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2020-07-16 12:17:24 +0800
committerCommit Bot <commit-bot@chromium.org>2020-07-17 14:12:25 +0000
commita49d1a8625e9a27b9b78b2b3d1991028b4ca0fba (patch)
tree59a519e7d196b9faf2c0ad2ade5c38fa69179797 /baseboard/dedede/cbi_fw_config.h
parent7fae3ff59d0aadaefee12a300b0af29973969ba5 (diff)
downloadchrome-ec-a49d1a8625e9a27b9b78b2b3d1991028b4ca0fba.tar.gz
dedede: add FW_CONFIG field for tablet mode present or not
This patch adds FW_CONFIG field for tablet mode present or not. BUG=none BRANCH=none TEST=make buildall -j Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I92432066dee14bb79d882daa9da5d09f4daaecb1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2299610 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'baseboard/dedede/cbi_fw_config.h')
-rw-r--r--baseboard/dedede/cbi_fw_config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/baseboard/dedede/cbi_fw_config.h b/baseboard/dedede/cbi_fw_config.h
index cca9af68b4..aa3521cab8 100644
--- a/baseboard/dedede/cbi_fw_config.h
+++ b/baseboard/dedede/cbi_fw_config.h
@@ -23,6 +23,17 @@ enum fw_config_db {
#define FW_CONFIG_DB_OFFSET 0
#define FW_CONFIG_DB_MASK GENMASK(3, 0)
+/*
+ * Tablet Mode (1 bit)
+ */
+enum fw_config_tablet_mode_type {
+ TABLET_MODE_ABSENT = 0,
+ TABLET_MODE_PRESENT = 1,
+};
+#define FW_CONFIG_DB_OFFSET_TABLET_MODE_OFFSET 10
+#define FW_CONFIG_TABLET_MODE_MASK GENMASK(10, 10)
+
enum fw_config_db get_cbi_fw_config_db(void);
+enum fw_config_tablet_mode_type get_cbi_fw_config_tablet_mode(void);
#endif /* _DEDEDE_CBI_FW_CONFIG__H_ */