]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: tegra-common-post: add GPIO keyboard as STDIN device
authorSvyatoslav Ryhel <clamor95@gmail.com>
Fri, 30 Jun 2023 07:29:00 +0000 (10:29 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 30 Jun 2023 13:20:37 +0000 (15:20 +0200)
GPIO keyboard is used on many newly upstreamed devices.

Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # ASUS Grouper E1565
Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # LG P895 T30
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/configs/tegra-common-post.h

index 991ffbb7dff0827c17fe1998025c0d98f32c4a2a..2d5095639ac38e3dbfdc420bff6fdce077891169 100644 (file)
 #define STDIN_KBD_USB ""
 #endif
 
+#ifdef CONFIG_BUTTON_KEYBOARD
+#define STDIN_BTN_KBD ",button-kbd"
+#else
+#define STDIN_BTN_KBD ""
+#endif
+
 #ifdef CONFIG_VIDEO
 #define STDOUT_VIDEO ",vidconsole"
 #else
@@ -48,7 +54,7 @@
 #endif
 
 #define TEGRA_DEVICE_SETTINGS \
-       "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC "\0" \
+       "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB STDOUT_CROS_EC STDIN_BTN_KBD "\0" \
        "stdout=serial" STDOUT_VIDEO "\0" \
        "stderr=serial" STDOUT_VIDEO "\0" \
        ""