powerpc: Delete __cpuinit usage from all users
[linux/fpc-iii.git] / arch / arm / mach-kirkwood / board-lsxl.c
blob4ec8b7ae784a298af778cd191b25b671d810c39c
1 /*
2 * Copyright 2012 (C), Michael Walle <michael@walle.cc>
4 * arch/arm/mach-kirkwood/board-lsxl.c
6 * Buffalo Linkstation LS-XHL and LS-CHLv2 init for drivers not
7 * converted to flattened device tree yet.
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.
14 #include <linux/kernel.h>
15 #include <linux/init.h>
16 #include <linux/platform_device.h>
17 #include <linux/mv643xx_eth.h>
18 #include "common.h"
20 static struct mv643xx_eth_platform_data lsxl_ge00_data = {
21 .phy_addr = MV643XX_ETH_PHY_ADDR(0),
24 static struct mv643xx_eth_platform_data lsxl_ge01_data = {
25 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
29 * On the LS-XHL/LS-CHLv2, the shutdown process is following:
30 * - Userland monitors key events until the power switch goes to off position
31 * - The board reboots
32 * - U-boot starts and goes into an idle mode waiting for the user
33 * to move the switch to ON position
36 static void lsxl_power_off(void)
38 kirkwood_restart('h', NULL);
41 void __init lsxl_init(void)
44 * Basic setup. Needs to be called early.
47 kirkwood_ge00_init(&lsxl_ge00_data);
48 kirkwood_ge01_init(&lsxl_ge01_data);
50 /* register power-off method */
51 pm_power_off = lsxl_power_off;