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/config.h>
21 #include <linux/types.h>
22 #include <linux/kernel.h>
24 #include <linux/tty.h>
25 #include <linux/console.h>
26 #include <linux/interrupt.h>
27 #include <asm/current.h>
29 #include <asm/setup.h>
30 #include <asm/system.h>
31 #include <asm/pgtable.h>
33 #include <asm/machdep.h>
34 #include <asm/MC68328.h>
36 /***************************************************************************/
38 void m68328_timer_init(irqreturn_t (*timer_routine
) (int, void *, struct pt_regs
*));
39 void m68328_timer_tick(void);
40 unsigned long m68328_timer_gettimeoffset(void);
41 void m68328_timer_gettod(int *year
, int *mon
, int *day
, int *hour
, int *min
, int *sec
);
43 /***************************************************************************/
45 void m68328_reset (void)
48 asm volatile ("moveal #0x10c00000, %a0;\n\t"
49 "moveb #0, 0xFFFFF300;\n\t"
50 "moveal 0(%a0), %sp;\n\t"
51 "moveal 4(%a0), %a0;\n\t"
55 /***************************************************************************/
57 void config_BSP(char *command
, int len
)
59 printk(KERN_INFO
"\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
60 printk(KERN_INFO
"68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");
61 printk(KERN_INFO
"68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n");
63 mach_sched_init
= m68328_timer_init
;
64 mach_tick
= m68328_timer_tick
;
65 mach_gettimeoffset
= m68328_timer_gettimeoffset
;
66 mach_gettod
= m68328_timer_gettod
;
68 mach_set_clock_mmss
= NULL
;
69 mach_reset
= m68328_reset
;
73 /***************************************************************************/