diff options
Diffstat (limited to 'arch/arm/mach-mx5/clock-mx51.c')
-rw-r--r-- | arch/arm/mach-mx5/clock-mx51.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/clock-mx51.c b/arch/arm/mach-mx5/clock-mx51.c index d9f612d3370e..6af69def357f 100644 --- a/arch/arm/mach-mx5/clock-mx51.c +++ b/arch/arm/mach-mx5/clock-mx51.c | |||
@@ -758,6 +758,10 @@ static struct clk gpt_32k_clk = { | |||
758 | .parent = &ckil_clk, | 758 | .parent = &ckil_clk, |
759 | }; | 759 | }; |
760 | 760 | ||
761 | static struct clk kpp_clk = { | ||
762 | .id = 0, | ||
763 | }; | ||
764 | |||
761 | #define DEFINE_CLOCK(name, i, er, es, gr, sr, p, s) \ | 765 | #define DEFINE_CLOCK(name, i, er, es, gr, sr, p, s) \ |
762 | static struct clk name = { \ | 766 | static struct clk name = { \ |
763 | .id = i, \ | 767 | .id = i, \ |
@@ -798,6 +802,14 @@ DEFINE_CLOCK(gpt_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG9_OFFSET, | |||
798 | DEFINE_CLOCK(gpt_ipg_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG10_OFFSET, | 802 | DEFINE_CLOCK(gpt_ipg_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG10_OFFSET, |
799 | NULL, NULL, &ipg_clk, NULL); | 803 | NULL, NULL, &ipg_clk, NULL); |
800 | 804 | ||
805 | /* I2C */ | ||
806 | DEFINE_CLOCK(i2c1_clk, 0, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG9_OFFSET, | ||
807 | NULL, NULL, &ipg_clk, NULL); | ||
808 | DEFINE_CLOCK(i2c2_clk, 1, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG10_OFFSET, | ||
809 | NULL, NULL, &ipg_clk, NULL); | ||
810 | DEFINE_CLOCK(hsi2c_clk, 0, MXC_CCM_CCGR1, MXC_CCM_CCGRx_CG11_OFFSET, | ||
811 | NULL, NULL, &ipg_clk, NULL); | ||
812 | |||
801 | /* FEC */ | 813 | /* FEC */ |
802 | DEFINE_CLOCK(fec_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG12_OFFSET, | 814 | DEFINE_CLOCK(fec_clk, 0, MXC_CCM_CCGR2, MXC_CCM_CCGRx_CG12_OFFSET, |
803 | NULL, NULL, &ipg_clk, NULL); | 815 | NULL, NULL, &ipg_clk, NULL); |
@@ -815,12 +827,16 @@ static struct clk_lookup lookups[] = { | |||
815 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) | 827 | _REGISTER_CLOCK("imx-uart.2", NULL, uart3_clk) |
816 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) | 828 | _REGISTER_CLOCK(NULL, "gpt", gpt_clk) |
817 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | 829 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) |
830 | _REGISTER_CLOCK("imx-i2c.0", NULL, i2c1_clk) | ||
831 | _REGISTER_CLOCK("imx-i2c.1", NULL, i2c2_clk) | ||
832 | _REGISTER_CLOCK("imx-i2c.2", NULL, hsi2c_clk) | ||
818 | _REGISTER_CLOCK("mxc-ehci.0", "usb", usboh3_clk) | 833 | _REGISTER_CLOCK("mxc-ehci.0", "usb", usboh3_clk) |
819 | _REGISTER_CLOCK("mxc-ehci.0", "usb_ahb", ahb_clk) | 834 | _REGISTER_CLOCK("mxc-ehci.0", "usb_ahb", ahb_clk) |
820 | _REGISTER_CLOCK("mxc-ehci.1", "usb", usboh3_clk) | 835 | _REGISTER_CLOCK("mxc-ehci.1", "usb", usboh3_clk) |
821 | _REGISTER_CLOCK("mxc-ehci.1", "usb_ahb", ahb_clk) | 836 | _REGISTER_CLOCK("mxc-ehci.1", "usb_ahb", ahb_clk) |
822 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usboh3_clk) | 837 | _REGISTER_CLOCK("fsl-usb2-udc", "usb", usboh3_clk) |
823 | _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", ahb_clk) | 838 | _REGISTER_CLOCK("fsl-usb2-udc", "usb_ahb", ahb_clk) |
839 | _REGISTER_CLOCK("imx-keypad.0", NULL, kpp_clk) | ||
824 | }; | 840 | }; |
825 | 841 | ||
826 | static void clk_tree_init(void) | 842 | static void clk_tree_init(void) |