mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-11 09:24:50 +00:00
59c200ca0a
Backport the Linkstation poweroff driver from the kernel upstream (commit a7f79f99541ef) This driver is required by the Buffalo LinkStation LS421DE for a correct power off operation. It also allows to use the WoL feature. Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
22 lines
726 B
Makefile
22 lines
726 B
Makefile
define KernelPackage/linkstation-poweroff
|
|
SUBMENU:=$(OTHER_MENU)
|
|
DEPENDS:=@TARGET_mvebu
|
|
TITLE:=Buffalo LinkStation power off driver
|
|
KCONFIG:= \
|
|
CONFIG_POWER_RESET=y \
|
|
CONFIG_POWER_RESET_LINKSTATION \
|
|
CONFIG_POWER_RESET_QNAP=n
|
|
|
|
FILES:=$(LINUX_DIR)/drivers/power/reset/linkstation-poweroff.ko
|
|
AUTOLOAD:=$(call AutoLoad,31,linkstation-poweroff,1)
|
|
endef
|
|
|
|
define KernelPackage/linkstation-poweroff/description
|
|
This driver supports turning off some Buffalo LinkStations by
|
|
setting an output pin at the ethernet PHY to the correct state.
|
|
It also makes the device compatible with the WoL function.
|
|
Say Y here if you have a Buffalo LinkStation LS421D/E.
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,linkstation-poweroff))
|