modules.mk 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. OTHER_MENU:=Other modules
  8. define KernelPackage/sdhci-mt7620
  9. SUBMENU:=Other modules
  10. TITLE:=MT7620 SDCI
  11. DEPENDS:=@(TARGET_ramips_mt7620||TARGET_ramips_mt7628||TARGET_ramips_mt7621||TARGET_ramips_mt7688) +kmod-sdhci
  12. KCONFIG:= \
  13. CONFIG_MTK_MMC \
  14. CONFIG_MTK_AEE_KDUMP=n \
  15. CONFIG_MTK_MMC_CD_POLL=n
  16. FILES:= \
  17. $(LINUX_DIR)/drivers/mmc/host/mtk-mmc/mtk_sd.ko
  18. AUTOLOAD:=$(call AutoProbe,mtk_sd,1)
  19. endef
  20. $(eval $(call KernelPackage,sdhci-mt7620))
  21. I2C_RALINK_MODULES:= \
  22. CONFIG_I2C_RALINK:drivers/i2c/busses/i2c-ralink
  23. define KernelPackage/i2c-ralink
  24. $(call i2c_defaults,$(I2C_RALINK_MODULES),59)
  25. TITLE:=Ralink I2C Controller
  26. DEPENDS:=@TARGET_ramips @(!TARGET_ramips_mt7621) kmod-i2c-core
  27. endef
  28. define KernelPackage/i2c-ralink/description
  29. Kernel modules for enable ralink i2c controller.
  30. endef
  31. $(eval $(call KernelPackage,i2c-ralink))
  32. I2C_MT7621_MODULES:= \
  33. CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621
  34. define KernelPackage/i2c-mt7621
  35. $(call i2c_defaults,$(I2C_MT7621_MODULES),59)
  36. TITLE:=MT7621 I2C Controller
  37. DEPENDS:=@TARGET_ramips @TARGET_ramips_mt7621 kmod-i2c-core
  38. endef
  39. define KernelPackage/i2c-mt7621/description
  40. Kernel modules for enable mt7621 i2c controller.
  41. endef
  42. $(eval $(call KernelPackage,i2c-mt7621))
  43. define KernelPackage/sound-mt7620
  44. TITLE:=MT7620 PCM/I2S Alsa Driver
  45. DEPENDS:=@TARGET_ramips_mt7620 +kmod-sound-soc-core +kmod-regmap
  46. KCONFIG:= \
  47. CONFIG_SND_MT7620_SOC_I2S \
  48. CONFIG_SND_MT7620_SOC_WM8960
  49. FILES:= \
  50. $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-i2s.ko \
  51. $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-wm8960.ko \
  52. $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
  53. AUTOLOAD:=$(call AutoLoad,90,snd-soc-wm8960 snd-soc-mt7620-i2s snd-soc-mt7620-wm8960)
  54. $(call AddDepends/sound)
  55. endef
  56. define KernelPackage/sound-mt7620/description
  57. Alsa modules for ralink i2s controller.
  58. endef
  59. $(eval $(call KernelPackage,sound-mt7620))