m68knommu: make BOOTPARAM setup common
[linux-2.6/x86.git] / arch / m68knommu / platform / 528x / config.c
blobaab1ef0c1f7837f6dbd4fb99becded00c630af07
1 /***************************************************************************/
3 /*
4 * linux/arch/m68knommu/platform/528x/config.c
6 * Sub-architcture dependant initialization code for the Motorola
7 * 5280 and 5282 CPUs.
9 * Copyright (C) 1999-2003, Greg Ungerer (gerg@snapgear.com)
10 * Copyright (C) 2001-2003, SnapGear Inc. (www.snapgear.com)
13 /***************************************************************************/
15 #include <linux/kernel.h>
16 #include <linux/sched.h>
17 #include <linux/param.h>
18 #include <linux/init.h>
19 #include <linux/interrupt.h>
20 #include <asm/dma.h>
21 #include <asm/traps.h>
22 #include <asm/machdep.h>
23 #include <asm/coldfire.h>
24 #include <asm/mcfsim.h>
25 #include <asm/mcfdma.h>
27 /***************************************************************************/
29 void coldfire_pit_tick(void);
30 void coldfire_pit_init(irq_handler_t handler);
31 unsigned long coldfire_pit_offset(void);
32 void coldfire_trap_init(void);
33 void coldfire_reset(void);
35 /***************************************************************************/
38 * DMA channel base address table.
40 unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
41 MCF_MBAR + MCFDMA_BASE0,
44 unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
46 /***************************************************************************/
48 void mcf_disableall(void)
50 *((volatile unsigned long *) (MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRH)) = 0xffffffff;
51 *((volatile unsigned long *) (MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRL)) = 0xffffffff;
54 /***************************************************************************/
56 void mcf_autovector(unsigned int vec)
58 /* Everything is auto-vectored on the 5272 */
61 /***************************************************************************/
63 void config_BSP(char *commandp, int size)
65 mcf_disableall();
66 mach_sched_init = coldfire_pit_init;
67 mach_tick = coldfire_pit_tick;
68 mach_gettimeoffset = coldfire_pit_offset;
69 mach_trap_init = coldfire_trap_init;
70 mach_reset = coldfire_reset;
73 /***************************************************************************/