mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
mvebu: Add kmod-turris-omnia-mcu
Add support for the MCU driver on CZ.NIC's Turris Omnia. This adds the ability to do a true board poweroff, and to configure various features (for example the user may configure that after poweroff, the router should automatically wake up at a specific time). Signed-off-by: Marek Mojík <marek.mojik@nic.cz> Signed-off-by: Marek Behún <kabel@kernel.org> Link: https://github.com/openwrt/openwrt/pull/13799 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
cbc8d072c8
commit
9129a67ec7
@ -106,7 +106,8 @@ define Device/cznic_turris-omnia
|
|||||||
DEVICE_PACKAGES := \
|
DEVICE_PACKAGES := \
|
||||||
mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
|
mkf2fs e2fsprogs kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1 \
|
||||||
wpad-basic-mbedtls kmod-ath9k kmod-ath10k-ct ath10k-firmware-qca988x-ct \
|
wpad-basic-mbedtls kmod-ath9k kmod-ath10k-ct ath10k-firmware-qca988x-ct \
|
||||||
kmod-mt7915-firmware partx-utils kmod-i2c-mux-pca954x kmod-leds-turris-omnia
|
kmod-mt7915-firmware partx-utils kmod-i2c-mux-pca954x kmod-leds-turris-omnia \
|
||||||
|
kmod-turris-omnia-mcu kmod-gpio-button-hotplug
|
||||||
IMAGES := sysupgrade.img.gz
|
IMAGES := sysupgrade.img.gz
|
||||||
IMAGE/sysupgrade.img.gz := boot-scr | boot-img | sdcard-img | gzip | append-metadata
|
IMAGE/sysupgrade.img.gz := boot-scr | boot-img | sdcard-img | gzip | append-metadata
|
||||||
SUPPORTED_DEVICES += armada-385-turris-omnia
|
SUPPORTED_DEVICES += armada-385-turris-omnia
|
||||||
|
@ -17,6 +17,27 @@ endef
|
|||||||
$(eval $(call KernelPackage,linkstation-poweroff))
|
$(eval $(call KernelPackage,linkstation-poweroff))
|
||||||
|
|
||||||
|
|
||||||
|
define KernelPackage/turris-omnia-mcu
|
||||||
|
SUBMENU:=$(OTHER_MENU)
|
||||||
|
TITLE:=CZ.NIC's Turris Omnia MCU driver
|
||||||
|
DEPENDS:=@TARGET_mvebu_cortexa9
|
||||||
|
KCONFIG:= \
|
||||||
|
CONFIG_CZNIC_PLATFORMS=y \
|
||||||
|
CONFIG_TURRIS_OMNIA_MCU
|
||||||
|
FILES:=$(LINUX_DIR)/drivers/platform/cznic/turris-omnia-mcu.ko
|
||||||
|
AUTOLOAD:=$(call AutoProbe,turris-omnia-mcu,1)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/turris-omnia-mcu/description
|
||||||
|
This adds support for the features implemented by the microcontroller
|
||||||
|
on the CZ.NIC's Turris Omnia SOHO router, including true board
|
||||||
|
poweroff, the ability to configure wake up from powered off state at
|
||||||
|
a specific time, MCU watchdog and MCU connected GPIO pins.
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,turris-omnia-mcu))
|
||||||
|
|
||||||
|
|
||||||
define KernelPackage/leds-turris-omnia
|
define KernelPackage/leds-turris-omnia
|
||||||
SUBMENU:=$(LEDS_MENU)
|
SUBMENU:=$(LEDS_MENU)
|
||||||
TITLE:=LED support for CZ.NIC's Turris Omnia
|
TITLE:=LED support for CZ.NIC's Turris Omnia
|
||||||
|
Loading…
x
Reference in New Issue
Block a user