Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <asm/machdep.h>
#include <asm/coldfire.h>
#include <asm/mcfsim.h>
#include <asm/mcfuart.h>
#include <asm/mcfdma.h>
#include <asm/mcfclk.h>
Go to the source code of this file.
Functions | |
DEFINE_CLK (0,"flexbus", 2, MCF_CLK) | |
DEFINE_CLK (0,"mcfcan.0", 8, MCF_CLK) | |
DEFINE_CLK (0,"mcfcan.1", 9, MCF_CLK) | |
DEFINE_CLK (0,"mcfi2c.1", 14, MCF_CLK) | |
DEFINE_CLK (0,"mcfdspi.1", 15, MCF_CLK) | |
DEFINE_CLK (0,"edma", 17, MCF_CLK) | |
DEFINE_CLK (0,"intc.0", 18, MCF_CLK) | |
DEFINE_CLK (0,"intc.1", 19, MCF_CLK) | |
DEFINE_CLK (0,"intc.2", 20, MCF_CLK) | |
DEFINE_CLK (0,"mcfi2c.0", 22, MCF_CLK) | |
DEFINE_CLK (0,"mcfdspi.0", 23, MCF_CLK) | |
DEFINE_CLK (0,"mcfuart.0", 24, MCF_BUSCLK) | |
DEFINE_CLK (0,"mcfuart.1", 25, MCF_BUSCLK) | |
DEFINE_CLK (0,"mcfuart.2", 26, MCF_BUSCLK) | |
DEFINE_CLK (0,"mcfuart.3", 27, MCF_BUSCLK) | |
DEFINE_CLK (0,"mcftmr.0", 28, MCF_CLK) | |
DEFINE_CLK (0,"mcftmr.1", 29, MCF_CLK) | |
DEFINE_CLK (0,"mcftmr.2", 30, MCF_CLK) | |
DEFINE_CLK (0,"mcftmr.3", 31, MCF_CLK) | |
DEFINE_CLK (0,"mcfpit.0", 32, MCF_CLK) | |
DEFINE_CLK (0,"mcfpit.1", 33, MCF_CLK) | |
DEFINE_CLK (0,"mcfpit.2", 34, MCF_CLK) | |
DEFINE_CLK (0,"mcfpit.3", 35, MCF_CLK) | |
DEFINE_CLK (0,"mcfeport.0", 37, MCF_CLK) | |
DEFINE_CLK (0,"mcfadc.0", 38, MCF_CLK) | |
DEFINE_CLK (0,"mcfdac.0", 39, MCF_CLK) | |
DEFINE_CLK (0,"mcfrtc.0", 42, MCF_CLK) | |
DEFINE_CLK (0,"mcfsim.0", 43, MCF_CLK) | |
DEFINE_CLK (0,"mcfusb-otg.0", 44, MCF_CLK) | |
DEFINE_CLK (0,"mcfusb-host.0", 45, MCF_CLK) | |
DEFINE_CLK (0,"mcfddr-sram.0", 46, MCF_CLK) | |
DEFINE_CLK (0,"mcfssi.0", 47, MCF_CLK) | |
DEFINE_CLK (0,"pll.0", 48, MCF_CLK) | |
DEFINE_CLK (0,"mcfrng.0", 49, MCF_CLK) | |
DEFINE_CLK (0,"mcfssi.1", 50, MCF_CLK) | |
DEFINE_CLK (0,"mcfsdhc.0", 51, MCF_CLK) | |
DEFINE_CLK (0,"enet-fec.0", 53, MCF_CLK) | |
DEFINE_CLK (0,"enet-fec.1", 54, MCF_CLK) | |
DEFINE_CLK (0,"switch.0", 55, MCF_CLK) | |
DEFINE_CLK (0,"switch.1", 56, MCF_CLK) | |
DEFINE_CLK (0,"nand.0", 63, MCF_CLK) | |
DEFINE_CLK (1,"mcfow.0", 2, MCF_CLK) | |
DEFINE_CLK (1,"mcfi2c.2", 4, MCF_CLK) | |
DEFINE_CLK (1,"mcfi2c.3", 5, MCF_CLK) | |
DEFINE_CLK (1,"mcfi2c.4", 6, MCF_CLK) | |
DEFINE_CLK (1,"mcfi2c.5", 7, MCF_CLK) | |
DEFINE_CLK (1,"mcfuart.4", 24, MCF_BUSCLK) | |
DEFINE_CLK (1,"mcfuart.5", 25, MCF_BUSCLK) | |
DEFINE_CLK (1,"mcfuart.6", 26, MCF_BUSCLK) | |
DEFINE_CLK (1,"mcfuart.7", 27, MCF_BUSCLK) | |
DEFINE_CLK (1,"mcfuart.8", 28, MCF_BUSCLK) | |
DEFINE_CLK (1,"mcfuart.9", 29, MCF_BUSCLK) | |
DEFINE_CLK (1,"mcfpwm.0", 34, MCF_BUSCLK) | |
DEFINE_CLK (1,"sys.0", 36, MCF_BUSCLK) | |
DEFINE_CLK (1,"gpio.0", 37, MCF_BUSCLK) | |
void __init | config_BSP (char *commandp, int size) |
arch_initcall (init_BSP) | |
Variables | |
struct clk * | mcf_clks [] |
arch_initcall | ( | init_BSP | ) |
DEFINE_CLK | ( | 0 | , |
"flexbus" | , | ||
2 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfcan.0" | , | ||
8 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfcan.1" | , | ||
9 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfi2c.1" | , | ||
14 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfdspi.1" | , | ||
15 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"edma" | , | ||
17 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"intc.0" | , | ||
18 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"intc.1" | , | ||
19 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"intc.2" | , | ||
20 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfi2c.0" | , | ||
22 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfdspi.0" | , | ||
23 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfuart.0" | , | ||
24 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfuart.1" | , | ||
25 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfuart.2" | , | ||
26 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfuart.3" | , | ||
27 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcftmr.0" | , | ||
28 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcftmr.1" | , | ||
29 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcftmr.2" | , | ||
30 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcftmr.3" | , | ||
31 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfpit.0" | , | ||
32 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfpit.1" | , | ||
33 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfpit.2" | , | ||
34 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfpit.3" | , | ||
35 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfeport.0" | , | ||
37 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfadc.0" | , | ||
38 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfdac.0" | , | ||
39 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfrtc.0" | , | ||
42 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfsim.0" | , | ||
43 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfusb-otg.0" | , | ||
44 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfusb-host.0" | , | ||
45 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfddr-sram.0" | , | ||
46 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfssi.0" | , | ||
47 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"pll.0" | , | ||
48 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfrng.0" | , | ||
49 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfssi.1" | , | ||
50 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"mcfsdhc.0" | , | ||
51 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"enet-fec.0" | , | ||
53 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"enet-fec.1" | , | ||
54 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"switch.0" | , | ||
55 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"switch.1" | , | ||
56 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 0 | , |
"nand.0" | , | ||
63 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfow.0" | , | ||
2 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfi2c.2" | , | ||
4 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfi2c.3" | , | ||
5 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfi2c.4" | , | ||
6 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfi2c.5" | , | ||
7 | , | ||
MCF_CLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfuart.4" | , | ||
24 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfuart.5" | , | ||
25 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfuart.6" | , | ||
26 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfuart.7" | , | ||
27 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfuart.8" | , | ||
28 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfuart.9" | , | ||
29 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"mcfpwm.0" | , | ||
34 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"sys.0" | , | ||
36 | , | ||
MCF_BUSCLK | |||
) |
DEFINE_CLK | ( | 1 | , |
"gpio.0" | , | ||
37 | , | ||
MCF_BUSCLK | |||
) |