m68k: m68328: move platform code to separate files
[linux-2.6-microblaze.git] / arch / m68k / 68000 / m68VZ328.c
1 /***************************************************************************/
2
3 /*
4  *  m68VZ328.c - 68VZ328 specific config
5  *
6  *  Copyright (C) 1993 Hamish Macdonald
7  *  Copyright (C) 1999 D. Jeff Dionne
8  *  Copyright (C) 2001 Georges Menie, Ken Desmet
9  *
10  * This file is subject to the terms and conditions of the GNU General Public
11  * License.  See the file COPYING in the main directory of this archive
12  * for more details.
13  */
14
15 /***************************************************************************/
16
17 #include <linux/init.h>
18 #include <linux/types.h>
19 #include <linux/kernel.h>
20 #include <linux/kd.h>
21 #include <linux/netdevice.h>
22 #include <linux/interrupt.h>
23 #include <linux/irq.h>
24 #include <linux/rtc.h>
25 #include <linux/pgtable.h>
26
27 #include <asm/machdep.h>
28 #include <asm/MC68VZ328.h>
29 #include <asm/bootstd.h>
30
31 #ifdef CONFIG_INIT_LCD
32 #include "bootlogo-vz.h"
33 #endif
34
35 #include "m68328.h"
36
37 /***************************************************************************/
38 static void m68vz328_reset(void)
39 {
40         local_irq_disable();
41         asm volatile (
42                 "moveal #0x10c00000, %a0;\n\t"
43                 "moveb #0, 0xFFFFF300;\n\t"
44                 "moveal 0(%a0), %sp;\n\t"
45                 "moveal 4(%a0), %a0;\n\t"
46                 "jmp (%a0);\n"
47         );
48 }
49
50 /***************************************************************************/
51
52 void __init config_BSP(char *command, int size)
53 {
54         pr_info("68VZ328 DragonBallVZ support (c) 2001 Lineo, Inc.\n");
55
56         mach_sched_init = hw_timer_init;
57         mach_hwclk = m68328_hwclk;
58         mach_reset = m68vz328_reset;
59
60 #ifdef CONFIG_UCDIMM
61         init_ucsimm(command, len);
62 #elif defined(CONFIG_DRAGEN2)
63         init_dragen2(command, len);
64 #endif
65 }
66
67 /***************************************************************************/