1 /***************************************************************************/
4 * linux/arch/m68knommu/platform/68EZ328/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
14 /***************************************************************************/
17 #include <linux/config.h>
18 #include <linux/types.h>
19 #include <linux/kernel.h>
21 #include <linux/tty.h>
22 #include <linux/console.h>
24 #include <asm/setup.h>
25 #include <asm/system.h>
26 #include <asm/pgtable.h>
27 #include <asm/machdep.h>
28 #include <asm/MC68EZ328.h>
30 #include <asm/bootstd.h>
33 /***************************************************************************/
35 void m68328_timer_init(irqreturn_t (*timer_routine
) (int, void *, struct pt_regs
*));
36 void m68328_timer_tick(void);
37 unsigned long m68328_timer_gettimeoffset(void);
38 void m68328_timer_gettod(int *year
, int *mon
, int *day
, int *hour
, int *min
, int *sec
);
40 /***************************************************************************/
42 void m68ez328_reset(void)
46 moveal #0x10c00000, %a0;
54 /***************************************************************************/
56 unsigned char *cs8900a_hwaddr
;
60 _bsc0(char *, getserialnum
)
61 _bsc1(unsigned char *, gethwaddr
, int, a
)
62 _bsc1(char *, getbenv
, char *, a
)
65 void config_BSP(char *command
, int len
)
69 printk(KERN_INFO
"\n68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc\n");
72 printk(KERN_INFO
"uCsimm serial string [%s]\n",getserialnum());
73 p
= cs8900a_hwaddr
= gethwaddr(0);
74 printk(KERN_INFO
"uCsimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
75 p
[0], p
[1], p
[2], p
[3], p
[4], p
[5]);
77 p
= getbenv("APPEND");
78 if (p
) strcpy(p
,command
);
82 mach_sched_init
= m68328_timer_init
;
83 mach_tick
= m68328_timer_tick
;
84 mach_gettimeoffset
= m68328_timer_gettimeoffset
;
85 mach_gettod
= m68328_timer_gettod
;
87 mach_set_clock_mmss
= NULL
;
88 mach_reset
= m68ez328_reset
;
91 /***************************************************************************/