summaryrefslogtreecommitdiff
path: root/board/genesi
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:22:27 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:24 -0600
commitdeb8508c518b8e49f2cd3199861e639d9eeebd9f (patch)
tree910919cd533a774a43bb0263eef5b9f3f6880710 /board/genesi
parent7372b5bd318515c0e756a96e1f730a3ff119bd31 (diff)
downloadu-boot-imx-deb8508c518b8e49f2cd3199861e639d9eeebd9f.zip
u-boot-imx-deb8508c518b8e49f2cd3199861e639d9eeebd9f.tar.gz
u-boot-imx-deb8508c518b8e49f2cd3199861e639d9eeebd9f.tar.bz2
dm: usb: Drop the EHCI weak functions
These are a pain with driver model because we might have different EHCI drivers which want to implement them differently. Now that they use consistent function signatures, we can in good conscience move them to a struct. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de> Fix non-driver-model EHCI to set up the EHCI operations correctly: Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/genesi')
-rw-r--r--board/genesi/mx51_efikamx/efikamx-usb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/genesi/mx51_efikamx/efikamx-usb.c b/board/genesi/mx51_efikamx/efikamx-usb.c
index 0c0b8d3..9dfd249 100644
--- a/board/genesi/mx51_efikamx/efikamx-usb.c
+++ b/board/genesi/mx51_efikamx/efikamx-usb.c
@@ -173,8 +173,9 @@ int board_ehci_hcd_init(int port)
return 0;
}
-void ehci_powerup_fixup(struct ehci_ctrl *ctrl, uint32_t *status_reg,
- uint32_t *reg)
+/* This overrides a weak function */
+void mx5_ehci_powerup_fixup(struct ehci_ctrl *ctrl, uint32_t *status_reg,
+ uint32_t *reg)
{
uint32_t port = OTG_BASE_ADDR + (0x200 * CONFIG_MXC_USB_PORT);
struct usb_ehci *ehci = (struct usb_ehci *)port;