Stefan Peter | 5492a11 | 2012-11-18 16:46:16 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 MPL AG, Switzerland |
| 3 | * Stefan Peter <s.peter@mpl.ch> |
| 4 | * |
| 5 | * arch/arm/mach-kirkwood/board-mplcec4.c |
| 6 | * |
| 7 | * This file is licensed under the terms of the GNU General Public |
| 8 | * License version 2. This program is licensed "as is" without any |
| 9 | * warranty of any kind, whether express or implied. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/kernel.h> |
| 13 | #include <linux/init.h> |
| 14 | #include <linux/mv643xx_eth.h> |
Stefan Peter | 5492a11 | 2012-11-18 16:46:16 +0100 | [diff] [blame] | 15 | #include "common.h" |
Stefan Peter | 5492a11 | 2012-11-18 16:46:16 +0100 | [diff] [blame] | 16 | |
| 17 | static struct mv643xx_eth_platform_data mplcec4_ge00_data = { |
| 18 | .phy_addr = MV643XX_ETH_PHY_ADDR(1), |
| 19 | }; |
| 20 | |
| 21 | static struct mv643xx_eth_platform_data mplcec4_ge01_data = { |
| 22 | .phy_addr = MV643XX_ETH_PHY_ADDR(2), |
| 23 | }; |
| 24 | |
Stefan Peter | 5492a11 | 2012-11-18 16:46:16 +0100 | [diff] [blame] | 25 | void __init mplcec4_init(void) |
| 26 | { |
| 27 | /* |
| 28 | * Basic setup. Needs to be called early. |
| 29 | */ |
Stefan Peter | 5492a11 | 2012-11-18 16:46:16 +0100 | [diff] [blame] | 30 | kirkwood_ge00_init(&mplcec4_ge00_data); |
| 31 | kirkwood_ge01_init(&mplcec4_ge01_data); |
Stefan Peter | 5492a11 | 2012-11-18 16:46:16 +0100 | [diff] [blame] | 32 | kirkwood_pcie_init(KW_PCIE0); |
| 33 | } |
| 34 | |
| 35 | |
| 36 | |