Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq
[pandora-kernel.git] / arch / m68knommu / platform / 520x / config.c
1 /***************************************************************************/
2
3 /*
4  *  linux/arch/m68knommu/platform/520x/config.c
5  *
6  *  Copyright (C) 2005,      Freescale (www.freescale.com)
7  *  Copyright (C) 2005,      Intec Automation (mike@steroidmicros.com)
8  *  Copyright (C) 1999-2003, Greg Ungerer (gerg@snapgear.com)
9  *  Copyright (C) 2001-2003, SnapGear Inc. (www.snapgear.com)
10  */
11
12 /***************************************************************************/
13
14 #include <linux/kernel.h>
15 #include <linux/param.h>
16 #include <asm/machdep.h>
17 #include <asm/dma.h>
18
19 /***************************************************************************/
20
21 /*
22  *      DMA channel base address table.
23  */
24 unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS];
25 unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
26
27 /***************************************************************************/
28
29 void coldfire_pit_tick(void);
30 void coldfire_pit_init(irqreturn_t (*handler)(int, void *, struct pt_regs *));
31 unsigned long coldfire_pit_offset(void);
32 void coldfire_trap_init(void);
33 void coldfire_reset(void);
34
35 /***************************************************************************/
36
37 /*
38  *  Program the vector to be an auto-vectored.
39  */
40
41 void mcf_autovector(unsigned int vec)
42 {
43     /* Everything is auto-vectored on the 520x devices */
44 }
45
46 /***************************************************************************/
47
48 void config_BSP(char *commandp, int size)
49 {
50 #ifdef CONFIG_BOOTPARAM
51     strncpy(commandp, CONFIG_BOOTPARAM_STRING, size);
52     commandp[size-1] = 0;
53 #else
54     memset(commandp, 0, size);
55 #endif
56
57     mach_sched_init = coldfire_pit_init;
58     mach_tick = coldfire_pit_tick;
59     mach_gettimeoffset = coldfire_pit_offset;
60     mach_trap_init = coldfire_trap_init;
61     mach_reset = coldfire_reset;
62 }
63
64 /***************************************************************************/