modules.mk 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_mt7620a +kmod-sdhci
  12. KCONFIG:= \
  13. CONFIG_MMC_SDHCI_MT7620
  14. FILES:= \
  15. $(LINUX_DIR)/drivers/mmc/host/sdhci-mt7620.ko
  16. AUTOLOAD:=$(call AutoProbe,sdhci-mt7620,1)
  17. endef
  18. $(eval $(call KernelPackage,sdhci-mt7620))
  19. I2C_RALINK_MODULES:= \
  20. CONFIG_I2C_RALINK:drivers/i2c/busses/i2c-ralink
  21. define KernelPackage/i2c-ralink
  22. $(call i2c_defaults,$(I2C_RALINK_MODULES),59)
  23. TITLE:=Ralink I2C Controller
  24. DEPENDS:=@TARGET_ramips kmod-i2c-core
  25. endef
  26. define KernelPackage/i2c-ralink/description
  27. Kernel modules for enable ralink i2c controller.
  28. endef
  29. $(eval $(call KernelPackage,i2c-ralink))
  30. define KernelPackage/sound-mt7620
  31. TITLE:=MT7620 PCM/I2S Alsa Driver
  32. DEPENDS:=@TARGET_ramips_mt7620a +kmod-sound-soc-core +kmod-regmap
  33. KCONFIG:= \
  34. CONFIG_SND_MT7620_SOC_I2S \
  35. CONFIG_SND_MT7620_SOC_WM8960
  36. FILES:= \
  37. $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-i2s.ko \
  38. $(LINUX_DIR)/sound/soc/ralink/snd-soc-mt7620-wm8960.ko \
  39. $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
  40. AUTOLOAD:=$(call AutoLoad,90,snd-soc-wm8960 snd-soc-mt7620-i2s snd-soc-mt7620-wm8960)
  41. $(call AddDepends/sound)
  42. endef
  43. define KernelPackage/sound-mt7620/description
  44. Alsa modules for ralink i2s controller.
  45. endef
  46. $(eval $(call KernelPackage,sound-mt7620))