From: Dan Murphy <dmurphy@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/6] usb: omap5: Update the board_usb_init api
Date: Fri, 11 Oct 2013 12:28:15 -0500 [thread overview]
Message-ID: <1381512499-11504-3-git-send-email-dmurphy@ti.com> (raw)
In-Reply-To: <1381512499-11504-1-git-send-email-dmurphy@ti.com>
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>
---
v2 - Adopted to board_usb_init and not create a new API - http://patchwork.ozlabs.org/patch/281931/
board/ti/omap5_uevm/evm.c | 2 +-
drivers/usb/host/xhci-omap.c | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/board/ti/omap5_uevm/evm.c b/board/ti/omap5_uevm/evm.c
index 228df29..6a01200 100644
--- a/board/ti/omap5_uevm/evm.c
+++ b/board/ti/omap5_uevm/evm.c
@@ -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
diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c
index a8702da..4f98c77 100644
--- a/drivers/usb/host/xhci-omap.c
+++ b/drivers/usb/host/xhci-omap.c
@@ -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;
--
1.7.9.5
next prev parent reply other threads:[~2013-10-11 17:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-11 17:28 [U-Boot] [PATCH v2 0/6] TI xHCI Updated patchset Dan Murphy
2013-10-11 17:28 ` [U-Boot] [PATCH v2 1/6] usb: omap: Move the xhci-omap header file to common location Dan Murphy
2013-10-11 17:28 ` Dan Murphy [this message]
2013-10-11 17:28 ` [U-Boot] [PATCH v2 3/6] usb: omap: Move the usb phy code to the usb/phy directory Dan Murphy
2013-10-11 17:28 ` [U-Boot] [PATCH v2 4/6] usb: dra7xx: Add support for dra7xx xhci USB host Dan Murphy
2013-10-12 1:13 ` Marek Vasut
2013-10-11 17:28 ` [U-Boot] [PATCH v2 5/6] usb: am437x: Add support for am437x " Dan Murphy
2013-10-11 17:28 ` [U-Boot] [PATCH v2 6/6] ARM: omap5-evm: Move MAC creation to misc_init Dan Murphy
2013-10-12 1:15 ` [U-Boot] [PATCH v2 0/6] TI xHCI Updated patchset Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1381512499-11504-3-git-send-email-dmurphy@ti.com \
--to=dmurphy@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox