kernel: wpan: Add kmod-ca8210
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 15 Aug 2020 14:44:23 +0000 (16:44 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 21 Aug 2020 09:46:13 +0000 (11:46 +0200)
This device is found on the pistachio marduk board.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/wpan.mk

index 1de7f39b66c028162c709fb4c1c509781b8ea19b..dab8a0cb71d5694e8f8ce381bacf8f5fe0f21020 100644 (file)
@@ -119,6 +119,22 @@ endef
 
 $(eval $(call KernelPackage,cc2520))
 
+
+define KernelPackage/ca8210
+  SUBMENU:=$(WPAN_MENU)
+  TITLE:=CA8210 transceiver driver
+  DEPENDS:=+kmod-mac802154
+  KCONFIG:=CONFIG_IEEE802154_CA8210 \
+       CONFIG_SPI=y \
+       CONFIG_SPI_MASTER=y \
+       CONFIG_IEEE802154_CA8210_DEBUGFS=n
+  FILES:=$(LINUX_DIR)/drivers/net/ieee802154/ca8210.ko
+  AUTOLOAD:=$(call AutoProbe,ca8210)
+endef
+
+$(eval $(call KernelPackage,ca8210))
+
+
 define KernelPackage/ieee802154-6lowpan
   SUBMENU:=$(WPAN_MENU)
   TITLE:= 6LoWPAN support over IEEE-802.15.4