xref: /linux/arch/m68k/coldfire/m5407.c (revision ece9ae6515727d56ca21a8c925965b731a88b43b)
1f86b9e03SGreg Ungerer /***************************************************************************/
2f86b9e03SGreg Ungerer 
3f86b9e03SGreg Ungerer /*
4*ece9ae65SGreg Ungerer  *	m5407.c  -- platform support for ColdFire 5407 based boards
5f86b9e03SGreg Ungerer  *
6f86b9e03SGreg Ungerer  *	Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com)
7f86b9e03SGreg Ungerer  *	Copyright (C) 2000, Lineo (www.lineo.com)
8f86b9e03SGreg Ungerer  */
9f86b9e03SGreg Ungerer 
10f86b9e03SGreg Ungerer /***************************************************************************/
11f86b9e03SGreg Ungerer 
12f86b9e03SGreg Ungerer #include <linux/kernel.h>
13f86b9e03SGreg Ungerer #include <linux/param.h>
14f86b9e03SGreg Ungerer #include <linux/init.h>
15f86b9e03SGreg Ungerer #include <linux/io.h>
16f86b9e03SGreg Ungerer #include <asm/machdep.h>
17f86b9e03SGreg Ungerer #include <asm/coldfire.h>
18f86b9e03SGreg Ungerer #include <asm/mcfsim.h>
19f86b9e03SGreg Ungerer #include <asm/mcfclk.h>
20f86b9e03SGreg Ungerer 
21f86b9e03SGreg Ungerer /***************************************************************************/
22f86b9e03SGreg Ungerer 
23f86b9e03SGreg Ungerer DEFINE_CLK(pll, "pll.0", MCF_CLK);
24f86b9e03SGreg Ungerer DEFINE_CLK(sys, "sys.0", MCF_BUSCLK);
25f86b9e03SGreg Ungerer DEFINE_CLK(mcftmr0, "mcftmr.0", MCF_BUSCLK);
26f86b9e03SGreg Ungerer DEFINE_CLK(mcftmr1, "mcftmr.1", MCF_BUSCLK);
27f86b9e03SGreg Ungerer DEFINE_CLK(mcfuart0, "mcfuart.0", MCF_BUSCLK);
28f86b9e03SGreg Ungerer DEFINE_CLK(mcfuart1, "mcfuart.1", MCF_BUSCLK);
29f86b9e03SGreg Ungerer 
30f86b9e03SGreg Ungerer struct clk *mcf_clks[] = {
31f86b9e03SGreg Ungerer 	&clk_pll,
32f86b9e03SGreg Ungerer 	&clk_sys,
33f86b9e03SGreg Ungerer 	&clk_mcftmr0,
34f86b9e03SGreg Ungerer 	&clk_mcftmr1,
35f86b9e03SGreg Ungerer 	&clk_mcfuart0,
36f86b9e03SGreg Ungerer 	&clk_mcfuart1,
37f86b9e03SGreg Ungerer 	NULL
38f86b9e03SGreg Ungerer };
39f86b9e03SGreg Ungerer 
40f86b9e03SGreg Ungerer /***************************************************************************/
41f86b9e03SGreg Ungerer 
42f86b9e03SGreg Ungerer void __init config_BSP(char *commandp, int size)
43f86b9e03SGreg Ungerer {
44f86b9e03SGreg Ungerer 	mach_sched_init = hw_timer_init;
45f86b9e03SGreg Ungerer 
46f86b9e03SGreg Ungerer 	/* Only support the external interrupts on their primary level */
47f86b9e03SGreg Ungerer 	mcf_mapirq2imr(25, MCFINTC_EINT1);
48f86b9e03SGreg Ungerer 	mcf_mapirq2imr(27, MCFINTC_EINT3);
49f86b9e03SGreg Ungerer 	mcf_mapirq2imr(29, MCFINTC_EINT5);
50f86b9e03SGreg Ungerer 	mcf_mapirq2imr(31, MCFINTC_EINT7);
51f86b9e03SGreg Ungerer }
52f86b9e03SGreg Ungerer 
53f86b9e03SGreg Ungerer /***************************************************************************/
54