VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / arch / mips / vr41xx / tanbac-tb0229 / setup.c
1 /*
2  *  setup.c, Setup for the TANBAC TB0229 (VR4131DIMM)
3  *
4  *  Copyright (C) 2002-2004  Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
5  *
6  *  Modified for TANBAC TB0229:
7  *  Copyright (C) 2003  Megasolution Inc.  <matsu@megasolution.jp>
8  *
9  *  This program is free software; you can redistribute it and/or modify
10  *  it under the terms of the GNU General Public License as published by
11  *  the Free Software Foundation; either version 2 of the License, or
12  *  (at your option) any later version.
13  *
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *  GNU General Public License for more details.
18  *
19  *  You should have received a copy of the GNU General Public License
20  *  along with this program; if not, write to the Free Software
21  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  */
23 #include <linux/config.h>
24
25 #include <asm/vr41xx/vr41xx.h>
26
27 const char *get_system_type(void)
28 {
29         return "TANBAC TB0229";
30 }
31
32 static int tanbac_tb0229_setup(void)
33 {
34 #ifdef CONFIG_SERIAL_8250
35         vr41xx_select_siu_interface(SIU_RS232C, IRDA_NONE);
36         vr41xx_siu_init();
37         vr41xx_dsiu_init();
38 #endif
39
40         return 0;
41 }
42
43 early_initcall(tanbac_tb0229_setup);