modules.mk 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. #
  2. # Copyright (C) 2006-2016 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. OTHER_MENU:=Other modules
  8. define KernelPackage/pwm-mediatek-ramips
  9. SUBMENU:=Other modules
  10. TITLE:=MT7628 PWM
  11. DEPENDS:=@(TARGET_ramips_mt76x8)
  12. KCONFIG:= \
  13. CONFIG_PWM=y \
  14. CONFIG_PWM_MEDIATEK_RAMIPS \
  15. CONFIG_PWM_SYSFS=y
  16. FILES:= \
  17. $(LINUX_DIR)/drivers/pwm/pwm-mediatek-ramips.ko
  18. AUTOLOAD:=$(call AutoProbe,pwm-mediatek-ramips)
  19. endef
  20. define KernelPackage/pwm-mediatek/description
  21. Kernel modules for MediaTek Pulse Width Modulator
  22. endef
  23. $(eval $(call KernelPackage,pwm-mediatek-ramips))
  24. define KernelPackage/sdhci-mt7620
  25. SUBMENU:=Other modules
  26. TITLE:=MT7620 SDCI
  27. DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt76x8||TARGET_ramips_mt7621) +kmod-mmc
  28. KCONFIG:= \
  29. CONFIG_MTK_MMC \
  30. CONFIG_MTK_AEE_KDUMP=n \
  31. CONFIG_MTK_MMC_CD_POLL=n
  32. FILES:= \
  33. $(LINUX_DIR)/drivers/mmc/host/mtk-mmc/mtk_sd.ko
  34. AUTOLOAD:=$(call AutoProbe,mtk_sd,1)
  35. endef
  36. $(eval $(call KernelPackage,sdhci-mt7620))
  37. I2C_RALINK_MODULES:= \
  38. CONFIG_I2C_RALINK:drivers/i2c/busses/i2c-ralink
  39. define KernelPackage/i2c-ralink
  40. $(call i2c_defaults,$(I2C_RALINK_MODULES),59)
  41. TITLE:=Ralink I2C Controller
  42. DEPENDS:=kmod-i2c-core @TARGET_ramips \
  43. @!(TARGET_ramips_mt7621||TARGET_ramips_mt76x8)
  44. endef
  45. define KernelPackage/i2c-ralink/description
  46. Kernel modules for enable ralink i2c controller.
  47. endef
  48. $(eval $(call KernelPackage,i2c-ralink))
  49. I2C_MT7621_MODULES:= \
  50. CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621
  51. define KernelPackage/i2c-mt7628
  52. $(call i2c_defaults,$(I2C_MT7621_MODULES),59)
  53. TITLE:=MT7628/88 I2C Controller
  54. DEPENDS:=kmod-i2c-core \
  55. @(TARGET_ramips_mt76x8)
  56. endef
  57. define KernelPackage/i2c-mt7628/description
  58. Kernel modules for enable mt7621 i2c controller.
  59. endef
  60. $(eval $(call KernelPackage,i2c-mt7628))
  61. define KernelPackage/dma-ralink
  62. SUBMENU:=Other modules
  63. TITLE:=Ralink GDMA Engine
  64. DEPENDS:=@TARGET_ramips
  65. KCONFIG:= \
  66. CONFIG_DMADEVICES=y \
  67. CONFIG_DW_DMAC_PCI=n \
  68. CONFIG_DMA_RALINK
  69. FILES:= \
  70. $(LINUX_DIR)/drivers/dma/virt-dma.ko \
  71. $(LINUX_DIR)/drivers/dma/ralink-gdma.ko
  72. AUTOLOAD:=$(call AutoLoad,52,ralink-gdma)
  73. endef
  74. define KernelPackage/dma-ralink/description
  75. Kernel modules for enable ralink dma engine.
  76. endef
  77. $(eval $(call KernelPackage,dma-ralink))
  78. define KernelPackage/hsdma-mtk
  79. SUBMENU:=Other modules
  80. TITLE:=MediaTek HSDMA Engine
  81. DEPENDS:=@TARGET_ramips @TARGET_ramips_mt7621
  82. KCONFIG:= \
  83. CONFIG_DMADEVICES=y \
  84. CONFIG_DW_DMAC_PCI=n \
  85. CONFIG_MTK_HSDMA
  86. FILES:= \
  87. $(LINUX_DIR)/drivers/dma/virt-dma.ko \
  88. $(LINUX_DIR)/drivers/dma/mtk-hsdma.ko
  89. AUTOLOAD:=$(call AutoLoad,53,mtk-hsdma)
  90. endef
  91. define KernelPackage/hsdma-mtk/description
  92. Kernel modules for enable MediaTek hsdma engine.
  93. endef
  94. $(eval $(call KernelPackage,hsdma-mtk))
  95. define KernelPackage/sound-mt7620
  96. TITLE:=MT7620 PCM/I2S Alsa Driver
  97. DEPENDS:=@TARGET_ramips +kmod-sound-soc-core +kmod-regmap +kmod-dma-ralink @!TARGET_ramips_rt288x
  98. KCONFIG:= \
  99. CONFIG_SND_RALINK_SOC_I2S \
  100. CONFIG_SND_SIMPLE_CARD \
  101. CONFIG_SND_SIMPLE_CARD_UTILS \
  102. CONFIG_SND_SOC_WM8960
  103. FILES:= \
  104. $(LINUX_DIR)/sound/soc/ralink/snd-soc-ralink-i2s.ko \
  105. $(LINUX_DIR)/sound/soc/generic/snd-soc-simple-card.ko \
  106. $(LINUX_DIR)/sound/soc/generic/snd-soc-simple-card-utils.ko \
  107. $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
  108. AUTOLOAD:=$(call AutoLoad,90,snd-soc-wm8960 snd-soc-ralink-i2s snd-soc-simple-card)
  109. $(call AddDepends/sound)
  110. endef
  111. define KernelPackage/sound-mt7620/description
  112. Alsa modules for ralink i2s controller.
  113. endef
  114. $(eval $(call KernelPackage,sound-mt7620))