1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#include <linux/init.h>
19#include <linux/types.h>
20#include <linux/kernel.h>
21#include <linux/rtc.h>
22#include <asm/machdep.h>
23#include <asm/MC68328.h>
24#if defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD)
25#include "bootlogo.h"
26#endif
27
28
29
30int m68328_hwclk(int set, struct rtc_time *t);
31
32
33
34void m68328_reset (void)
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
44
45
46void __init config_BSP(char *command, int len)
47{
48 pr_info("68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
49 pr_info("68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");
50 pr_info("68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n");
51
52 mach_hwclk = m68328_hwclk;
53 mach_reset = m68328_reset;
54}
55
56
57