projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dm: atmel: Add driver model support for the ehci driver
[oweals/u-boot.git]
/
drivers
/
usb
/
host
/
ehci-mxs.c
diff --git
a/drivers/usb/host/ehci-mxs.c
b/drivers/usb/host/ehci-mxs.c
index 4d652b32dbed2effd493e6d495f1fd8d9b3f276c..6b8d969bb00093c64fc60e983d6c2559083b0eba 100644
(file)
--- a/
drivers/usb/host/ehci-mxs.c
+++ b/
drivers/usb/host/ehci-mxs.c
@@
-77,6
+77,16
@@
static int ehci_mxs_toggle_clock(const struct ehci_mxs_port *port, int enable)
return 0;
}
return 0;
}
+int __weak board_ehci_hcd_init(int port)
+{
+ return 0;
+}
+
+int __weak board_ehci_hcd_exit(int port)
+{
+ return 0;
+}
+
int ehci_hcd_init(int index, enum usb_init_type init,
struct ehci_hccr **hccr, struct ehci_hcor **hcor)
{
int ehci_hcd_init(int index, enum usb_init_type init,
struct ehci_hccr **hccr, struct ehci_hcor **hcor)
{
@@
-90,6
+100,10
@@
int ehci_hcd_init(int index, enum usb_init_type init,
return -EINVAL;
}
return -EINVAL;
}
+ ret = board_ehci_hcd_init(index);
+ if (ret)
+ return ret;
+
port = &mxs_port[index];
/* Reset the PHY block */
port = &mxs_port[index];
/* Reset the PHY block */
@@
-154,5
+168,7
@@
int ehci_hcd_stop(int index)
/* Disable USB clock */
ret = ehci_mxs_toggle_clock(port, 0);
/* Disable USB clock */
ret = ehci_mxs_toggle_clock(port, 0);
+ board_ehci_hcd_exit(index);
+
return ret;
}
return ret;
}