diff options
Diffstat (limited to 'arch/arm/mach-mxs/clock-mx23.c')
-rw-r--r-- | arch/arm/mach-mxs/clock-mx23.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/arch/arm/mach-mxs/clock-mx23.c b/arch/arm/mach-mxs/clock-mx23.c index 8f5a19ab558c..b1a362ebfded 100644 --- a/arch/arm/mach-mxs/clock-mx23.c +++ b/arch/arm/mach-mxs/clock-mx23.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> |
@@ -437,10 +438,12 @@ _DEFINE_CLOCK(clk32k_clk, XTAL, TIMROT_CLK32K_GATE, &ref_xtal_clk); | |||
437 | }, | 438 | }, |
438 | 439 | ||
439 | static struct clk_lookup lookups[] = { | 440 | static struct clk_lookup lookups[] = { |
440 | _REGISTER_CLOCK("mxs-duart.0", NULL, uart_clk) | 441 | /* for amba bus driver */ |
442 | _REGISTER_CLOCK("duart", "apb_pclk", xbus_clk) | ||
443 | /* for amba-pl011 driver */ | ||
444 | _REGISTER_CLOCK("duart", NULL, uart_clk) | ||
441 | _REGISTER_CLOCK("rtc", NULL, rtc_clk) | 445 | _REGISTER_CLOCK("rtc", NULL, rtc_clk) |
442 | _REGISTER_CLOCK(NULL, "hclk", hbus_clk) | 446 | _REGISTER_CLOCK(NULL, "hclk", hbus_clk) |
443 | _REGISTER_CLOCK(NULL, "xclk", xbus_clk) | ||
444 | _REGISTER_CLOCK(NULL, "usb", usb_clk) | 447 | _REGISTER_CLOCK(NULL, "usb", usb_clk) |
445 | _REGISTER_CLOCK(NULL, "audio", audio_clk) | 448 | _REGISTER_CLOCK(NULL, "audio", audio_clk) |
446 | _REGISTER_CLOCK(NULL, "pwm", pwm_clk) | 449 | _REGISTER_CLOCK(NULL, "pwm", pwm_clk) |
@@ -518,6 +521,12 @@ int __init mx23_clocks_init(void) | |||
518 | { | 521 | { |
519 | clk_misc_init(); | 522 | clk_misc_init(); |
520 | 523 | ||
524 | clk_enable(&cpu_clk); | ||
525 | clk_enable(&hbus_clk); | ||
526 | clk_enable(&xbus_clk); | ||
527 | clk_enable(&emi_clk); | ||
528 | clk_enable(&uart_clk); | ||
529 | |||
521 | clkdev_add_table(lookups, ARRAY_SIZE(lookups)); | 530 | clkdev_add_table(lookups, ARRAY_SIZE(lookups)); |
522 | 531 | ||
523 | mxs_timer_init(&clk32k_clk, MX23_INT_TIMER0); | 532 | mxs_timer_init(&clk32k_clk, MX23_INT_TIMER0); |