m68k: m68328: move platform code to separate files
[linux-2.6-microblaze.git] / arch / m68k / 68000 / m68EZ328.c
1 /***************************************************************************/
2
3 /*
4  *  m68EZ328.c - 68EZ328 specific config
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
14 /***************************************************************************/
15
16 #include <linux/init.h>
17 #include <linux/types.h>
18 #include <linux/kernel.h>
19 #include <linux/rtc.h>
20 #include <linux/pgtable.h>
21 #include <asm/machdep.h>
22 #include <asm/MC68EZ328.h>
23 #ifdef CONFIG_UCSIMM
24 #include <asm/bootstd.h>
25 #endif
26
27 #include "m68328.h"
28
29 /***************************************************************************/
30
31 void m68ez328_reset(void)
32 {
33   local_irq_disable();
34   asm volatile (
35     "moveal #0x10c00000, %a0;\n"
36     "moveb #0, 0xFFFFF300;\n"
37     "moveal 0(%a0), %sp;\n"
38     "moveal 4(%a0), %a0;\n"
39     "jmp (%a0);\n"
40     );
41 }
42
43 /***************************************************************************/
44
45 void __init config_BSP(char *command, int len)
46 {
47   pr_info("68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc\n");
48
49 #ifdef CONFIG_UCSIMM
50   init_ucsimm(command, len);
51 #endif
52
53   mach_sched_init = hw_timer_init;
54   mach_hwclk = m68328_hwclk;
55   mach_reset = m68ez328_reset;
56 }
57
58 /***************************************************************************/