]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: ehci-atmel: add usb_clk for transition to CCF
authorBoris BREZILLON <b.brezillon@overkiz.com>
Fri, 18 Oct 2013 19:26:51 +0000 (21:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2013 16:41:49 +0000 (09:41 -0700)
commit0d768fcfc01098ae0e676c78746c9f4fd8228cd7
treedc952daa17af977f0436513459ff31f4e548bc51
parent9983d6dc4e8a8a1ce599cb426c0ec9384219b476
USB: ehci-atmel: add usb_clk for transition to CCF

The AT91 PMC (Power Management Controller) provides a USB clock used by
the different USB controllers (ehci, ohci and udc).
The atmel-ehci driver must configure the usb clock rate to 48Mhz in order
to get a fully functionnal USB host controller.
This configuration was formely done in mach-at91/clock.c, but will be
bypassed when moving to common clk framework.

This patch adds support for usb clock retrieval and configuration only if
CCF is enabled (CONFIG_COMMON_CLK).

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-atmel.c