Jason Cooper | 6fa6b87 | 2012-03-15 00:52:31 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 (C), Jason Cooper <jason@lakedaemon.net> |
| 3 | * |
| 4 | * arch/arm/mach-kirkwood/board-dreamplug.c |
| 5 | * |
| 6 | * Marvell DreamPlug Reference Board Init for drivers not converted to |
| 7 | * flattened device tree yet. |
| 8 | * |
| 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. |
| 12 | */ |
| 13 | |
| 14 | #include <linux/kernel.h> |
| 15 | #include <linux/init.h> |
Jason Cooper | 6fa6b87 | 2012-03-15 00:52:31 +0000 | [diff] [blame] | 16 | #include <linux/mv643xx_eth.h> |
Jason Cooper | 6fa6b87 | 2012-03-15 00:52:31 +0000 | [diff] [blame] | 17 | #include <linux/gpio.h> |
Jason Cooper | 6fa6b87 | 2012-03-15 00:52:31 +0000 | [diff] [blame] | 18 | #include "common.h" |
Jason Cooper | 6fa6b87 | 2012-03-15 00:52:31 +0000 | [diff] [blame] | 19 | |
Jason Cooper | 6fa6b87 | 2012-03-15 00:52:31 +0000 | [diff] [blame] | 20 | static struct mv643xx_eth_platform_data dreamplug_ge00_data = { |
| 21 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), |
| 22 | }; |
| 23 | |
| 24 | static struct mv643xx_eth_platform_data dreamplug_ge01_data = { |
| 25 | .phy_addr = MV643XX_ETH_PHY_ADDR(1), |
| 26 | }; |
| 27 | |
Jason Cooper | 6fa6b87 | 2012-03-15 00:52:31 +0000 | [diff] [blame] | 28 | void __init dreamplug_init(void) |
| 29 | { |
| 30 | /* |
| 31 | * Basic setup. Needs to be called early. |
| 32 | */ |
Jason Cooper | 6fa6b87 | 2012-03-15 00:52:31 +0000 | [diff] [blame] | 33 | kirkwood_ge00_init(&dreamplug_ge00_data); |
| 34 | kirkwood_ge01_init(&dreamplug_ge01_data); |
Jason Cooper | 6fa6b87 | 2012-03-15 00:52:31 +0000 | [diff] [blame] | 35 | } |