allow coexistance of N build and AC build.
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / arch / m68knommu / platform / 520x / config.c
blob58b2878deb61e8524de686639cd63ff5ef1fa018
1 /***************************************************************************/
3 /*
4 * linux/arch/m68knommu/platform/520x/config.c
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)
12 /***************************************************************************/
14 #include <linux/kernel.h>
15 #include <linux/param.h>
16 #include <linux/interrupt.h>
17 #include <asm/machdep.h>
18 #include <asm/dma.h>
20 /***************************************************************************/
23 * DMA channel base address table.
25 unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS];
26 unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
28 /***************************************************************************/
30 void coldfire_pit_tick(void);
31 void coldfire_pit_init(irq_handler_t handler);
32 unsigned long coldfire_pit_offset(void);
33 void coldfire_trap_init(void);
34 void coldfire_reset(void);
36 /***************************************************************************/
39 * Program the vector to be an auto-vectored.
42 void mcf_autovector(unsigned int vec)
44 /* Everything is auto-vectored on the 520x devices */
47 /***************************************************************************/
49 void config_BSP(char *commandp, int size)
51 #ifdef CONFIG_BOOTPARAM
52 strncpy(commandp, CONFIG_BOOTPARAM_STRING, size);
53 commandp[size-1] = 0;
54 #else
55 memset(commandp, 0, size);
56 #endif
58 mach_sched_init = coldfire_pit_init;
59 mach_tick = coldfire_pit_tick;
60 mach_gettimeoffset = coldfire_pit_offset;
61 mach_trap_init = coldfire_trap_init;
62 mach_reset = coldfire_reset;
65 /***************************************************************************/