]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: cns3xxx: Add EHCI and OHCI bus glue for cns3xxx SOCs
authorMac Lin <mkl0301@gmail.com>
Thu, 25 Nov 2010 15:58:00 +0000 (23:58 +0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Mon, 29 Nov 2010 15:32:47 +0000 (18:32 +0300)
commit760efe6910d5743084b586d3d0a3b65aea96fb2f
tree7623994cdae2f0fde8dab0bf157b0682a169ec33
parentcf36797f35676dafae9d44484391ac7f56b2485a
USB: cns3xxx: Add EHCI and OHCI bus glue for cns3xxx SOCs

The CNS3XXX SOC has include USB EHCI and OHCI compatible controllers.
This patch adds the necessary glue logic to allow ehci-hcd and ohci-hcd
drivers to work on CNS3XXX

The EHCI and OHCI controllers share a common clock control and reset
bit, therefore additional check for the timming of enabling and disabling
is required. The USB bit of PLL Power Down Control is also shared by OTG,
24MHzUART clock, Crypto clock, PCIe reference clock, and Clock Scale
Generator. Therefore we only ensure it is enabled, while not disabling it.

Signed-off-by: Mac Lin <mkl0301@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/usb/Kconfig
drivers/usb/host/Kconfig
drivers/usb/host/ehci-cns3xxx.c [new file with mode: 0644]
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ohci-cns3xxx.c [new file with mode: 0644]
drivers/usb/host/ohci-hcd.c