Date:2011-11-06 15:47:41 (12 years 4 months ago)
Author:Xiangfu Liu
Commit:955fd00bb545cb9c23388eb3620bd66dbd50d231
Message:xburst: ben-wpan: add kernel module file. thanks to 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-lib-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_DEBUG=y \
39    CONFIG_IEEE802154_DRIVERS=y \
40    CONFIG_IEEE802154_DRIVER_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/fakelb/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
98endef
99
100$(eval $(call KernelPackage,at86rf230))
101
102define KernelPackage/spi_atusb
103  SUBMENU:=$(WPAN_MENU)
104  TITLE:=ATUSB SPI interface
105  KCONFIG:=CONFIG_SPI_ATUSB
106  DEPENDS:=+kmod-at86rf230 +kmod-usb-core
107  FILES:= \
108    $(LINUX_DIR)/drivers/ieee802154/at86rf230.ko \
109    $(LINUX_DIR)/drivers/ieee802154/spi_atusb.ko
110  AUTOLOAD:=$(call AutoLoad,93,at86rf230 spi_atusb)
111endef
112
113define KernelPackage/spi_atusb/description
114  SPI-over-USB driver for the ATUSB IEEE 802.15.4 board.
115endef
116
117$(eval $(call KernelPackage,spi_atusb))
118
119define KernelPackage/spi_atben
120  SUBMENU:=$(WPAN_MENU)
121  TITLE:=ATBEN 8:10 SPI interface
122  KCONFIG:=CONFIG_SPI_ATBEN
123  DEPENDS:=+kmod-at86rf230 @TARGET_xburst
124  FILES:=$(LINUX_DIR)/drivers/ieee802154/spi_atben.ko
125endef
126
127define KernelPackage/spi_atben/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
134define KernelPackage/wpan-serial
135  SUBMENU:=$(WPAN_MENU)
136  TITLE:=Simple LR-WPAN UART driver
137  KCONFIG:=CONFIG_IEEE802154_SERIAL
138  DEPENDS:=+kmod-ieee802154
139  FILES:=$(LINUX_DIR)/drivers/ieee802154/serial.ko
140endef
141
142$(eval $(call KernelPackage,wpan-serial))
143
144define KernelPackage/cc2420
145  SUBMENU:=$(WPAN_MENU)
146  TITLE:=CC2420 driver
147  KCONFIG:=CONFIG_IEEE802154_CC2420 \
148    CONFIG_SPI=y \
149    CONFIG_SPI_MASTER=y
150  DEPENDS:=+kmod-ieee802154
151  FILES:=$(LINUX_DIR)/drivers/ieee802154/cc2420.ko
152endef
153
154$(eval $(call KernelPackage,cc2420))
155
156define KernelPackage/adf7242
157  SUBMENU:=$(WPAN_MENU)
158  TITLE:=ADF7242 transceiver driver
159  KCONFIG:=CONFIG_IEEE802154_ADF7242 \
160    CONFIG_SPI=y \
161    CONFIG_SPI_MASTER=y
162  DEPENDS:=+kmod-mac802154
163  FILES:=$(LINUX_DIR)/drivers/ieee802154/adf7242.ko
164endef
165
166$(eval $(call KernelPackage,adf7242))

Archive Download the corresponding diff file



interactive