Commit | Line | Data |
---|---|---|
ee721126 GU |
1 | /***************************************************************************/ |
2 | ||
1da177e4 | 3 | /* |
99e08374 | 4 | * m68328.c - 68328 specific config |
1da177e4 LT |
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 | ||
ee721126 GU |
16 | /***************************************************************************/ |
17 | ||
df592eb5 | 18 | #include <linux/init.h> |
1da177e4 LT |
19 | #include <linux/types.h> |
20 | #include <linux/kernel.h> | |
95177461 | 21 | #include <linux/rtc.h> |
1da177e4 LT |
22 | #include <asm/machdep.h> |
23 | #include <asm/MC68328.h> | |
c0e0c89c GU |
24 | #if defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD) |
25 | #include "bootlogo.h" | |
26 | #endif | |
1da177e4 | 27 | |
ee721126 | 28 | /***************************************************************************/ |
1da177e4 | 29 | |
95177461 | 30 | int m68328_hwclk(int set, struct rtc_time *t); |
1da177e4 | 31 | |
ee721126 | 32 | /***************************************************************************/ |
1da177e4 | 33 | |
ee721126 | 34 | void m68328_reset (void) |
1da177e4 LT |
35 | { |
36 | local_irq_disable(); | |
37 | asm volatile ("moveal #0x10c00000, %a0;\n\t" | |
38 | "moveb #0, 0xFFFFF300;\n\t" | |
39 | "moveal 0(%a0), %sp;\n\t" | |
40 | "moveal 4(%a0), %a0;\n\t" | |
41 | "jmp (%a0);"); | |
42 | } | |
43 | ||
ee721126 GU |
44 | /***************************************************************************/ |
45 | ||
df592eb5 | 46 | void __init config_BSP(char *command, int len) |
1da177e4 LT |
47 | { |
48 | printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n"); | |
49 | printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n"); | |
50 | printk(KERN_INFO "68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n"); | |
51 | ||
95177461 | 52 | mach_hwclk = m68328_hwclk; |
0e298ebe | 53 | mach_reset = m68328_reset; |
1da177e4 | 54 | } |
ee721126 GU |
55 | |
56 | /***************************************************************************/ |