mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
102c9543ff
Remove C code and add a Device Tree node in its place. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Simon Guinot <simon.guinot@sequanux.org> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
35 lines
974 B
C
35 lines
974 B
C
/*
|
|
* Copyright 2012 (C), Simon Guinot <simon.guinot@sequanux.org>
|
|
*
|
|
* arch/arm/mach-kirkwood/board-ns2.c
|
|
*
|
|
* LaCie Network Space v2 board (and parents) initialization for drivers
|
|
* not converted to flattened device tree yet.
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License version 2. This program is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/init.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/mv643xx_eth.h>
|
|
#include <linux/of.h>
|
|
#include "common.h"
|
|
|
|
static struct mv643xx_eth_platform_data ns2_ge00_data = {
|
|
.phy_addr = MV643XX_ETH_PHY_ADDR(8),
|
|
};
|
|
|
|
void __init ns2_init(void)
|
|
{
|
|
/*
|
|
* Basic setup. Needs to be called early.
|
|
*/
|
|
if (of_machine_is_compatible("lacie,netspace_lite_v2") ||
|
|
of_machine_is_compatible("lacie,netspace_mini_v2"))
|
|
ns2_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0);
|
|
kirkwood_ge00_init(&ns2_ge00_data);
|
|
}
|