aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2011-10-18 21:19:17 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-04-25 07:54:06 -0600
commit61fbc35cf2df28798ea6d4632c7c3d177a009d28 (patch)
tree67dcf8a1ab3b7cdcfb93f90b622393ce7babaa03 /include
parent425f9c2137b4124326afaf438cb9250f0c002113 (diff)
downloadu-boot-linaro-stable-61fbc35cf2df28798ea6d4632c7c3d177a009d28.tar.gz
OMAP4: Panda: Add usb peripheral boot
Stripped down fastboot protocol for now but could be just about anything. Will revisit once a fastboot or dfu implementation hits upstream. Signed-off-by: John Rigby <john.rigby@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/omap4_common.h13
-rw-r--r--include/usb/musb_udc.h4
2 files changed, 16 insertions, 1 deletions
diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h
index d7007605a..cf3dbf220 100644
--- a/include/configs/omap4_common.h
+++ b/include/configs/omap4_common.h
@@ -116,7 +116,9 @@
/* USB device configuration */
#define CONFIG_USB_DEVICE 1
+#ifndef CONFIG_SPL_USB
#define CONFIG_USB_TTY 1
+#endif
#define CONFIG_SYS_CONSOLE_IS_IN_ENV 1
/* Flash */
@@ -288,7 +290,16 @@
#define CONFIG_SPL_LIBCOMMON_SUPPORT
#define CONFIG_SPL_LIBDISK_SUPPORT
#define CONFIG_SPL_I2C_SUPPORT
-#ifndef CONFIG_USB_SPL
+/*
+ * TODO: Fix this:
+ * Because of spl image size issues, usb peripheral boot
+ * and mmc/fat boot can not be enabled at the same time
+ */
+#ifdef CONFIG_SPL_USB
+#define CONFIG_SPL_DSU_SUPPORT
+#define CONFIG_SPL_USB_SUPPORT
+#define CONFIG_SPL_MUSB_SUPPORT
+#else
#define CONFIG_SPL_MMC_SUPPORT
#define CONFIG_SPL_FAT_SUPPORT
#endif
diff --git a/include/usb/musb_udc.h b/include/usb/musb_udc.h
index be808fd51..03cc2bd08 100644
--- a/include/usb/musb_udc.h
+++ b/include/usb/musb_udc.h
@@ -50,4 +50,8 @@ int udc_init(void);
#endif /* CONFIG_USB_TTY */
+#ifdef CONFIG_SPL_DSU_SUPPORT
+#define EP0_MAX_PACKET_SIZE 64 /* MUSB_EP0_FIFOSIZE */
+#endif
+
#endif /* __MUSB_UDC_H__ */