]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: omap5: Update the board_usb_init api
authorDan Murphy <dmurphy@ti.com>
Fri, 11 Oct 2013 17:28:15 +0000 (12:28 -0500)
committerMarek Vasut <marex@denx.de>
Sun, 20 Oct 2013 21:42:41 +0000 (23:42 +0200)
Recent patches declares board_usb_init function prototype for a new
usb architecture.

Turning on the OMAP_XHCI defines cause a redefinition compiler failure.
So update the board_usb_init to the latest prototype.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
board/ti/omap5_uevm/evm.c
drivers/usb/host/xhci-omap.c

index 228df29b42167f2b484598f386c25bc98fa5b06f..6a012006253917f8c189f67ffd44426b09843cd7 100644 (file)
@@ -219,7 +219,7 @@ void usb_hub_reset_devices(int port)
  *
  * @return 0
  */
-int board_usb_init(void)
+int board_usb_init(int index, enum board_usb_init_type init)
 {
        int ret;
 #ifdef CONFIG_PALMAS_USB_SS_PWR
index a8702dadf7de6c7c521a275145eda5a48afd44ab..4f98c777a424612be2123db8788ece82105d071d 100644 (file)
@@ -182,11 +182,12 @@ static void omap_enable_phy_clocks(struct omap_xhci *omap)
 
 };
 
-inline int __board_usb_init(void)
+inline int __board_usb_init(int index, enum board_usb_init_type init)
 {
        return 0;
 }
-int board_usb_init(void) __attribute__((weak, alias("__board_usb_init")));
+int board_usb_init(int index, enum board_usb_init_type init) \
+       __attribute__((weak, alias("__board_usb_init")));
 
 static void dwc3_set_mode(struct dwc3 *dwc3_reg, u32 mode)
 {
@@ -295,7 +296,7 @@ int xhci_hcd_init(int index, struct xhci_hccr **hccr, struct xhci_hcor **hcor)
        ctx->usb3_phy = (struct omap_usb3_phy *)OMAP_OCP1_SCP_BASE;
        ctx->otg_wrapper = (struct omap_dwc_wrapper *)OMAP_OTG_WRAPPER_BASE;
 
-       ret = board_usb_init();
+       ret = board_usb_init(index, USB_INIT_HOST);
        if (ret != 0) {
                puts("Failed to initialize board for USB\n");
                return ret;