diff options
author | Greg Ungerer <gerg@uclinux.org> | 2012-07-13 02:07:15 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2012-12-04 19:51:35 -0500 |
commit | 98122d7329e76d00dad25dc0324ec9475f128181 (patch) | |
tree | b63b77a46749bcfffe728a49df5363845e4cf9b0 /arch/m68k | |
parent | 50564ec5360bab49623b03b1a170118aeda06d1b (diff) |
m68knommu: add clock definitions for 54xx ColdFire CPU types
Add a base set of clocks for the 54xx ColdFire CPU types.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/platform/coldfire/m54xx.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/m68k/platform/coldfire/m54xx.c b/arch/m68k/platform/coldfire/m54xx.c index b587bf35175b..952da53aa0bc 100644 --- a/arch/m68k/platform/coldfire/m54xx.c +++ b/arch/m68k/platform/coldfire/m54xx.c | |||
@@ -14,19 +14,45 @@ | |||
14 | #include <linux/interrupt.h> | 14 | #include <linux/interrupt.h> |
15 | #include <linux/io.h> | 15 | #include <linux/io.h> |
16 | #include <linux/mm.h> | 16 | #include <linux/mm.h> |
17 | #include <linux/clk.h> | ||
17 | #include <linux/bootmem.h> | 18 | #include <linux/bootmem.h> |
18 | #include <asm/pgalloc.h> | 19 | #include <asm/pgalloc.h> |
19 | #include <asm/machdep.h> | 20 | #include <asm/machdep.h> |
20 | #include <asm/coldfire.h> | 21 | #include <asm/coldfire.h> |
21 | #include <asm/m54xxsim.h> | 22 | #include <asm/m54xxsim.h> |
22 | #include <asm/mcfuart.h> | 23 | #include <asm/mcfuart.h> |
24 | #include <asm/mcfclk.h> | ||
23 | #include <asm/m54xxgpt.h> | 25 | #include <asm/m54xxgpt.h> |
26 | #include <asm/mcfclk.h> | ||
24 | #ifdef CONFIG_MMU | 27 | #ifdef CONFIG_MMU |
25 | #include <asm/mmu_context.h> | 28 | #include <asm/mmu_context.h> |
26 | #endif | 29 | #endif |
27 | 30 | ||
28 | /***************************************************************************/ | 31 | /***************************************************************************/ |
29 | 32 | ||
33 | DEFINE_CLK(pll, "pll.0", MCF_CLK); | ||
34 | DEFINE_CLK(sys, "sys.0", MCF_BUSCLK); | ||
35 | DEFINE_CLK(mcfslt0, "mcfslt.0", MCF_BUSCLK); | ||
36 | DEFINE_CLK(mcfslt1, "mcfslt.1", MCF_BUSCLK); | ||
37 | DEFINE_CLK(mcfuart0, "mcfuart.0", MCF_BUSCLK); | ||
38 | DEFINE_CLK(mcfuart1, "mcfuart.1", MCF_BUSCLK); | ||
39 | DEFINE_CLK(mcfuart2, "mcfuart.2", MCF_BUSCLK); | ||
40 | DEFINE_CLK(mcfuart3, "mcfuart.3", MCF_BUSCLK); | ||
41 | |||
42 | struct clk *mcf_clks[] = { | ||
43 | &clk_pll, | ||
44 | &clk_sys, | ||
45 | &clk_mcfslt0, | ||
46 | &clk_mcfslt1, | ||
47 | &clk_mcfuart0, | ||
48 | &clk_mcfuart1, | ||
49 | &clk_mcfuart2, | ||
50 | &clk_mcfuart3, | ||
51 | NULL | ||
52 | }; | ||
53 | |||
54 | /***************************************************************************/ | ||
55 | |||
30 | static void __init m54xx_uarts_init(void) | 56 | static void __init m54xx_uarts_init(void) |
31 | { | 57 | { |
32 | /* enable io pins */ | 58 | /* enable io pins */ |