aboutsummaryrefslogtreecommitdiff
path: root/include/button.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-02-13 17:31:11 -0500
committerTom Rini <trini@konsulko.com>2024-02-13 17:32:17 -0500
commit0b66c54a97320956b837f61216debfb50c0ffec6 (patch)
tree4a641d6853dd8dd7fd7586b6be8d67c418717204 /include/button.h
parent73b5b47dd5b546d0b9106bcca54c72815380e6d3 (diff)
parentea7d3eec1e6e6541db68bf48a1314410e06cd9de (diff)
Merge branch '2024-02-13-assorted-updates'
- Add the button command patch, update MAINTAINERS entry for a platform, fix a problem with the hash command, fix a problem on K3 platforms and revert a change on verdin-am62.
Diffstat (limited to 'include/button.h')
-rw-r--r--include/button.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/button.h b/include/button.h
index 207f4a0f4d..8d38e52132 100644
--- a/include/button.h
+++ b/include/button.h
@@ -74,4 +74,13 @@ enum button_state_t button_get_state(struct udevice *dev);
*/
int button_get_code(struct udevice *dev);
+#if IS_ENABLED(CONFIG_BUTTON_CMD)
+/* Process button command mappings specified in the environment,
+ * running the commands for buttons which are pressed
+ */
+void process_button_cmds(void);
+#else
+static inline void process_button_cmds(void) {}
+#endif /* CONFIG_BUTTON_CMD */
+
#endif