[U-Boot] [PATCH 2/4] sunxi: Avoid any assumption between musb gadget and host but fallback to host
Paul Kocialkowski
contact at paulk.fr
Sun Mar 15 18:27:45 CET 2015
musb might be used in gadget mode on sunxi, so we don't want to assume anything
related to host mode, especially USB keyboard support.
However, in case gadget mode is not explicitly used, fallback to host mode.
Signed-off-by: Paul Kocialkowski <contact at paulk.fr>
---
board/sunxi/Kconfig | 2 +-
include/configs/sunxi-common.h | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index 9d0eb91..0b6a492 100644
--- a/board/sunxi/Kconfig
+++ b/board/sunxi/Kconfig
@@ -436,7 +436,7 @@ config USB_MUSB_SUNXI
config USB_KEYBOARD
boolean "Enable USB keyboard support"
- default y
+ default n
---help---
Say Y here to add support for using a USB keyboard (typically used
in combination with a graphical console).
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 1f7a1cb..ffd9f5c 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -297,13 +297,16 @@ extern int soft_i2c_gpio_scl;
#endif
#ifdef CONFIG_USB_MUSB_SUNXI
+#ifndef CONFIG_MUSB_GADGET
#define CONFIG_MUSB_HOST
+#endif
#define CONFIG_MUSB_PIO_ONLY
#endif
-#if defined CONFIG_USB_EHCI || defined CONFIG_USB_MUSB_SUNXI
+#if defined CONFIG_USB_EHCI || defined CONFIG_MUSB_HOST
#define CONFIG_CMD_USB
#define CONFIG_USB_STORAGE
+#define CONFIG_USB_KEYBOARD
#endif
#ifdef CONFIG_USB_KEYBOARD
--
1.9.1
More information about the U-Boot
mailing list