summaryrefslogtreecommitdiff
path: root/include/mkbp_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mkbp_info.h')
-rw-r--r--include/mkbp_info.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/mkbp_info.h b/include/mkbp_info.h
new file mode 100644
index 0000000000..64daa52dce
--- /dev/null
+++ b/include/mkbp_info.h
@@ -0,0 +1,22 @@
+/* Copyright 2022 The ChromiumOS Authors.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* MKBP info host command for Chrome EC */
+
+#ifndef __CROS_EC_MKBP_INFO_H
+#define __CROS_EC_MKBP_INFO_H
+
+/**
+ * Board specific function to set support volume buttons.
+ *
+ * Although we're able to define CONFIG_VOLUME_BUTTONS for ec volume buttons,
+ * some boards might need to configure this settings at run time by several
+ * cases such as sharing the firmware with different designs.
+ *
+ * @return 1 if volume buttons supported else 0
+ */
+__override_proto int mkbp_support_volume_buttons(void);
+
+#endif /* __CROS_EC_MKBP_INFO_H */