powerpc/QE: add support for QE USB clocks routing
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Fri, 23 May 2008 16:38:56 +0000 (20:38 +0400)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 10 Jun 2008 15:39:13 +0000 (10:39 -0500)
commit5e41486c408eb4206aee09303631427f57771691
tree04198c2fdffdb70816ba141aaa2f2b1d6d8e72aa
parent83ff9dcf375c418ca3b98eb950711525ca1269e2
powerpc/QE: add support for QE USB clocks routing

This patch adds a function to the qe_lib to setup QE USB clocks routing.
To setup clocks safely, cmxgcr register needs locking, so I just reused
ucc_lock since it was used only to protect cmxgcr.

The idea behind placing clocks routing functions into the qe_lib is that
later we'll hopefully switch to the generic Linux Clock API, thus, for
example, FHCI driver may be used for QE and CPM chips without nasty #ifdefs.

This patch also fixes QE_USB_RESTART_TX command definition in the qe.h.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-By: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/qe_lib/Kconfig
arch/powerpc/sysdev/qe_lib/Makefile
arch/powerpc/sysdev/qe_lib/ucc.c
arch/powerpc/sysdev/qe_lib/usb.c [new file with mode: 0644]
include/asm-powerpc/qe.h