Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 (C), Jason Cooper <jason@lakedaemon.net> |
| 3 | * |
| 4 | * arch/arm/mach-kirkwood/board-usi_topkick.c |
| 5 | * |
| 6 | * USI Topkick Init for drivers not converted to flattened device tree yet. |
| 7 | * |
| 8 | * This file is licensed under the terms of the GNU General Public |
| 9 | * License version 2. This program is licensed "as is" without any |
| 10 | * warranty of any kind, whether express or implied. |
| 11 | */ |
| 12 | |
| 13 | #include <linux/kernel.h> |
| 14 | #include <linux/init.h> |
| 15 | #include <linux/mv643xx_eth.h> |
| 16 | #include <linux/gpio.h> |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 17 | #include "common.h" |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 18 | |
| 19 | static struct mv643xx_eth_platform_data topkick_ge00_data = { |
| 20 | .phy_addr = MV643XX_ETH_PHY_ADDR(0), |
| 21 | }; |
| 22 | |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 23 | void __init usi_topkick_init(void) |
| 24 | { |
| 25 | /* |
| 26 | * Basic setup. Needs to be called early. |
| 27 | */ |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 28 | kirkwood_ge00_init(&topkick_ge00_data); |
Jason Cooper | 767fc1e | 2012-10-22 02:15:35 +0000 | [diff] [blame] | 29 | } |