summaryrefslogtreecommitdiff
path: root/baseboard/volteer/cbi_ssfc.h
diff options
context:
space:
mode:
Diffstat (limited to 'baseboard/volteer/cbi_ssfc.h')
-rw-r--r--baseboard/volteer/cbi_ssfc.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/baseboard/volteer/cbi_ssfc.h b/baseboard/volteer/cbi_ssfc.h
index e3431129bc..225ff8670e 100644
--- a/baseboard/volteer/cbi_ssfc.h
+++ b/baseboard/volteer/cbi_ssfc.h
@@ -1,4 +1,4 @@
-/* Copyright 2020 The Chromium OS Authors. All rights reserved.
+/* Copyright 2020 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -40,12 +40,19 @@ enum ec_ssfc_lightbar {
SSFC_LIGHTBAR_12_LED = 2
};
+/*
+ * Keyboard Type (Bit 12)
+ */
+enum ec_ssfc_keyboard { SSFC_KEYBOARD_DEFAULT = 0, SSFC_KEYBOARD_GAMING = 1 };
+
union volteer_cbi_ssfc {
struct {
enum ec_ssfc_base_sensor base_sensor : 3;
enum ec_ssfc_lid_sensor lid_sensor : 3;
enum ec_ssfc_lightbar lightbar : 2;
- uint32_t reserved_2 : 24;
+ uint32_t reserved_2 : 4;
+ enum ec_ssfc_keyboard keyboard : 1;
+ uint32_t reserved_3 : 19;
};
uint32_t raw_value;
};
@@ -71,4 +78,11 @@ enum ec_ssfc_lid_sensor get_cbi_ssfc_lid_sensor(void);
*/
enum ec_ssfc_lightbar get_cbi_ssfc_lightbar(void);
+/**
+ * Get keyboard type from SSFC_CONFIG.
+ *
+ * @return the keyboard type.
+ */
+enum ec_ssfc_keyboard get_cbi_ssfc_keyboard(void);
+
#endif /* _Volteer_CBI_SSFC__H_ */