aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5/clock-mx51.c
diff options
context:
space:
mode:
authorDinh Nguyen <Dinh.Nguyen@freescale.com>2010-04-30 16:48:24 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-05-03 09:18:13 -0400
commitc53bdf1c4488ce196e9a0056285e7b4a36f6f76a (patch)
tree1a73e09c5b2ff6f7cf1fdb20e8be30d09cde3da8 /arch/arm/mach-mx5/clock-mx51.c
parent282f152219020c14064efa78374309e1df6a23a2 (diff)
mx5: Add USB device definitions for Freescale MX51 Babbage HW
This patch is part of enabling USB for Freescale MX51 Babbage HW. This patch adds device structures for USB Host1 and OTG port, and adds clocking information for USB HW. This patch applies to 2.6.34-rc6. Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/clock-mx51.c')
-rw-r--r--arch/arm/mach-mx5/clock-mx51.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/clock-mx51.c b/arch/arm/mach-mx5/clock-mx51.c
index 8f85f73b83a8..dcca330addc9 100644
--- a/arch/arm/mach-mx5/clock-mx51.c
+++ b/arch/arm/mach-mx5/clock-mx51.c
@@ -761,6 +761,10 @@ DEFINE_CLOCK(gpt_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG9_OFFSET,
761DEFINE_CLOCK(gpt_ipg_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG10_OFFSET, 761DEFINE_CLOCK(gpt_ipg_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG10_OFFSET,
762 NULL, NULL, &ipg_clk, NULL); 762 NULL, NULL, &ipg_clk, NULL);
763 763
764/* USB */
765DEFINE_CLOCK(usboh3_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG14_OFFSET,
766 NULL, NULL, &pll3_sw_clk, NULL);
767
764/* FEC */ 768/* FEC */
765DEFINE_CLOCK(fec_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG12_OFFSET, 769DEFINE_CLOCK(fec_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG12_OFFSET,
766 NULL, NULL, &ipg_clk, NULL); 770 NULL, NULL, &ipg_clk, NULL);
@@ -778,6 +782,10 @@ static struct clk_lookup lookups[] = {
778 _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) 782 _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk)
779 _REGISTER_CLOCK(NULL, "gpt", gpt_clk) 783 _REGISTER_CLOCK(NULL, "gpt", gpt_clk)
780 _REGISTER_CLOCK("fec.0", NULL, fec_clk) 784 _REGISTER_CLOCK("fec.0", NULL, fec_clk)
785 _REGISTER_CLOCK("mxc-ehci.0", "usb", usboh3_clk)
786 _REGISTER_CLOCK("mxc-ehci.0", "usb_ahb", ahb_clk)
787 _REGISTER_CLOCK("mxc-ehci.1", "usb", usboh3_clk)
788 _REGISTER_CLOCK("mxc-ehci.1", "usb_ahb", ahb_clk)
781}; 789};
782 790
783static void clk_tree_init(void) 791static void clk_tree_init(void)