2 * Copyright 2012 (C), Simon Baatz <gmbnomis@gmail.com>
4 * arch/arm/mach-kirkwood/board-ib62x0.c
6 * RaidSonic ICY BOX IB-NAS6210 & IB-NAS6220 init for drivers not
7 * converted to flattened device tree yet.
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without any
11 * warranty of any kind, whether express or implied.
14 #include <linux/kernel.h>
15 #include <linux/init.h>
16 #include <linux/platform_device.h>
17 #include <linux/mtd/partitions.h>
18 #include <linux/ata_platform.h>
19 #include <linux/mv643xx_eth.h>
20 #include <linux/input.h>
21 #include <asm/mach-types.h>
22 #include <asm/mach/arch.h>
23 #include <mach/kirkwood.h>
27 static struct mv643xx_eth_platform_data ib62x0_ge00_data = {
28 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
31 static unsigned int ib62x0_mpp_config[] __initdata = {
40 MPP22_GPIO, /* OS LED red */
41 MPP24_GPIO, /* Power off device */
42 MPP25_GPIO, /* OS LED green */
43 MPP27_GPIO, /* USB transfer LED */
44 MPP28_GPIO, /* Reset button */
45 MPP29_GPIO, /* USB Copy button */
49 void __init ib62x0_init(void)
52 * Basic setup. Needs to be called early.
54 kirkwood_mpp_conf(ib62x0_mpp_config);
56 kirkwood_ge00_init(&ib62x0_ge00_data);