Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359942
b: refs/heads/master
c: 102c954
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Lunn authored and Arnd Bergmann committed Feb 28, 2013
1 parent 56d5d0b commit 384aa52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4d2a24fa522afd3891c9718443686cab71df24f
refs/heads/master: 102c9543ff368709980c6d68b7a75f840edda6b5
6 changes: 6 additions & 0 deletions trunk/arch/arm/boot/dts/kirkwood-ns2-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,10 @@
gpios = <&gpio0 12 0>;
};
};

gpio_poweroff {
compatible = "gpio-poweroff";
gpios = <&gpio0 31 0>;
};

};
14 changes: 0 additions & 14 deletions trunk/arch/arm/mach-kirkwood/board-ns2.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,13 @@
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/mv643xx_eth.h>
#include <linux/gpio.h>
#include <linux/of.h>
#include "common.h"

static struct mv643xx_eth_platform_data ns2_ge00_data = {
.phy_addr = MV643XX_ETH_PHY_ADDR(8),
};

#define NS2_GPIO_POWER_OFF 31

static void ns2_power_off(void)
{
gpio_set_value(NS2_GPIO_POWER_OFF, 1);
}

void __init ns2_init(void)
{
/*
Expand All @@ -39,10 +31,4 @@ void __init ns2_init(void)
of_machine_is_compatible("lacie,netspace_mini_v2"))
ns2_ge00_data.phy_addr = MV643XX_ETH_PHY_ADDR(0);
kirkwood_ge00_init(&ns2_ge00_data);

if (gpio_request(NS2_GPIO_POWER_OFF, "power-off") == 0 &&
gpio_direction_output(NS2_GPIO_POWER_OFF, 0) == 0)
pm_power_off = ns2_power_off;
else
pr_err("ns2: failed to configure power-off GPIO\n");
}

0 comments on commit 384aa52

Please sign in to comment.