blob: c8ebde4919e26fa4bf1db5eb5e8556e2d63ddda9 [file] [log] [blame]
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +02001/*
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)c06cd9b2012-04-18 23:16:41 +020013#include <linux/of.h>
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020014#include <linux/mv643xx_eth.h>
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020015#include "common.h"
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020016
17static struct mv643xx_eth_platform_data iconnect_ge00_data = {
18 .phy_addr = MV643XX_ETH_PHY_ADDR(11),
19};
20
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020021void __init iconnect_init(void)
22{
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020023 kirkwood_ge00_init(&iconnect_ge00_data);
Arnaud Patard (Rtp)c06cd9b2012-04-18 23:16:41 +020024}
25
26static 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}
32subsys_initcall(iconnect_pci_init);