[U-Boot] [PATCH 2/2] tegra: seaboard: Enable USB keyboard

Allen Martin amartin at nvidia.com
Mon Oct 22 23:39:30 CEST 2012


Enable USB keyboard for the springbank variant of seaboard

Signed-off-by: Allen Martin <amartin at nvidia.com>
---
 include/configs/seaboard.h       |    5 ++++-
 include/configs/tegra20-common.h |    5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h
index 0727a4c..9e27050 100644
--- a/include/configs/seaboard.h
+++ b/include/configs/seaboard.h
@@ -33,6 +33,9 @@
 #define CONFIG_TPS6586X_POWER
 #define CONFIG_TEGRA_CLOCK_SCALING
 
+/* Enable USB keyboard */
+#define CONFIG_USB_KEYBOARD
+
 #include "tegra20-common.h"
 
 /* Enable fdt support for Seaboard. Flash the image in u-boot-dtb.bin */
@@ -99,7 +102,7 @@
 #define CONFIG_KEYBOARD
 
 #undef TEGRA_DEVICE_SETTINGS
-#define TEGRA_DEVICE_SETTINGS	"stdin=serial,tegra-kbc\0" \
+#define TEGRA_DEVICE_SETTINGS	"stdin=serial,tegra-kbc,usbkbd\0" \
 				"stdout=serial\0" \
 				"stderr=serial\0"
 
diff --git a/include/configs/tegra20-common.h b/include/configs/tegra20-common.h
index d7d6dc3..1448888 100644
--- a/include/configs/tegra20-common.h
+++ b/include/configs/tegra20-common.h
@@ -102,6 +102,11 @@
 #define CONFIG_EHCI_IS_TDI
 #define CONFIG_EHCI_DCACHE
 
+#ifdef CONFIG_USB_KEYBOARD
+#define CONFIG_SYS_USB_EVENT_POLL
+#define CONFIG_PREBOOT			"usb start"
+#endif /* CONFIG_USB_KEYBOARD */
+
 /* Total I2C ports on Tegra20 */
 #define TEGRA_I2C_NUM_CONTROLLERS	4
 
-- 
1.7.10.4



More information about the U-Boot mailing list