Commit | Line | Data |
---|---|---|
c06cd9bf APR |
1 | /* |
2 | * arch/arm/mach-kirkwood/board-iconnect.c | |
3 | * | |
4 | * Iomega i-connect Board Setup | |
5 | * | |
6 | * This file is licensed under the terms of the GNU General Public | |
7 | * License version 2. This program is licensed "as is" without any | |
8 | * warranty of any kind, whether express or implied. | |
9 | */ | |
10 | ||
11 | #include <linux/kernel.h> | |
12 | #include <linux/init.h> | |
c06cd9bf | 13 | #include <linux/of.h> |
c06cd9bf | 14 | #include <linux/mv643xx_eth.h> |
c06cd9bf | 15 | #include "common.h" |
c06cd9bf APR |
16 | |
17 | static struct mv643xx_eth_platform_data iconnect_ge00_data = { | |
18 | .phy_addr = MV643XX_ETH_PHY_ADDR(11), | |
19 | }; | |
20 | ||
c06cd9bf APR |
21 | void __init iconnect_init(void) |
22 | { | |
c06cd9bf | 23 | kirkwood_ge00_init(&iconnect_ge00_data); |
c06cd9bf APR |
24 | } |
25 | ||
26 | static int __init iconnect_pci_init(void) | |
27 | { | |
28 | if (of_machine_is_compatible("iom,iconnect")) | |
29 | kirkwood_pcie_init(KW_PCIE0); | |
30 | return 0; | |
31 | } | |
32 | subsys_initcall(iconnect_pci_init); |