Josh Coombs | 5136b2a | 2012-07-16 11:52:50 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 (C), Jason Cooper <jason@lakedaemon.net> |
| 3 | * |
| 4 | * arch/arm/mach-kirkwood/board-goflexnet.c |
| 5 | * |
| 6 | * Seagate GoFlext Net 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 | * Copied and modified for Seagate GoFlex Net support by |
| 14 | * Joshua Coombs <josh.coombs@gmail.com> based on ArchLinux ARM's |
| 15 | * GoFlex kernel patches. |
| 16 | * |
| 17 | */ |
| 18 | |
| 19 | #include <linux/kernel.h> |
| 20 | #include <linux/init.h> |
Josh Coombs | 5136b2a | 2012-07-16 11:52:50 +0200 | [diff] [blame] | 21 | #include <linux/mv643xx_eth.h> |
Josh Coombs | 5136b2a | 2012-07-16 11:52:50 +0200 | [diff] [blame] | 22 | #include "common.h" |
Josh Coombs | 5136b2a | 2012-07-16 11:52:50 +0200 | [diff] [blame] | 23 | |
| 24 | static struct mv643xx_eth_platform_data goflexnet_ge00_data = { |
| 25 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), |
| 26 | }; |
| 27 | |
Josh Coombs | 5136b2a | 2012-07-16 11:52:50 +0200 | [diff] [blame] | 28 | void __init goflexnet_init(void) |
| 29 | { |
| 30 | /* |
| 31 | * Basic setup. Needs to be called early. |
| 32 | */ |
Josh Coombs | 5136b2a | 2012-07-16 11:52:50 +0200 | [diff] [blame] | 33 | kirkwood_ge00_init(&goflexnet_ge00_data); |
Josh Coombs | 5136b2a | 2012-07-16 11:52:50 +0200 | [diff] [blame] | 34 | } |