summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/fotg210.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-09-01 18:03:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-10 20:03:50 +0200
commitffa8a31b5b3b81f12a9d77a574cc0b25bb8e856e (patch)
tree673a0a1f1465cd217b48b367bba7fd7348c6781f /drivers/usb/host/fotg210.h
parent697fa834c3103cda43107bce1e1c3cfb7a4603ac (diff)
downloadlinux-ffa8a31b5b3b81f12a9d77a574cc0b25bb8e856e.tar.bz2
usb: host: fotg2: add silicon clock handling
When used in a system with software-controlled silicon clocks, the FOTG210 needs to grab, prepare and enable the clock. This is needed on for example the Cortina Gemini, where the platform will by default gate off the clock unless the peripheral (in this case the USB driver) grabs and enables the clock. If there is no clock available on the platform, we live without it. Make sure to percolate probe deferrals. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/fotg210.h')
-rw-r--r--drivers/usb/host/fotg210.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/fotg210.h b/drivers/usb/host/fotg210.h
index 7fcd785c7bc8..28f6467c0cbf 100644
--- a/drivers/usb/host/fotg210.h
+++ b/drivers/usb/host/fotg210.h
@@ -182,6 +182,9 @@ struct fotg210_hcd { /* one per controller */
# define COUNT(x)
#endif
+ /* silicon clock */
+ struct clk *pclk;
+
/* debug files */
struct dentry *debug_dir;
};