2
0
forked from Ivasoft/openwrt

mvebu: LS421DE: add linkstation poweroff driver

Compile the Linkstation poweroff module for the Buffalo LS421DE.
Without this driver the device remains forever halted if a power off
command is executed.

The driver will also allow to use the WoL feature, which wasn't availabe
in the stock firmware.

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
This commit is contained in:
Daniel González Cabanelas
2020-08-28 11:20:46 +02:00
committed by Daniel Golle
parent 59c200ca0a
commit 42d14ace3e
2 changed files with 2 additions and 15 deletions

View File

@@ -209,12 +209,6 @@
gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
};
};
/* FIXME: this driver needs to be aware of the LED2 eth phy use,
which must be set to off state before shutting down the machine */
restart_poweroff {
compatible = "restart-poweroff";
};
};
&eth1 {
@@ -243,13 +237,6 @@
ethphy0: ethernet-phy@0 { /* Marvell 88E1518 */
reg = <0>;
/*
* LED2 is used to inform, at restart time, if the power
* switch was slided to the "off" position.
* Page 0x3, Register 0x10, bits 8-11:
* 0x800: LED2 off, power off the machine
* 0x900: LED2 on, boot the machine
*/
marvell,reg-init = <0x3 0x10 0x1 0x1991>, /* LED function */
<0x3 0x11 0x1 0x4401>, /* LED polarity */
<0x3 0x12 0x1 0x4905>; /* LED timer */