~/paste/1061
~/paste/1061
~/paste/1061

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