1 /***************************************************************************/
4 * linux/arch/m68knommu/platform/68328/config.c
6 * Copyright (C) 1993 Hamish Macdonald
7 * Copyright (C) 1999 D. Jeff Dionne
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
13 * VZ Support/Fixes Evan Stawnyczy <e@lineo.ca>
16 /***************************************************************************/
20 #include <linux/types.h>
21 #include <linux/kernel.h>
23 #include <linux/tty.h>
24 #include <linux/console.h>
25 #include <linux/interrupt.h>
26 #include <asm/current.h>
28 #include <asm/setup.h>
29 #include <asm/system.h>
30 #include <asm/pgtable.h>
32 #include <asm/machdep.h>
33 #include <asm/MC68328.h>
35 /***************************************************************************/
37 void m68328_timer_init(irqreturn_t (*timer_routine) (int, void *, struct pt_regs *));
38 void m68328_timer_tick(void);
39 unsigned long m68328_timer_gettimeoffset(void);
40 void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);
42 /***************************************************************************/
44 void m68328_reset (void)
47 asm volatile ("moveal #0x10c00000, %a0;\n\t"
48 "moveb #0, 0xFFFFF300;\n\t"
49 "moveal 0(%a0), %sp;\n\t"
50 "moveal 4(%a0), %a0;\n\t"
54 /***************************************************************************/
56 void config_BSP(char *command, int len)
58 printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
59 printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");
60 printk(KERN_INFO "68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n");
62 mach_sched_init = m68328_timer_init;
63 mach_tick = m68328_timer_tick;
64 mach_gettimeoffset = m68328_timer_gettimeoffset;
65 mach_gettod = m68328_timer_gettod;
67 mach_set_clock_mmss = NULL;
68 mach_reset = m68328_reset;
72 /***************************************************************************/