From 7b1b227eb8de654e8be5b11d78d8a2cf65a3d951 Mon Sep 17 00:00:00 2001 From: Simon Guinot Date: Tue, 9 Feb 2010 21:21:49 +0100 Subject: [PATCH] --- yaml --- r: 187425 b: refs/heads/master c: d74b96a73a99853708d6b278c2ce683657fa1ec5 h: refs/heads/master i: 187423: 1e10dee236cef8d364b4651ff34f33c749c480f1 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-orion5x/d2net-setup.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 3ffa2ca107aa..40f41e5a6fb7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e233230f9c8f02d4c3a643ec5067ca21bc90ee9a +refs/heads/master: d74b96a73a99853708d6b278c2ce683657fa1ec5 diff --git a/trunk/arch/arm/mach-orion5x/d2net-setup.c b/trunk/arch/arm/mach-orion5x/d2net-setup.c index 9d4bf763f25b..0420e45f66b7 100644 --- a/trunk/arch/arm/mach-orion5x/d2net-setup.c +++ b/trunk/arch/arm/mach-orion5x/d2net-setup.c @@ -301,6 +301,8 @@ static struct orion5x_mpp_mode d2net_mpp_modes[] __initdata = { /* 24: Inhibit board power off (0 = Disabled, 1 = Enabled) */ }; +#define D2NET_GPIO_INHIBIT_POWER_OFF 24 + static void __init d2net_init(void) { /* @@ -333,6 +335,8 @@ static void __init d2net_init(void) i2c_register_board_info(0, d2net_i2c_devices, ARRAY_SIZE(d2net_i2c_devices)); + + orion_gpio_set_valid(D2NET_GPIO_INHIBIT_POWER_OFF, 1); } /* Warning: LaCie use a wrong mach-type (0x20e=526) in their bootloader. */