kbuild: fix silentoldconfig with make O=
[linux-2.6/verdex.git] / arch / m68knommu / platform / 68EZ328 / config.c
blobd8d56e5de31073b38e73a5477097d0c20567631d
1 /***************************************************************************/
3 /*
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
11 * for more details.
14 /***************************************************************************/
16 #include <stdarg.h>
17 #include <linux/config.h>
18 #include <linux/types.h>
19 #include <linux/kernel.h>
20 #include <linux/mm.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>
29 #ifdef CONFIG_UCSIMM
30 #include <asm/bootstd.h>
31 #endif
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)
44 local_irq_disable();
45 asm volatile ("
46 moveal #0x10c00000, %a0;
47 moveb #0, 0xFFFFF300;
48 moveal 0(%a0), %sp;
49 moveal 4(%a0), %a0;
50 jmp (%a0);
51 ");
54 /***************************************************************************/
56 unsigned char *cs8900a_hwaddr;
57 static int errno;
59 #ifdef CONFIG_UCSIMM
60 _bsc0(char *, getserialnum)
61 _bsc1(unsigned char *, gethwaddr, int, a)
62 _bsc1(char *, getbenv, char *, a)
63 #endif
65 void config_BSP(char *command, int len)
67 unsigned char *p;
69 printk(KERN_INFO "\n68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc\n");
71 #ifdef CONFIG_UCSIMM
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);
79 else command[0] = 0;
80 #endif
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;
86 mach_hwclk = NULL;
87 mach_set_clock_mmss = NULL;
88 mach_reset = m68ez328_reset;
91 /***************************************************************************/