
11 Jan
2010
11 Jan
'10
10:35 p.m.
On Monday 11 January 2010 15:00:40 Juha Kuikka wrote:
- On DM850 the MUSB interrupts are read from a wrapper, not from MUSB
block . Add optional interface function to read-and-clear interrupts.
+#ifndef CONFIG_MUSB_SOC_IRQ +static void musb_get_interrupts(u8 *usb, u16 *rx, u16 *tx) +{
- *usb = readb(&musbr->intrusb);
- *rx = readw(&musbr->intrrx);
- *tx = readw(&musbr->intrtx);
+} +#else +extern void musb_get_interrupts(u8 *usb, u16 *rx, u16 *tx); +#endif
this looks like a static MUSB implementation rather than a config option a user/board would control, right ? so perhaps we should stick with the "internal" symbol naming rather than CONFIG_MUSB_xxx ... e.g. the way we're handling dynamic fifos and/or multipoint. -mike