Pull cpuidle into release branch
[pandora-kernel.git] / arch / m68knommu / platform / 527x / config.c
1 /***************************************************************************/
2
3 /*
4  *      linux/arch/m68knommu/platform/527x/config.c
5  *
6  *      Sub-architcture dependant initialization code for the Freescale
7  *      5270/5271 CPUs.
8  *
9  *      Copyright (C) 1999-2004, Greg Ungerer (gerg@snapgear.com)
10  *      Copyright (C) 2001-2004, SnapGear Inc. (www.snapgear.com)
11  */
12
13 /***************************************************************************/
14
15 #include <linux/kernel.h>
16 #include <linux/param.h>
17 #include <linux/init.h>
18 #include <linux/interrupt.h>
19 #include <asm/dma.h>
20 #include <asm/machdep.h>
21 #include <asm/coldfire.h>
22 #include <asm/mcfsim.h>
23 #include <asm/mcfdma.h>
24
25 /***************************************************************************/
26
27 void coldfire_reset(void);
28
29 /***************************************************************************/
30
31 /*
32  *      DMA channel base address table.
33  */
34 unsigned int   dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
35         MCF_MBAR + MCFDMA_BASE0,
36 };
37
38 unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
39
40 /***************************************************************************/
41
42 void mcf_disableall(void)
43 {
44         *((volatile unsigned long *) (MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRH)) = 0xffffffff;
45         *((volatile unsigned long *) (MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRL)) = 0xffffffff;
46 }
47
48 /***************************************************************************/
49
50 void mcf_autovector(unsigned int vec)
51 {
52         /* Everything is auto-vectored on the 5272 */
53 }
54
55 /***************************************************************************/
56
57 void config_BSP(char *commandp, int size)
58 {
59         mcf_disableall();
60         mach_reset = coldfire_reset;
61 }
62
63 /***************************************************************************/