[U-Boot-Users] [PATCH 2/14] Update usbdcore_omap1510.h to unbind it from usbtty

Bryan O'Donoghue bodonoghue at codehermit.ie
Fri May 26 23:05:53 CEST 2006


	Signed-off-by: Bryan O'Donoghue <bodonoghue at codehermit.ie>

	modified: include/usbdcore_omap1510.h
		Moved some defines from usbtty.h to here.
		Added udc_irq and udc_set_nak, udc_unset_nak to facilitate
		a more genericised usbtty and USB flow control respectively.
		udc_set_nak and udc_unset_nak should be implemented by someone
		with access to omap hardware

---

 include/usbdcore_omap1510.h |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

2404435a7b07a254034679b57511332ab98383d5
diff --git a/include/usbdcore_omap1510.h b/include/usbdcore_omap1510.h
--- a/include/usbdcore_omap1510.h
+++ b/include/usbdcore_omap1510.h
@@ -161,10 +161,20 @@
 #define UDC_VBUS_CTRL	    (1 << 19)
 #define UDC_VBUS_MODE	    (1 << 18)
 
-
-void omap1510_udc_irq(void);
-void omap1510_udc_noniso_irq(void);
-
+/* OMAP Endpoint parameters */
+#define EP0_MAX_PACKET_SIZE 64
+#define UDC_OUT_ENDPOINT 2
+#define UDC_OUT_PACKET_SIZE 64
+#define UDC_IN_ENDPOINT	1
+#define UDC_IN_PACKET_SIZE 64
+#define UDC_INT_ENDPOINT 5
+#define UDC_INT_PKTSIZE	16
+#define UDC_BULK_PKTSIZE 16
+
+void udc_irq (void);
+/* Flow control */
+void udc_set_nak(int epid);
+void udc_unset_nak (int epid);
 
 /* Higher level functions for abstracting away from specific device */
 void udc_endpoint_write(struct usb_endpoint_instance *endpoint);




More information about the U-Boot mailing list