Remove obsolete #include <linux/config.h>
[sfrench/cifs-2.6.git] / arch / m68knommu / platform / 68EZ328 / config.c
1 /***************************************************************************/
2
3 /*
4  *  linux/arch/m68knommu/platform/68EZ328/config.c
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
14 /***************************************************************************/
15
16 #include <stdarg.h>
17 #include <linux/types.h>
18 #include <linux/kernel.h>
19 #include <linux/mm.h>
20 #include <linux/tty.h>
21 #include <linux/console.h>
22
23 #include <asm/setup.h>
24 #include <asm/system.h>
25 #include <asm/pgtable.h>
26 #include <asm/machdep.h>
27 #include <asm/MC68EZ328.h>
28 #ifdef CONFIG_UCSIMM
29 #include <asm/bootstd.h>
30 #endif
31
32 /***************************************************************************/
33
34 void m68328_timer_init(irqreturn_t (*timer_routine) (int, void *, struct pt_regs *));
35 void m68328_timer_tick(void);
36 unsigned long m68328_timer_gettimeoffset(void);
37 void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);
38
39 /***************************************************************************/
40
41 void m68ez328_reset(void)
42 {
43   local_irq_disable();
44   asm volatile (
45     "moveal #0x10c00000, %a0;\n"
46     "moveb #0, 0xFFFFF300;\n"
47     "moveal 0(%a0), %sp;\n"
48     "moveal 4(%a0), %a0;\n"
49     "jmp (%a0);\n"
50     );
51 }
52
53 /***************************************************************************/
54
55 unsigned char *cs8900a_hwaddr;
56 static int errno;
57
58 #ifdef CONFIG_UCSIMM
59 _bsc0(char *, getserialnum)
60 _bsc1(unsigned char *, gethwaddr, int, a)
61 _bsc1(char *, getbenv, char *, a)
62 #endif
63
64 void config_BSP(char *command, int len)
65 {
66   unsigned char *p;
67
68   printk(KERN_INFO "\n68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc\n");
69
70 #ifdef CONFIG_UCSIMM
71   printk(KERN_INFO "uCsimm serial string [%s]\n",getserialnum());
72   p = cs8900a_hwaddr = gethwaddr(0);
73   printk(KERN_INFO "uCsimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",
74          p[0], p[1], p[2], p[3], p[4], p[5]);
75
76   p = getbenv("APPEND");
77   if (p) strcpy(p,command);
78   else command[0] = 0;
79 #endif
80  
81   mach_sched_init      = m68328_timer_init;
82   mach_tick            = m68328_timer_tick;
83   mach_gettimeoffset   = m68328_timer_gettimeoffset;
84   mach_gettod          = m68328_timer_gettod;
85   mach_hwclk           = NULL;
86   mach_set_clock_mmss  = NULL;
87   mach_reset           = m68ez328_reset;
88 }
89
90 /***************************************************************************/