Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342334
b: refs/heads/master
c: 2104035
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Lunn authored and Jason Cooper committed Nov 24, 2012
1 parent 603228a commit f823c3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 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: 2c0e7ee61b335dea4bd2678591923c02703f4eeb
refs/heads/master: 2104035214b51d007db7e040906550eb608aaa44
6 changes: 6 additions & 0 deletions trunk/arch/arm/boot/dts/kirkwood-ib62x0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,10 @@
gpios = <&gpio0 27 0>;
};
};
gpio_poweroff {
compatible = "gpio-poweroff";
gpios = <&gpio0 24 0>;
};


};
13 changes: 0 additions & 13 deletions trunk/arch/arm/mach-kirkwood/board-ib62x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@
#include <linux/mtd/partitions.h>
#include <linux/ata_platform.h>
#include <linux/mv643xx_eth.h>
#include <linux/gpio.h>
#include <linux/input.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <mach/kirkwood.h>
#include "common.h"
#include "mpp.h"

#define IB62X0_GPIO_POWER_OFF 24

static struct mv643xx_eth_platform_data ib62x0_ge00_data = {
.phy_addr = MV643XX_ETH_PHY_ADDR(8),
};
Expand All @@ -49,11 +46,6 @@ static unsigned int ib62x0_mpp_config[] __initdata = {
0
};

static void ib62x0_power_off(void)
{
gpio_set_value(IB62X0_GPIO_POWER_OFF, 1);
}

void __init ib62x0_init(void)
{
/*
Expand All @@ -62,9 +54,4 @@ void __init ib62x0_init(void)
kirkwood_mpp_conf(ib62x0_mpp_config);

kirkwood_ge00_init(&ib62x0_ge00_data);
if (gpio_request(IB62X0_GPIO_POWER_OFF, "ib62x0:power:off") == 0 &&
gpio_direction_output(IB62X0_GPIO_POWER_OFF, 0) == 0)
pm_power_off = ib62x0_power_off;
else
pr_err("board-ib62x0: failed to configure power-off GPIO\n");
}

0 comments on commit f823c3c

Please sign in to comment.