Skip to content
Snippets Groups Projects
Commit 91eb5d66 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Merge branch 'master' of git://git.denx.de/u-boot-usb

parents cd5b7d4a fd0f2f37
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ LIB := $(obj)libusb.a ...@@ -28,6 +28,7 @@ LIB := $(obj)libusb.a
COBJS-y += isp116x-hcd.o COBJS-y += isp116x-hcd.o
COBJS-y += sl811_usb.o COBJS-y += sl811_usb.o
COBJS-y += usb_ohci.o COBJS-y += usb_ohci.o
COBJS-y += r8a66597-hcd.o
COBJS-y += usbdcore.o COBJS-y += usbdcore.o
COBJS-y += usbdcore_ep0.o COBJS-y += usbdcore_ep0.o
COBJS-y += usbdcore_mpc8xx.o COBJS-y += usbdcore_mpc8xx.o
......
This diff is collapsed.
This diff is collapsed.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <common.h> #include <common.h>
#if defined(CONFIG_OMAP1510) && defined(CONFIG_USB_DEVICE) #if ((defined(CONFIG_OMAP1510) || defined(CONFIG_OMAP1610)) && defined(CONFIG_USB_DEVICE))
#include <asm/io.h> #include <asm/io.h>
#ifdef CONFIG_OMAP_SX1 #ifdef CONFIG_OMAP_SX1
...@@ -1109,21 +1109,43 @@ int udc_init (void) ...@@ -1109,21 +1109,43 @@ int udc_init (void)
*/ */
outw ((1 << 4) | (1 << 5), CLOCK_CTRL); outw ((1 << 4) | (1 << 5), CLOCK_CTRL);
UDCREG (CLOCK_CTRL); UDCREG (CLOCK_CTRL);
#ifdef CONFIG_OMAP1510
/* This code was originally implemented for OMAP1510 and
* therefore is only applicable for OMAP1510 boards. For
* OMAP5912 or OMAP16xx the register APLL_CTRL does not
* exist and DPLL_CTRL is already configured.
*/
/* Set and check APLL */ /* Set and check APLL */
outw (0x0008, APLL_CTRL); outw (0x0008, APLL_CTRL);
UDCREG (APLL_CTRL); UDCREG (APLL_CTRL);
/* Set and check DPLL */ /* Set and check DPLL */
outw (0x2210, DPLL_CTRL); outw (0x2210, DPLL_CTRL);
UDCREG (DPLL_CTRL); UDCREG (DPLL_CTRL);
/* Set and check SOFT */ #endif
outw ((1 << 4) | (1 << 3) | 1, SOFT_REQ); /* Set and check SOFT
* The below line of code has been changed to perform a
* read-modify-write instead of a simple write for
* configuring the SOFT_REQ register. This allows the code
* to be compatible with OMAP5912 and OMAP16xx devices
*/
outw ((1 << 4) | (1 << 3) | 1 | (inw(SOFT_REQ)), SOFT_REQ);
/* Short delay to wait for DPLL */ /* Short delay to wait for DPLL */
udelay (1000); udelay (1000);
/* Print banner with device revision */ /* Print banner with device revision */
udc_rev = inw (UDC_REV) & 0xff; udc_rev = inw (UDC_REV) & 0xff;
#ifdef CONFIG_OMAP1510
printf ("USB: TI OMAP1510 USB function module rev %d.%d\n", printf ("USB: TI OMAP1510 USB function module rev %d.%d\n",
udc_rev >> 4, udc_rev & 0xf); udc_rev >> 4, udc_rev & 0xf);
#endif
#ifdef CONFIG_OMAP1610
printf ("USB: TI OMAP5912 USB function module rev %d.%d\n",
udc_rev >> 4, udc_rev & 0xf);
#endif
#ifdef CONFIG_OMAP_SX1 #ifdef CONFIG_OMAP_SX1
i2c_read (0x32, 0x04, 1, &value, 1); i2c_read (0x32, 0x04, 1, &value, 1);
......
...@@ -171,7 +171,7 @@ struct usb_device { ...@@ -171,7 +171,7 @@ struct usb_device {
#if defined(CONFIG_USB_UHCI) || defined(CONFIG_USB_OHCI) || \ #if defined(CONFIG_USB_UHCI) || defined(CONFIG_USB_OHCI) || \
defined(CONFIG_USB_OHCI_NEW) || defined (CONFIG_USB_SL811HS) || \ defined(CONFIG_USB_OHCI_NEW) || defined (CONFIG_USB_SL811HS) || \
defined(CONFIG_USB_ISP116X_HCD) defined(CONFIG_USB_ISP116X_HCD) || defined(CONFIG_USB_R8A66597_HCD)
int usb_lowlevel_init(void); int usb_lowlevel_init(void);
int usb_lowlevel_stop(void); int usb_lowlevel_stop(void);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment