[ubicom32]: move new files out from platform support patch
[openwrt/svn-archive/archive.git] / target / linux / ubicom32 / files / arch / ubicom32 / mach-ip7k / board-ip7500module.c
1 /*
2 * arch/ubicom32/mach-ip7k/board-ip7500module.c
3 * Support for IP7500 CPU module board.
4 *
5 * This file supports the IP7500 CPU module board:
6 * 8007-0510 Rev 1.0
7 * 8007-0510A Rev 1.0 (with ethernet)
8 *
9 * DIP Switch SW2 configuration: (*) default
10 * POS 1: on(*) = PCI enabled, off = PCI disabled
11 * POS 2: on(*) = TTYX => PA6, off = TTYX => PF12
12 * POS 3: on(*) = TTYY => PA7, off = TTYY => PF15
13 * POS 4: unused
14 *
15 * (C) Copyright 2009, Ubicom, Inc.
16 *
17 * This file is part of the Ubicom32 Linux Kernel Port.
18 *
19 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
20 * it and/or modify it under the terms of the GNU General Public License
21 * as published by the Free Software Foundation, either version 2 of the
22 * License, or (at your option) any later version.
23 *
24 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
25 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
26 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
27 * the GNU General Public License for more details.
28 *
29 * You should have received a copy of the GNU General Public License
30 * along with the Ubicom32 Linux Kernel Port. If not,
31 * see <http://www.gnu.org/licenses/>.
32 *
33 * Ubicom32 implementation derived from (with many thanks):
34 * arch/m68knommu
35 * arch/blackfin
36 * arch/parisc
37 */
38 #include <linux/device.h>
39 #include <linux/gpio.h>
40 #include <asm/board.h>
41
42 /*
43 * ip7500module_init
44 * Called to add the devices which we have on this board
45 */
46 static int __init ip7500module_init(void)
47 {
48 board_init();
49
50 ubi_gpio_init();
51
52 return 0;
53 }
54
55 arch_initcall(ip7500module_init);