* [U-Boot-Users] [PATCH 9/14] Update omap_1510 stuff to do udc_irq locally and to contain placeholder flow control functions
@ 2006-05-26 21:08 Bryan O'Donoghue
0 siblings, 0 replies; only message in thread
From: Bryan O'Donoghue @ 2006-05-26 21:08 UTC (permalink / raw)
To: u-boot
Signed-off-by: Bryan O'Donoghue <bodonoghue@codehermit.ie>
modified: drivers/usbdcore_omap1510.c
Moves udc_irq to omap1510 so that a higher level protocol driver
such as usbtty won't care about mpc8xx or omap1510
Adds udc_set_nak and udc_unset_nak to prevent link errors,
however the functions will have to be implemented by someone
with omap hardware. Without these functions implemented flow
control has no effect, which is no difference from before !
---
drivers/usbdcore_omap1510.c | 29 ++++++++++++++++++++++++++++-
1 files changed, 28 insertions(+), 1 deletions(-)
bed4ca075edc97c3d56aa828a63aafeb08dc4741
diff --git a/drivers/usbdcore_omap1510.c b/drivers/usbdcore_omap1510.c
--- a/drivers/usbdcore_omap1510.c
+++ b/drivers/usbdcore_omap1510.c
@@ -645,7 +645,7 @@ static void omap1510_udc_state_changed (
static void omap1510_udc_setup (struct usb_endpoint_instance *endpoint)
{
UDCDBG ("-> Entering device setup");
-
+
do {
const int setup_pktsize = 8;
unsigned char *datap =
@@ -1517,4 +1517,31 @@ void udc_startup_events (struct usb_devi
udc_enable (device);
}
+/**
+ * udc_irq - do pseudo interrupts
+ */
+void udc_irq(void)
+{
+ /* Loop while we have interrupts.
+ * If we don't do this, the input chain
+ * polling delay is likely to miss
+ * host requests.
+ */
+ while (inw (UDC_IRQ_SRC) & ~UDC_SOF_Flg) {
+ /* Handle any new IRQs */
+ omap1510_udc_irq ();
+ omap1510_udc_noniso_irq ();
+ }
+}
+
+/* Flow control */
+void udc_set_nak(int epid)
+{
+ /* TODO: implement this functionality in omap1510 */
+}
+
+void udc_unset_nak (int epid)
+{
+ /* TODO: implement this functionality in omap1510 */
+}
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-26 21:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-26 21:08 [U-Boot-Users] [PATCH 9/14] Update omap_1510 stuff to do udc_irq locally and to contain placeholder flow control functions Bryan O'Donoghue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox