modules.mk 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 @BROKEN
  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))
  60. define KernelPackage/sound-mtk
  61. TITLE:=Mediatek I2S Alsa Driver
  62. DEPENDS:= +kmod-sound-soc-core +kmod-regmap +kmod-i2c-ralink @(TARGET_ramips_mt7628||TARGET_ramips_mt7688||TARGET_ramips_mt7620)
  63. KCONFIG:= \
  64. CONFIG_SND_MT76XX_SOC \
  65. CONFIG_SND_MT76XX_I2S \
  66. CONFIG_SND_MT76XX_PCM \
  67. CONFIG_SND_SOC_WM8960
  68. FILES:= \
  69. $(LINUX_DIR)/sound/soc/mtk/ralink_gdma.ko \
  70. $(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-i2s-ctl.ko \
  71. $(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-i2s.ko \
  72. $(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-pcm.ko \
  73. $(LINUX_DIR)/sound/soc/mtk/snd-soc-mt76xx-machine.ko \
  74. $(LINUX_DIR)/sound/soc/mtk/i2c_wm8960.ko \
  75. $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8960.ko
  76. AUTOLOAD:=$(call AutoLoad,90,ralink_gdma snd-soc-wm8960 i2c_wm8960 snd-soc-mt76xx-i2s-ctl snd-soc-mt76xx-i2s snd-soc-mt76xx-pcm snd-soc-mt76xx-machine)
  77. $(call AddDepends/sound)
  78. endef
  79. define KernelPackage/sound-mtk/description
  80. Alsa modules for ralink i2s controller.
  81. endef
  82. $(eval $(call KernelPackage,sound-mtk))