Search and replace MGC_END0_FIFOSIZE with MUSB_EP0_FIFOSIZE, remove MGC_MAX_USB_ENDS
Signed-off-by: Tony Lindgren <tony@atomide.com>
/* load the data */
pFifoSource = (u8 *) request->buf + request->actual;
- fifo_count = min((unsigned) MGC_END0_FIFOSIZE,
+ fifo_count = min((unsigned) MUSB_EP0_FIFOSIZE,
request->length - request->actual);
musb_write_fifo(&musb->endpoints[0], fifo_count, pFifoSource);
request->actual += fifo_count;
#endif
#ifndef MUSB_MAX_END0_PACKET
-#define MUSB_MAX_END0_PACKET ((u16)MGC_END0_FIFOSIZE)
+#define MUSB_MAX_END0_PACKET ((u16)MUSB_EP0_FIFOSIZE)
#endif
/* host side ep0 states */
* HDRC-specific definitions
*/
-#define MGC_MAX_USB_ENDS 16
-
-#define MGC_END0_FIFOSIZE 64 /* this is non-configurable */
+#define MUSB_EP0_FIFOSIZE 64 /* this is non-configurable */
/*
* MUSBMHDRC Register map
musb_driver_name, type, aRevision, aDate);
/* configure ep0 */
- musb->endpoints[0].max_packet_sz_tx = MGC_END0_FIFOSIZE;
- musb->endpoints[0].max_packet_sz_rx = MGC_END0_FIFOSIZE;
+ musb->endpoints[0].max_packet_sz_tx = MUSB_EP0_FIFOSIZE;
+ musb->endpoints[0].max_packet_sz_rx = MUSB_EP0_FIFOSIZE;
/* discover endpoint configuration */
musb->nr_endpoints = 1;