modules.mk 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2017 Cezary Jackiewicz <[email protected]>
  4. define KernelPackage/amd-xgbe
  5. SUBMENU:=$(NETWORK_DEVICES_MENU)
  6. TITLE:=AMD Ethernet on SoC support
  7. DEPENDS:=@PCI_SUPPORT @TARGET_x86_64 +kmod-lib-crc32c +kmod-ptp +kmod-libphy +kmod-mdio-devres
  8. KCONFIG:= \
  9. CONFIG_AMD_XGBE \
  10. CONFIG_AMD_XGBE_DCB=y
  11. FILES:=$(LINUX_DIR)/drivers/net/ethernet/amd/xgbe/amd-xgbe.ko
  12. AUTOLOAD:=$(call AutoLoad,35,amd-xgbe)
  13. endef
  14. define KernelPackage/amd-xgbe/description
  15. Kernel modules for AMD 10GbE Ethernet device on an AMD SoC.
  16. endef
  17. $(eval $(call KernelPackage,amd-xgbe))
  18. define KernelPackage/dwmac-intel
  19. SUBMENU:=$(NETWORK_DEVICES_MENU)
  20. TITLE:=Intel GMAC support
  21. DEPENDS:=@TARGET_x86_64 +kmod-stmmac-core
  22. KCONFIG:=CONFIG_DWMAC_INTEL
  23. FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.ko
  24. AUTOLOAD=$(call AutoLoad,45,dwmac-intel)
  25. endef
  26. $(eval $(call KernelPackage,dwmac-intel))
  27. define KernelPackage/f71808e-wdt
  28. SUBMENU:=$(OTHER_MENU)
  29. TITLE:=Fintek F718xx/F818xx Watchdog Timer
  30. DEPENDS:=@TARGET_x86
  31. KCONFIG:=\
  32. CONFIG_F71808E_WDT \
  33. CONFIG_WATCHDOG_CORE=y
  34. FILES:=$(LINUX_DIR)/drivers/watchdog/f71808e_wdt.ko
  35. AUTOLOAD:=$(call AutoProbe,f71808e-wdt,1)
  36. endef
  37. define KernelPackage/f71808e-wdt/description
  38. Kernel module for the watchdog timer found on many Fintek Super-IO chips.
  39. endef
  40. $(eval $(call KernelPackage,f71808e-wdt))
  41. define KernelPackage/sound-cs5535audio
  42. TITLE:=CS5535/CS5536 Audio Controller
  43. DEPENDS:=@TARGET_x86_geode +kmod-ac97
  44. KCONFIG:=CONFIG_SND_CS5535AUDIO
  45. FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.ko
  46. AUTOLOAD:=$(call AutoLoad,36,snd-cs5535audio)
  47. $(call AddDepends/sound)
  48. endef
  49. define KernelPackage/sound-cs5535audio/description
  50. Support for the integrated AC97 sound device on motherboards
  51. with AMD CS5535/CS5536 chipsets.
  52. endef
  53. $(eval $(call KernelPackage,sound-cs5535audio))
  54. define KernelPackage/sp5100-tco
  55. SUBMENU:=$(OTHER_MENU)
  56. TITLE:=SP5100 Watchdog Support
  57. DEPENDS:=@TARGET_x86
  58. KCONFIG:=CONFIG_SP5100_TCO
  59. FILES:=$(LINUX_DIR)/drivers/watchdog/sp5100_tco.ko
  60. AUTOLOAD:=$(call AutoLoad,50,sp5100_tco,1)
  61. endef
  62. define KernelPackage/sp5100-tco/description
  63. Kernel module for the SP5100_TCO hardware watchdog.
  64. endef
  65. $(eval $(call KernelPackage,sp5100-tco))
  66. define KernelPackage/ib700-wdt
  67. SUBMENU:=$(OTHER_MENU)
  68. TITLE:=IB700 SBC Watchdog Timer
  69. DEPENDS:=@TARGET_x86
  70. KCONFIG:=CONFIG_IB700_WDT
  71. FILES:=$(LINUX_DIR)/drivers/watchdog/ib700wdt.ko
  72. AUTOLOAD:=$(call AutoLoad,50,ib700wdt,1)
  73. endef
  74. define KernelPackage/ib700-wdt/description
  75. Kernel module for the hardware watchdog on the IB700 Single
  76. Board Computer produced by TMC Technology (www.tmc-uk.com).
  77. Also used by QEMU/libvirt.
  78. endef
  79. $(eval $(call KernelPackage,ib700-wdt))
  80. define KernelPackage/intel-lpss
  81. SUBMENU:=$(OTHER_MENU)
  82. TITLE:=Intel LPSS common
  83. DEPENDS:=@TARGET_x86
  84. KCONFIG:=CONFIG_MFD_INTEL_LPSS
  85. FILES:=$(LINUX_DIR)/drivers/mfd/intel-lpss.ko
  86. HIDDEN:=1
  87. AUTOLOAD:=$(call AutoProbe,intel-lpss)
  88. endef
  89. $(eval $(call KernelPackage,intel-lpss))
  90. define KernelPackage/intel-lpss-acpi
  91. SUBMENU:=$(OTHER_MENU)
  92. TITLE:=Intel LPSS ACPI
  93. DEPENDS:=+kmod-intel-lpss
  94. KCONFIG:=CONFIG_MFD_INTEL_LPSS_ACPI
  95. FILES:=$(LINUX_DIR)/drivers/mfd/intel-lpss-acpi.ko
  96. AUTOLOAD:=$(call AutoProbe,intel-lpss-acpi)
  97. endef
  98. define KernelPackage/intel-lpss-acpi/description
  99. Kernel module to support Intel Low Power Subsystem (LPSS) devices such as
  100. I2C, SPI and HS-UART starting from Intel Sunrisepoint (Intel Skylake
  101. PCH) in ACPI mode.
  102. The actual hardware driver (eg. kmod-i2c-designware-platform) is still
  103. needed in addition to this package.
  104. endef
  105. $(eval $(call KernelPackage,intel-lpss-acpi))
  106. define KernelPackage/intel-lpss-pci
  107. SUBMENU:=$(OTHER_MENU)
  108. TITLE:=Intel LPSS PCI
  109. DEPENDS:=+kmod-intel-lpss @PCI_SUPPORT
  110. KCONFIG:=CONFIG_MFD_INTEL_LPSS_PCI
  111. FILES:=$(LINUX_DIR)/drivers/mfd/intel-lpss-pci.ko
  112. AUTOLOAD:=$(call AutoProbe,intel-lpss-pci)
  113. endef
  114. define KernelPackage/intel-lpss-pci/description
  115. Kernel module to support Intel Low Power Subsystem (LPSS) devices such as
  116. I2C, SPI and HS-UART starting from Intel Sunrisepoint (Intel Skylake
  117. PCH) in PCI mode.
  118. The actual hardware driver (eg. kmod-i2c-designware-platform) is still
  119. needed in addition to this package.
  120. endef
  121. $(eval $(call KernelPackage,intel-lpss-pci))
  122. define KernelPackage/it87-wdt
  123. SUBMENU:=$(OTHER_MENU)
  124. TITLE:=ITE IT87 Watchdog Timer
  125. DEPENDS:=@TARGET_x86
  126. KCONFIG:=CONFIG_IT87_WDT
  127. FILES:=$(LINUX_DIR)/drivers/watchdog/it87_wdt.ko
  128. AUTOLOAD:=$(call AutoLoad,50,it87-wdt,1)
  129. MODPARAMS.it87-wdt:= \
  130. nogameport=1 \
  131. nocir=1
  132. endef
  133. define KernelPackage/it87-wdt/description
  134. Kernel module for ITE IT87 Watchdog Timer
  135. endef
  136. $(eval $(call KernelPackage,it87-wdt))
  137. define KernelPackage/itco-wdt
  138. SUBMENU:=$(OTHER_MENU)
  139. TITLE:=Intel iTCO Watchdog Timer
  140. DEPENDS:=@TARGET_x86
  141. KCONFIG:=\
  142. CONFIG_ITCO_WDT \
  143. CONFIG_ITCO_VENDOR_SUPPORT=y \
  144. CONFIG_WATCHDOG_CORE=y
  145. FILES:=$(LINUX_DIR)/drivers/watchdog/iTCO_wdt.ko \
  146. $(LINUX_DIR)/drivers/watchdog/iTCO_vendor_support.ko
  147. AUTOLOAD:=$(call AutoLoad,50,iTCO_vendor_support iTCO_wdt,1)
  148. endef
  149. define KernelPackage/itco-wdt/description
  150. Kernel module for Intel iTCO Watchdog Timer
  151. endef
  152. $(eval $(call KernelPackage,itco-wdt))
  153. define KernelPackage/pcengines-apuv2
  154. SUBMENU:=$(OTHER_MENU)
  155. TITLE:=PC Engines APUv2/3 front button and LEDs driver
  156. DEPENDS:=@TARGET_x86 +kmod-gpio-amd-fch +kmod-leds-gpio
  157. KCONFIG:=CONFIG_PCENGINES_APU2
  158. FILES:=$(LINUX_DIR)/drivers/platform/x86/pcengines-apuv2.ko
  159. AUTOLOAD:=$(call AutoLoad,60,pcengines-apuv2)
  160. endef
  161. define KernelPackage/pcengines-apuv2/description
  162. This driver provides support for the front button and LEDs on
  163. PC Engines APUv2/APUv3 board.
  164. endef
  165. $(eval $(call KernelPackage,pcengines-apuv2))
  166. define KernelPackage/meraki-mx100
  167. SUBMENU:=$(OTHER_MENU)
  168. TITLE:=Cisco Meraki MX100 Platform Driver
  169. DEPENDS:=@TARGET_x86 +kmod-tg3 +kmod-gpio-button-hotplug +kmod-leds-gpio \
  170. +kmod-usb-ledtrig-usbport +PACKAGE_kmod-meraki-mx100:nu801 +kmod-itco-wdt \
  171. +kmod-leds-uleds
  172. KCONFIG:=CONFIG_MERAKI_MX100
  173. FILES:=$(LINUX_DIR)/drivers/platform/x86/meraki-mx100.ko
  174. AUTOLOAD:=$(call AutoLoad,60,meraki-mx100,1)
  175. endef
  176. define KernelPackage/meraki-mx100/description
  177. This driver provides support for the front button and LEDs on
  178. the Cisco Meraki MX100 (Tinkerbell) 1U appliance. Note this also
  179. selects the gpio-cdev nu801 userspace driver to support the Status
  180. LED, as well as other required platform drivers.
  181. endef
  182. $(eval $(call KernelPackage,meraki-mx100))
  183. define KernelPackage/w83627hf-wdt
  184. SUBMENU:=$(OTHER_MENU)
  185. TITLE:=Winbond 83627HF Watchdog Timer
  186. DEPENDS:=@TARGET_x86
  187. KCONFIG:=\
  188. CONFIG_W83627HF_WDT \
  189. CONFIG_WATCHDOG_CORE=y
  190. FILES:=$(LINUX_DIR)/drivers/watchdog/w83627hf_wdt.ko
  191. AUTOLOAD:=$(call AutoLoad,50,w83627hf-wdt,1)
  192. endef
  193. define KernelPackage/w83627hf-wdt/description
  194. Kernel module for Winbond 83627HF Watchdog Timer
  195. endef
  196. $(eval $(call KernelPackage,w83627hf-wdt))