Commit | Line | Data |
---|---|---|
03981f24 GU |
1 | /***************************************************************************/ |
2 | ||
1da177e4 | 3 | /* |
99e08374 | 4 | * m68EZ328.c - 68EZ328 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 | ||
03981f24 GU |
14 | /***************************************************************************/ |
15 | ||
df592eb5 | 16 | #include <linux/init.h> |
1da177e4 LT |
17 | #include <linux/types.h> |
18 | #include <linux/kernel.h> | |
95177461 | 19 | #include <linux/rtc.h> |
1da177e4 | 20 | #include <asm/pgtable.h> |
1da177e4 LT |
21 | #include <asm/machdep.h> |
22 | #include <asm/MC68EZ328.h> | |
23 | #ifdef CONFIG_UCSIMM | |
24 | #include <asm/bootstd.h> | |
25 | #endif | |
1da177e4 | 26 | |
03981f24 | 27 | /***************************************************************************/ |
1da177e4 | 28 | |
95177461 | 29 | int m68328_hwclk(int set, struct rtc_time *t); |
1da177e4 | 30 | |
03981f24 | 31 | /***************************************************************************/ |
1da177e4 | 32 | |
03981f24 | 33 | void m68ez328_reset(void) |
1da177e4 LT |
34 | { |
35 | local_irq_disable(); | |
3448ff89 GU |
36 | asm volatile ( |
37 | "moveal #0x10c00000, %a0;\n" | |
38 | "moveb #0, 0xFFFFF300;\n" | |
39 | "moveal 0(%a0), %sp;\n" | |
40 | "moveal 4(%a0), %a0;\n" | |
41 | "jmp (%a0);\n" | |
42 | ); | |
1da177e4 LT |
43 | } |
44 | ||
03981f24 GU |
45 | /***************************************************************************/ |
46 | ||
1da177e4 LT |
47 | unsigned char *cs8900a_hwaddr; |
48 | static int errno; | |
49 | ||
50 | #ifdef CONFIG_UCSIMM | |
51 | _bsc0(char *, getserialnum) | |
52 | _bsc1(unsigned char *, gethwaddr, int, a) | |
53 | _bsc1(char *, getbenv, char *, a) | |
54 | #endif | |
55 | ||
df592eb5 | 56 | void __init config_BSP(char *command, int len) |
1da177e4 LT |
57 | { |
58 | unsigned char *p; | |
59 | ||
60 | printk(KERN_INFO "\n68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc\n"); | |
61 | ||
62 | #ifdef CONFIG_UCSIMM | |
63 | printk(KERN_INFO "uCsimm serial string [%s]\n",getserialnum()); | |
64 | p = cs8900a_hwaddr = gethwaddr(0); | |
65 | printk(KERN_INFO "uCsimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", | |
66 | p[0], p[1], p[2], p[3], p[4], p[5]); | |
67 | ||
68 | p = getbenv("APPEND"); | |
69 | if (p) strcpy(p,command); | |
70 | else command[0] = 0; | |
71 | #endif | |
0b175516 DP |
72 | |
73 | mach_sched_init = hw_timer_init; | |
95177461 | 74 | mach_hwclk = m68328_hwclk; |
f1353707 | 75 | mach_reset = m68ez328_reset; |
1da177e4 | 76 | } |
03981f24 GU |
77 | |
78 | /***************************************************************************/ |