]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/m68k/68000/m68EZ328.c
MIPS: Fix sigreturn via VDSO on microMIPS kernel
[mirror_ubuntu-zesty-kernel.git] / arch / m68k / 68000 / m68EZ328.c
CommitLineData
03981f24
GU
1/***************************************************************************/
2
1da177e4 3/*
99e08374 4 * m68EZ328.c - 68EZ328 specific config
1da177e4
LT
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
03981f24
GU
14/***************************************************************************/
15
df592eb5 16#include <linux/init.h>
1da177e4
LT
17#include <linux/types.h>
18#include <linux/kernel.h>
95177461 19#include <linux/rtc.h>
1da177e4 20#include <asm/pgtable.h>
1da177e4
LT
21#include <asm/machdep.h>
22#include <asm/MC68EZ328.h>
23#ifdef CONFIG_UCSIMM
24#include <asm/bootstd.h>
25#endif
1da177e4 26
03981f24 27/***************************************************************************/
1da177e4 28
95177461 29int m68328_hwclk(int set, struct rtc_time *t);
1da177e4 30
03981f24 31/***************************************************************************/
1da177e4 32
03981f24 33void m68ez328_reset(void)
1da177e4
LT
34{
35 local_irq_disable();
3448ff89
GU
36 asm volatile (
37 "moveal #0x10c00000, %a0;\n"
38 "moveb #0, 0xFFFFF300;\n"
39 "moveal 0(%a0), %sp;\n"
40 "moveal 4(%a0), %a0;\n"
41 "jmp (%a0);\n"
42 );
1da177e4
LT
43}
44
03981f24
GU
45/***************************************************************************/
46
1da177e4
LT
47unsigned char *cs8900a_hwaddr;
48static int errno;
49
50#ifdef CONFIG_UCSIMM
51_bsc0(char *, getserialnum)
52_bsc1(unsigned char *, gethwaddr, int, a)
53_bsc1(char *, getbenv, char *, a)
54#endif
55
df592eb5 56void __init config_BSP(char *command, int len)
1da177e4
LT
57{
58 unsigned char *p;
59
60 printk(KERN_INFO "\n68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc\n");
61
62#ifdef CONFIG_UCSIMM
63 printk(KERN_INFO "uCsimm serial string [%s]\n",getserialnum());
64 p = cs8900a_hwaddr = gethwaddr(0);
73cb9dc0 65 printk(KERN_INFO "uCsimm hwaddr %pM\n", p);
1da177e4
LT
66
67 p = getbenv("APPEND");
68 if (p) strcpy(p,command);
69 else command[0] = 0;
70#endif
0b175516
DP
71
72 mach_sched_init = hw_timer_init;
95177461 73 mach_hwclk = m68328_hwclk;
f1353707 74 mach_reset = m68ez328_reset;
1da177e4 75}
03981f24
GU
76
77/***************************************************************************/