Date:2011-11-06 15:47:41 (12 years 4 months ago)
Author:Xiangfu Liu
Commit:73257edb3808181b251b6c6894d83677179482fb
Message:add WPAN(atben,atusb) kernel module file thansk blogic #qi-hardware @freenode.net

Files: package/kernel/modules/wpan.mk (1 diff)

Change Details

package/kernel/modules/wpan.mk
1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8WPAN_MENU:=WPAN
9
10define KernelPackage/ieee802154
11  SUBMENU:=$(WPAN_MENU)
12  TITLE:=IEEE802.15.4 support
13  KCONFIG:= \
14    CONFIG_IEEE802154 \
15    CONFIG_IEEE802154_PROTO_DEBUG=y
16  DEPENDS:=+kmod-crc-ccitt
17  FILES:= \
18    $(LINUX_DIR)/net/ieee802154/ieee802154.ko \
19    $(LINUX_DIR)/net/ieee802154/af_802154.ko
20  AUTOLOAD:=$(call AutoLoad,90,ieee802154 af_802154)
21endef
22
23define KernelPackage/ieee802154/description
24  IEEE Std 802.15.4 defines a low data rate, low power and low
25  complexity short range wireless personal area networks. It was
26  designed to organise networks of sensors, switches, etc automation
27  devices. Maximum allowed data rate is 250 kb/s and typical personal
28  operating space around 10m.
29endef
30
31$(eval $(call KernelPackage,ieee802154))
32
33define KernelPackage/mac802154
34  SUBMENU:=$(WPAN_MENU)
35  TITLE:=MAC802.15.4 support
36  KCONFIG:= \
37    CONFIG_MAC802154 \
38    CONFIG_MAC802154_PROTO_DEBUG=y \
39    CONFIG_IEEE802154_DRIVER=y \
40    CONFIG_IEEE802154_DRIVERS_DEBUG=y
41  DEPENDS:=+kmod-ieee802154
42  FILES:=$(LINUX_DIR)/net/mac802154/mac802154.ko
43  AUTOLOAD:=$(call AutoLoad,91,mac802154)
44endef
45
46define KernelPackage/mac802154/description
47  This option enables the hardware independent IEEE 802.15.4
48  networking stack for SoftMAC devices (the ones implementing
49  only PHY level of IEEE 802.15.4 standard).
50
51  Note: this implementation is neither certified, nor feature
52  complete! We do not guarantee that it is compatible w/ other
53  implementations, etc.
54endef
55
56$(eval $(call KernelPackage,mac802154))
57
58define KernelPackage/fakehard
59  SUBMENU:=$(WPAN_MENU)
60  TITLE:=Fake LR-WPAN driver
61  KCONFIG:=CONFIG_IEEE802154_FAKEHARD
62  DEPENDS:=+kmod-ieee802154
63  FILES:=$(LINUX_DIR)/drivers/ieee802154/fakehard.ko
64  AUTOLOAD:=$(call AutoLoad,92,fakehard)
65endef
66
67define KernelPackage/fakehard/description
68  Say Y here to enable the fake driver that serves as an example
69  of HardMAC device driver.
70endef
71
72$(eval $(call KernelPackage,fakehard))
73
74define KernelPackage/fakelb
75  SUBMENU:=$(WPAN_MENU)
76  TITLE:=Fake LR-WPAN driver
77  KCONFIG:=CONFIG_IEEE802154_FAKELB
78  DEPENDS:=+kmod-mac802154
79  FILES:=$(LINUX_DIR)/drivers/ieee802154/fakelb.ko
80  AUTOLOAD:=$(call AutoLoad,92,fakelb)
81endef
82
83define KernelPackage/fakehard/description
84  Say Y here to enable the fake driver that can emulate a net
85  of several interconnected radio devices.
86endef
87
88$(eval $(call KernelPackage,fakelb))
89
90define KernelPackage/at86rf230
91  SUBMENU:=$(WPAN_MENU)
92  TITLE:=AT86RF230 transceiver driver
93  KCONFIG:=CONFIG_IEEE802154_AT86RF230 \
94    CONFIG_SPI=y \
95    CONFIG_SPI_MASTER=y
96  DEPENDS:=+kmod-mac802154
97  FILES:=$(LINUX_DIR)/drivers/ieee802154/at86rf230.ko
98  AUTOLOAD:=$(call AutoLoad,92,at86rf230)
99endef
100
101$(eval $(call KernelPackage,at86rf230))
102
103define KernelPackage/spi_atusb
104  SUBMENU:=$(WPAN_MENU)
105  TITLE:=ATUSB SPI interface
106  KCONFIG:=CONFIG_SPI_ATUSB
107  DEPENDS:=+kmod-at86rf230 +kmod-usb-core
108  FILES:=$(LINUX_DIR)/drivers/ieee802154/spi_atusb.ko
109  AUTOLOAD:=$(call AutoLoad,93,spi_atusb)
110endef
111
112define KernelPackage/fakehard/description
113  SPI-over-USB driver for the ATUSB IEEE 802.15.4 board.
114endef
115
116$(eval $(call KernelPackage,spi_atusb))
117
118define KernelPackage/spi_atben
119  SUBMENU:=$(WPAN_MENU)
120  TITLE:=ATBEN 8:10 SPI interface
121  KCONFIG:=CONFIG_SPI_ATBEN
122  DEPENDS:=+kmod-at86rf230 @TARGET_xburst
123  FILES:=$(LINUX_DIR)/drivers/ieee802154/spi_atben.ko
124  AUTOLOAD:=$(call AutoLoad,93,spi_atben)
125endef
126
127define KernelPackage/fakehard/description
128  Bit-banging SPI driver for the 8:10 interface of the Ben NanoNote
129  when equipped with an ATBEN board.
130endef
131
132$(eval $(call KernelPackage,spi_atben))
133

Archive Download the corresponding diff file



interactive