diff options
Diffstat (limited to 'arch/arm/mach-mxs/clock-mx28.c')
-rw-r--r-- | arch/arm/mach-mxs/clock-mx28.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/arm/mach-mxs/clock-mx28.c b/arch/arm/mach-mxs/clock-mx28.c index 74e2103c6011..56312c092a9e 100644 --- a/arch/arm/mach-mxs/clock-mx28.c +++ b/arch/arm/mach-mxs/clock-mx28.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/clk.h> | 21 | #include <linux/clk.h> |
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/jiffies.h> | 23 | #include <linux/jiffies.h> |
24 | #include <linux/clkdev.h> | ||
24 | 25 | ||
25 | #include <asm/clkdev.h> | 26 | #include <asm/clkdev.h> |
26 | #include <asm/div64.h> | 27 | #include <asm/div64.h> |
@@ -602,7 +603,12 @@ _DEFINE_CLOCK(fec_clk, ENET, DISABLE, &hbus_clk); | |||
602 | }, | 603 | }, |
603 | 604 | ||
604 | static struct clk_lookup lookups[] = { | 605 | static struct clk_lookup lookups[] = { |
605 | _REGISTER_CLOCK("mxs-duart.0", NULL, uart_clk) | 606 | /* for amba bus driver */ |
607 | _REGISTER_CLOCK("duart", "apb_pclk", xbus_clk) | ||
608 | /* for amba-pl011 driver */ | ||
609 | _REGISTER_CLOCK("duart", NULL, uart_clk) | ||
610 | _REGISTER_CLOCK("imx28-fec.0", NULL, fec_clk) | ||
611 | _REGISTER_CLOCK("imx28-fec.1", NULL, fec_clk) | ||
606 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) | 612 | _REGISTER_CLOCK("fec.0", NULL, fec_clk) |
607 | _REGISTER_CLOCK("rtc", NULL, rtc_clk) | 613 | _REGISTER_CLOCK("rtc", NULL, rtc_clk) |
608 | _REGISTER_CLOCK("pll2", NULL, pll2_clk) | 614 | _REGISTER_CLOCK("pll2", NULL, pll2_clk) |
@@ -726,6 +732,12 @@ int __init mx28_clocks_init(void) | |||
726 | { | 732 | { |
727 | clk_misc_init(); | 733 | clk_misc_init(); |
728 | 734 | ||
735 | clk_enable(&cpu_clk); | ||
736 | clk_enable(&hbus_clk); | ||
737 | clk_enable(&xbus_clk); | ||
738 | clk_enable(&emi_clk); | ||
739 | clk_enable(&uart_clk); | ||
740 | |||
729 | clkdev_add_table(lookups, ARRAY_SIZE(lookups)); | 741 | clkdev_add_table(lookups, ARRAY_SIZE(lookups)); |
730 | 742 | ||
731 | mxs_timer_init(&clk32k_clk, MX28_INT_TIMER0); | 743 | mxs_timer_init(&clk32k_clk, MX28_INT_TIMER0); |