X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fusb%2Fmusb%2Fmusb_core.c;h=6fe2c39bce800cb6eac58008431f8c3a2fb36f10;hb=5549d22b656550d36b2cc46743c7220ab0e9dcc4;hp=dc740cf18e475e9806683561feb39f2e93771dc3;hpb=9bb47abf0d88e2dd151b36b39bf64c6593f417c8;p=oweals%2Fu-boot.git diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index dc740cf18e..6fe2c39bce 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -141,6 +141,11 @@ void write_fifo(u8 ep, u32 length, void *fifo_data) writeb(*data++, &musbr->fifox[ep]); } +/* + * AM35x supports only 32bit read operations so + * use seperate read_fifo() function for it. + */ +#ifndef CONFIG_USB_AM35X /* * This function reads data from endpoint fifo * @@ -160,3 +165,4 @@ void read_fifo(u8 ep, u32 length, void *fifo_data) while (length--) *data++ = readb(&musbr->fifox[ep]); } +#endif /* CONFIG_USB_AM35X */