summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:22:17 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:23 -0600
commitaac064f76bf53dfb21bc5d96bdc3a884d3eb2620 (patch)
tree35aca757462f8963b7a086d3fd436ba943f4b38c /drivers/usb/host/ehci.h
parentacf277af682ea8aa104f78d3fe2b19b7af916687 (diff)
downloadblackbird-obmc-uboot-aac064f76bf53dfb21bc5d96bdc3a884d3eb2620.tar.gz
blackbird-obmc-uboot-aac064f76bf53dfb21bc5d96bdc3a884d3eb2620.zip
dm: usb: Move all the EHCI weak functions together and declare them
Put these at the top of the file so they are in one place. Also add function prototypes to the header file to avoid call site mismatches. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r--drivers/usb/host/ehci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 79aecd414e..3e5427abc6 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -250,6 +250,12 @@ struct ehci_ctrl {
int ntds;
};
+/* Weak functions that drivers can override */
+int ehci_get_port_speed(struct ehci_hcor *hcor, uint32_t reg);
+void ehci_set_usbmode(int index);
+void ehci_powerup_fixup(uint32_t *status_reg, uint32_t *reg);
+uint32_t *ehci_get_portsc_register(struct ehci_hcor *hcor, int port);
+
/* Low level init functions */
int ehci_hcd_init(int index, enum usb_init_type init,
struct ehci_hccr **hccr, struct ehci_hcor **hcor);
OpenPOWER on IntegriCloud