m68knommu: platform setup for 5206e ColdFire parts
[deliverable/linux.git] / arch / m68knommu / platform / 523x / config.c
CommitLineData
b5aaf3f7
GU
1/***************************************************************************/
2
3/*
4 * linux/arch/m68knommu/platform/523x/config.c
5 *
6 * Sub-architcture dependant initialization code for the Freescale
7 * 523x CPUs.
8 *
9 * Copyright (C) 1999-2005, Greg Ungerer (gerg@snapgear.com)
10 * Copyright (C) 2001-2003, SnapGear Inc. (www.snapgear.com)
11 */
12
13/***************************************************************************/
14
b5aaf3f7 15#include <linux/kernel.h>
b5aaf3f7
GU
16#include <linux/param.h>
17#include <linux/init.h>
18#include <linux/interrupt.h>
19#include <asm/dma.h>
b5aaf3f7
GU
20#include <asm/machdep.h>
21#include <asm/coldfire.h>
22#include <asm/mcfsim.h>
23#include <asm/mcfdma.h>
24
25/***************************************************************************/
26
b5aaf3f7
GU
27void coldfire_reset(void);
28
29/***************************************************************************/
30
31/*
32 * DMA channel base address table.
33 */
34unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS] = {
35 MCF_MBAR + MCFDMA_BASE0,
36};
37
38unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS];
39
40/***************************************************************************/
41
42void 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
50void mcf_autovector(unsigned int vec)
51{
52 /* Everything is auto-vectored on the 5272 */
53}
54
55/***************************************************************************/
56
57void config_BSP(char *commandp, int size)
58{
59 mcf_disableall();
b5aaf3f7
GU
60 mach_reset = coldfire_reset;
61}
62
63/***************************************************************************/
This page took 0.267315 seconds and 5 git commands to generate.