summaryrefslogtreecommitdiffstats
path: root/include/usb/ehci.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-01-31 15:13:40 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-14 09:56:35 +0100
commit80a4c202dd5f36ffcd127aa5178fdab7149e9139 (patch)
treed90ce24e6469344a88469024ffaac28bfa4adb0f /include/usb/ehci.h
parentcefcb0c2817faf20e9709895d8ebb1a466e730af (diff)
downloadbarebox-80a4c202dd5f36ffcd127aa5178fdab7149e9139.tar.gz
barebox-80a4c202dd5f36ffcd127aa5178fdab7149e9139.tar.xz
USB ehci: Add platform specific init calls
Some USB cores need a platform specific init hook, add it to the ehci driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/ehci.h')
-rw-r--r--include/usb/ehci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/usb/ehci.h b/include/usb/ehci.h
index 437711697d..93f980d34f 100644
--- a/include/usb/ehci.h
+++ b/include/usb/ehci.h
@@ -11,6 +11,11 @@ struct ehci_data {
void __iomem *hccr;
void __iomem *hcor;
unsigned long flags;
+
+ /* platform specific init functions */
+ int (*init)(void *drvdata);
+ int (*post_init)(void *drvdata);
+ void *drvdata;
};
#ifdef CONFIG_USB_EHCI