diff options
Diffstat (limited to 'arch/m68knommu/platform/520x')
-rw-r--r-- | arch/m68knommu/platform/520x/Makefile | 19 | ||||
-rw-r--r-- | arch/m68knommu/platform/520x/config.c | 65 |
2 files changed, 84 insertions, 0 deletions
diff --git a/arch/m68knommu/platform/520x/Makefile b/arch/m68knommu/platform/520x/Makefile new file mode 100644 index 000000000000..e861b05106bc --- /dev/null +++ b/arch/m68knommu/platform/520x/Makefile | |||
@@ -0,0 +1,19 @@ | |||
1 | # | ||
2 | # Makefile for the M5208 specific file. | ||
3 | # | ||
4 | |||
5 | # | ||
6 | # If you want to play with the HW breakpoints then you will | ||
7 | # need to add define this, which will give you a stack backtrace | ||
8 | # on the console port whenever a DBG interrupt occurs. You have to | ||
9 | # set up you HW breakpoints to trigger a DBG interrupt: | ||
10 | # | ||
11 | # EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT | ||
12 | # EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT | ||
13 | # | ||
14 | |||
15 | ifdef CONFIG_FULLDEBUG | ||
16 | AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1 | ||
17 | endif | ||
18 | |||
19 | obj-y := config.o | ||
diff --git a/arch/m68knommu/platform/520x/config.c b/arch/m68knommu/platform/520x/config.c new file mode 100644 index 000000000000..71dea2e0f452 --- /dev/null +++ b/arch/m68knommu/platform/520x/config.c | |||
@@ -0,0 +1,65 @@ | |||
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/config.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/param.h> | ||
17 | #include <asm/machdep.h> | ||
18 | #include <asm/dma.h> | ||
19 | |||
20 | /***************************************************************************/ | ||
21 | |||
22 | /* | ||
23 | * DMA channel base address table. | ||
24 | */ | ||
25 | unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS]; | ||
26 | unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS]; | ||
27 | |||
28 | /***************************************************************************/ | ||
29 | |||
30 | void coldfire_pit_tick(void); | ||
31 | void coldfire_pit_init(irqreturn_t (*handler)(int, void *, struct pt_regs *)); | ||
32 | unsigned long coldfire_pit_offset(void); | ||
33 | void coldfire_trap_init(void); | ||
34 | void coldfire_reset(void); | ||
35 | |||
36 | /***************************************************************************/ | ||
37 | |||
38 | /* | ||
39 | * Program the vector to be an auto-vectored. | ||
40 | */ | ||
41 | |||
42 | void mcf_autovector(unsigned int vec) | ||
43 | { | ||
44 | /* Everything is auto-vectored on the 520x devices */ | ||
45 | } | ||
46 | |||
47 | /***************************************************************************/ | ||
48 | |||
49 | void config_BSP(char *commandp, int size) | ||
50 | { | ||
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 | ||
57 | |||
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; | ||
63 | } | ||
64 | |||
65 | /***************************************************************************/ | ||