Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 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> |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 13 | #include <linux/of.h> |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 14 | #include <linux/mv643xx_eth.h> |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 15 | #include "common.h" |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 16 | |
| 17 | static struct mv643xx_eth_platform_data iconnect_ge00_data = { |
| 18 | .phy_addr = MV643XX_ETH_PHY_ADDR(11), |
| 19 | }; |
| 20 | |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 21 | void __init iconnect_init(void) |
| 22 | { |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 23 | kirkwood_ge00_init(&iconnect_ge00_data); |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 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); |