modules.mk 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. #
  2. # Copyright (C) 2006-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. define KernelPackage/cs5535
  8. SUBMENU:=$(BLOCK_MENU)
  9. TITLE:=NSC/AMD CS5535 chipset support
  10. DEPENDS:=@TARGET_x86
  11. KCONFIG:=CONFIG_BLK_DEV_CS5535
  12. FILES=$(LINUX_DIR)/drivers/ide/cs5535.ko
  13. AUTOLOAD:=$(call AutoLoad,30,cs5535,1)
  14. $(call AddDepends/ide)
  15. endef
  16. define KernelPackage/cs5535/description
  17. Kernel module for the NSC/AMD CS5535 companion chip
  18. endef
  19. $(eval $(call KernelPackage,cs5535))
  20. define KernelPackage/cs5536
  21. SUBMENU:=$(BLOCK_MENU)
  22. TITLE:=AMD CS5536 chipset support
  23. DEPENDS:=@TARGET_x86
  24. KCONFIG:=CONFIG_BLK_DEV_CS5536
  25. FILES=$(LINUX_DIR)/drivers/ide/cs5536.ko
  26. AUTOLOAD:=$(call AutoLoad,30,cs5536,1)
  27. $(call AddDepends/ide)
  28. endef
  29. define KernelPackage/cs5536/description
  30. Kernel module for the AMD CS5536 Geode LX companion chip
  31. endef
  32. $(eval $(call KernelPackage,cs5536))
  33. define KernelPackage/pata-cs5535
  34. SUBMENU:=$(BLOCK_MENU)
  35. TITLE:=CS5535 PATA support
  36. DEPENDS:=@TARGET_x86 @PCI_SUPPORT
  37. KCONFIG:=CONFIG_PATA_CS5535
  38. FILES=$(LINUX_DIR)/drivers/ata/pata_cs5535.ko
  39. AUTOLOAD:=$(call AutoLoad,30,pata_cs5535,1)
  40. $(call AddDepends/ata)
  41. endef
  42. define KernelPackage/pata-cs5535/description
  43. Kernel module for the NSC/AMD CS5535 companion chip
  44. endef
  45. $(eval $(call KernelPackage,pata-cs5535))
  46. define KernelPackage/pata-cs5536
  47. SUBMENU:=$(BLOCK_MENU)
  48. TITLE:=CS5536 PATA support
  49. DEPENDS:=@TARGET_x86 @PCI_SUPPORT
  50. KCONFIG:=CONFIG_PATA_CS5536
  51. FILES=$(LINUX_DIR)/drivers/ata/pata_cs5536.ko
  52. AUTOLOAD:=$(call AutoLoad,30,pata_cs5536,1)
  53. $(call AddDepends/ata)
  54. endef
  55. define KernelPackage/pata-cs5536/description
  56. Kernel module for the AMD CS5536 Geode LX companion chip
  57. endef
  58. $(eval $(call KernelPackage,pata-cs5536))
  59. define KernelPackage/cpu-msr
  60. SUBMENU:=$(OTHER_MENU)
  61. TITLE:=x86 CPU MSR support
  62. DEPENDS:=@TARGET_x86
  63. KCONFIG:=CONFIG_X86_MSR
  64. FILES:=$(LINUX_DIR)/arch/x86/kernel/msr.ko
  65. AUTOLOAD:=$(call AutoLoad,20,msr)
  66. endef
  67. define KernelPackage/cpu-msr/description
  68. Kernel module for Model Specific Registers support in x86 CPUs
  69. endef
  70. $(eval $(call KernelPackage,cpu-msr))
  71. define KernelPackage/gpio-cs5535-new
  72. SUBMENU:=$(OTHER_MENU)
  73. TITLE:=AMD CS5535/CS5536 GPIO driver with improved sysfs support
  74. DEPENDS:=@TARGET_x86 +kmod-cs5535-mfd
  75. KCONFIG:=CONFIG_GPIO_CS5535
  76. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-cs5535.ko
  77. AUTOLOAD:=$(call AutoLoad,50,gpio-cs5535)
  78. endef
  79. define KernelPackage/gpio-cs5535-new/description
  80. This package contains the new AMD CS5535/CS5536 GPIO driver
  81. endef
  82. $(eval $(call KernelPackage,gpio-cs5535-new))
  83. define KernelPackage/gpio-nsc
  84. SUBMENU:=$(OTHER_MENU)
  85. TITLE:=Natsemi GPIO support
  86. DEPENDS:=@TARGET_x86
  87. KCONFIG:=CONFIG_NSC_GPIO
  88. FILES:=$(LINUX_DIR)/drivers/char/nsc_gpio.ko
  89. AUTOLOAD:=$(call AutoLoad,40,nsc_gpio)
  90. endef
  91. define KernelPackage/gpio-nsc/description
  92. Kernel module for Natsemi GPIO
  93. endef
  94. $(eval $(call KernelPackage,gpio-nsc))
  95. define KernelPackage/gpio-pc8736x
  96. SUBMENU:=$(OTHER_MENU)
  97. TITLE:=PC8736x GPIO support
  98. DEPENDS:=@TARGET_x86 +kmod-gpio-nsc
  99. KCONFIG:=CONFIG_PC8736x_GPIO
  100. FILES:=$(LINUX_DIR)/drivers/char/pc8736x_gpio.ko
  101. AUTOLOAD:=$(call AutoLoad,40,pc8736x_gpio)
  102. endef
  103. define KernelPackage/gpio-pc8736x/description
  104. Kernel module for PC8736x GPIO
  105. endef
  106. $(eval $(call KernelPackage,gpio-pc8736x))
  107. define KernelPackage/gpio-scx200
  108. SUBMENU:=$(OTHER_MENU)
  109. TITLE:=Natsemi SCX200 GPIO support
  110. DEPENDS:=@TARGET_x86 +kmod-gpio-nsc
  111. KCONFIG:=CONFIG_SCx200_GPIO
  112. FILES:=$(LINUX_DIR)/drivers/char/scx200_gpio.ko
  113. AUTOLOAD:=$(call AutoLoad,50,scx200_gpio)
  114. endef
  115. define KernelPackage/gpio-scx200/description
  116. Kernel module for SCX200 GPIO
  117. endef
  118. $(eval $(call KernelPackage,gpio-scx200))
  119. define KernelPackage/wdt-geode
  120. SUBMENU:=$(OTHER_MENU)
  121. TITLE:=Geode/LX Watchdog timer
  122. DEPENDS:=@TARGET_x86 +kmod-cs5535-mfgpt
  123. KCONFIG:=CONFIG_GEODE_WDT
  124. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/geodewdt.ko
  125. AUTOLOAD:=$(call AutoLoad,50,geodewdt)
  126. endef
  127. define KernelPackage/wdt-geode/description
  128. Kernel module for Geode watchdog timer.
  129. endef
  130. $(eval $(call KernelPackage,wdt-geode))
  131. define KernelPackage/cs5535-clockevt
  132. SUBMENU:=$(OTHER_MENU)
  133. TITLE:=CS5535/CS5536 high-res timer (MFGPT) events
  134. DEPENDS:=@TARGET_x86 +kmod-cs5535-mfgpt
  135. KCONFIG:=CONFIG_CS5535_CLOCK_EVENT_SRC
  136. FILES:=$(LINUX_DIR)/drivers/clocksource/cs5535-clockevt.ko
  137. AUTOLOAD:=$(call AutoLoad,50,cs5535-clockevt)
  138. endef
  139. define KernelPackage/cs5535-clockevt/description
  140. Kernel module for CS5535/6 high-res clock event source
  141. endef
  142. $(eval $(call KernelPackage,cs5535-clockevt))
  143. define KernelPackage/cs5535-mfgpt
  144. SUBMENU:=$(OTHER_MENU)
  145. TITLE:=CS5535/6 Multifunction General Purpose Timer
  146. DEPENDS:=@TARGET_x86 +kmod-cs5535-mfd
  147. KCONFIG:=CONFIG_CS5535_MFGPT
  148. FILES:=$(LINUX_DIR)/drivers/misc/cs5535-mfgpt.ko
  149. AUTOLOAD:=$(call AutoLoad,45,cs5535-mfgpt)
  150. endef
  151. define KernelPackage/cs5535-mfgpt/description
  152. Kernel module for CS5535/6 multifunction general purpose timer.
  153. endef
  154. $(eval $(call KernelPackage,cs5535-mfgpt))
  155. define KernelPackage/cs5535-mfd
  156. SUBMENU:=$(OTHER_MENU)
  157. TITLE:=CS5535/6 Multifunction General Purpose Driver
  158. DEPENDS:=@TARGET_x86
  159. KCONFIG:=CONFIG_MFD_CS5535
  160. FILES:= \
  161. $(LINUX_DIR)/drivers/mfd/mfd-core.ko \
  162. $(LINUX_DIR)/drivers/mfd/cs5535-mfd.ko
  163. AUTOLOAD:=$(call AutoLoad,44,mfd-core cs5535-mfd)
  164. endef
  165. define KernelPackage/cs5535-mfd/description
  166. Core driver for CS5535/CS5536 MFD functions.
  167. endef
  168. $(eval $(call KernelPackage,cs5535-mfd))
  169. define KernelPackage/wdt-sc520
  170. SUBMENU:=$(OTHER_MENU)
  171. TITLE:=Natsemi SC520 Watchdog support
  172. DEPENDS:=@TARGET_x86
  173. KCONFIG:=CONFIG_SC520_WDT
  174. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/sc520_wdt.ko
  175. AUTOLOAD:=$(call AutoLoad,50,sc520_wdt)
  176. endef
  177. define KernelPackage/wdt-sc520/description
  178. Kernel module for SC520 Watchdog
  179. endef
  180. $(eval $(call KernelPackage,wdt-sc520))
  181. define KernelPackage/wdt-scx200
  182. SUBMENU:=$(OTHER_MENU)
  183. TITLE:=Natsemi SCX200 Watchdog support
  184. DEPENDS:=@TARGET_x86
  185. KCONFIG:=CONFIG_SCx200_WDT
  186. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/scx200_wdt.ko
  187. AUTOLOAD:=$(call AutoLoad,50,scx200_wdt)
  188. endef
  189. define KernelPackage/wdt-scx200/description
  190. Kernel module for SCX200 Watchdog
  191. endef
  192. $(eval $(call KernelPackage,wdt-scx200))
  193. I2C_SCX200_MODULES:=\
  194. CONFIG_SCx200_I2C:drivers/i2c/busses/scx200_i2c
  195. define KernelPackage/i2c-scx200
  196. $(call i2c_defaults,$(I2C_SCX200_MODULES),59)
  197. TITLE:=Geode SCx200 I2C using GPIO pins
  198. DEPENDS:=@PCI_SUPPORT @TARGET_x86 +kmod-i2c-algo-bit
  199. KCONFIG+= \
  200. CONFIG_SCx200_I2C_SCL=12 \
  201. CONFIG_SCx200_I2C_SDA=13
  202. endef
  203. define KernelPackage/i2c-scx200/description
  204. Kernel module for I2C using GPIO pins on the Geode SCx200 processors.
  205. endef
  206. $(eval $(call KernelPackage,i2c-scx200))
  207. I2C_SCX200_ACB_MODULES:=\
  208. CONFIG_SCx200_ACB:drivers/i2c/busses/scx200_acb
  209. define KernelPackage/i2c-scx200-acb
  210. $(call i2c_defaults,$(I2C_SCX200_ACB_MODULES),59)
  211. TITLE:=Geode SCx200 ACCESS.bus support
  212. DEPENDS:=@PCI_SUPPORT @TARGET_x86 +kmod-i2c-algo-bit
  213. endef
  214. define KernelPackage/i2c-scx200-acb/description
  215. Kernel module for I2C using the ACCESS.bus controllers on the Geode SCx200
  216. and SC1100 processors and the CS5535 and CS5536 Geode companion devices.
  217. endef
  218. $(eval $(call KernelPackage,i2c-scx200-acb))
  219. define KernelPackage/leds-wrap
  220. SUBMENU:=$(LEDS_MENU)
  221. TITLE:=PCengines WRAP LED support
  222. DEPENDS:=@TARGET_x86 +kmod-gpio-scx200
  223. KCONFIG:=CONFIG_LEDS_WRAP
  224. FILES:=$(LINUX_DIR)/drivers/leds/leds-wrap.ko
  225. AUTOLOAD:=$(call AutoLoad,50,leds-wrap)
  226. endef
  227. define KernelPackage/leds-wrap/description
  228. Kernel module for PCengines WRAP LEDs
  229. endef
  230. $(eval $(call KernelPackage,leds-wrap))
  231. define KernelPackage/leds-net48xx
  232. SUBMENU:=$(LEDS_MENU)
  233. TITLE:=Soekris Net48xx LED support
  234. DEPENDS:=@TARGET_x86 +kmod-gpio-scx200
  235. KCONFIG:=CONFIG_LEDS_NET48XX
  236. FILES:=$(LINUX_DIR)/drivers/leds/leds-net48xx.ko
  237. AUTOLOAD:=$(call AutoLoad,50,leds-net48xx)
  238. endef
  239. define KernelPackage/leds-net48xx/description
  240. Kernel module for Soekris Net48xx LEDs
  241. endef
  242. $(eval $(call KernelPackage,leds-net48xx))
  243. define KernelPackage/rdc321x-wdt
  244. SUBMENU:=$(OTHER_MENU)
  245. TITLE:=RDC321x watchdog
  246. DEPENDS:=@TARGET_x86_rdc
  247. KCONFIG:=CONFIG_RDC321X_WDT
  248. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/rdc321x_wdt.ko
  249. AUTOLOAD:=$(call AutoLoad,50,rdc321x_wdt)
  250. endef
  251. define KernelPackage/rdc321x-wdt/description
  252. RDC-321x watchdog driver
  253. endef
  254. $(eval $(call KernelPackage,rdc321x-wdt))