diff options
author | Boris BREZILLON <b.brezillon@overkiz.com> | 2013-08-01 21:09:13 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-02 07:31:29 +0400 |
commit | 6b0a1cf732f917f2eaccb4a0dd6ae7bfc3ccda15 (patch) | |
tree | c9c0d48b91fbb64b045d2beaad0b093cdfbb58ea /include/linux/usb.h | |
parent | 6753f4cf29046f4a2ae68c3a93bf6e6e6dce9fb7 (diff) | |
download | linux-6b0a1cf732f917f2eaccb4a0dd6ae7bfc3ccda15.tar.xz |
USB: ohci-at91: add usb_clk for transition to common clk framework
The AT91 PMC (Power Management Controller) provides an USB clock used by
USB Full Speed host (ohci) and USB Full Speed device (udc).
The usb drivers (ohci and udc) must configure this clock to 48Mhz.
This configuration was formely done in mach-at91/clock.c, but this
implementation will be removed when moving to common clk framework.
This patch adds support for usb clock retrieval and configuration, and is
backward compatible with the current at91 clk implementation (if usb clk
is not found, it does not configure/enable it).
Changes since v1:
- use IS_ENABLED(CONFIG_COMMON_CLK) to isolate new at91 clk support
Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb.h')
0 files changed, 0 insertions, 0 deletions