diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/m68k/platform/68328/config.c | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'arch/m68k/platform/68328/config.c')
-rw-r--r-- | arch/m68k/platform/68328/config.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/arch/m68k/platform/68328/config.c b/arch/m68k/platform/68328/config.c new file mode 100644 index 00000000000..a7bd21deb00 --- /dev/null +++ b/arch/m68k/platform/68328/config.c | |||
@@ -0,0 +1,52 @@ | |||
1 | /***************************************************************************/ | ||
2 | |||
3 | /* | ||
4 | * linux/arch/m68knommu/platform/68328/config.c | ||
5 | * | ||
6 | * Copyright (C) 1993 Hamish Macdonald | ||
7 | * Copyright (C) 1999 D. Jeff Dionne | ||
8 | * | ||
9 | * This file is subject to the terms and conditions of the GNU General Public | ||
10 | * License. See the file COPYING in the main directory of this archive | ||
11 | * for more details. | ||
12 | * | ||
13 | * VZ Support/Fixes Evan Stawnyczy <e@lineo.ca> | ||
14 | */ | ||
15 | |||
16 | /***************************************************************************/ | ||
17 | |||
18 | #include <linux/types.h> | ||
19 | #include <linux/kernel.h> | ||
20 | #include <asm/system.h> | ||
21 | #include <asm/machdep.h> | ||
22 | #include <asm/MC68328.h> | ||
23 | |||
24 | /***************************************************************************/ | ||
25 | |||
26 | void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec); | ||
27 | |||
28 | /***************************************************************************/ | ||
29 | |||
30 | void m68328_reset (void) | ||
31 | { | ||
32 | local_irq_disable(); | ||
33 | asm volatile ("moveal #0x10c00000, %a0;\n\t" | ||
34 | "moveb #0, 0xFFFFF300;\n\t" | ||
35 | "moveal 0(%a0), %sp;\n\t" | ||
36 | "moveal 4(%a0), %a0;\n\t" | ||
37 | "jmp (%a0);"); | ||
38 | } | ||
39 | |||
40 | /***************************************************************************/ | ||
41 | |||
42 | void config_BSP(char *command, int len) | ||
43 | { | ||
44 | printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n"); | ||
45 | printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n"); | ||
46 | printk(KERN_INFO "68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n"); | ||
47 | |||
48 | mach_gettod = m68328_timer_gettod; | ||
49 | mach_reset = m68328_reset; | ||
50 | } | ||
51 | |||
52 | /***************************************************************************/ | ||