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