modules.mk 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #
  2. # Copyright (C) 2013-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. define KernelPackage/rtc-stmp3xxx
  7. SUBMENU:=$(OTHER_MENU)
  8. TITLE:=STMP3xxx SoC built-in RTC support
  9. DEPENDS:=@TARGET_mxs
  10. $(call AddDepends/rtc)
  11. KCONFIG:= \
  12. CONFIG_RTC_CLASS=y \
  13. CONFIG_RTC_DRV_STMP=m
  14. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-stmp3xxx.ko
  15. AUTOLOAD:=$(call AutoLoad,50,rtc-stmp3xxx)
  16. endef
  17. $(eval $(call KernelPackage,rtc-stmp3xxx))
  18. define KernelPackage/wdt-stmp3xxx
  19. SUBMENU:=$(OTHER_MENU)
  20. TITLE:=STMP3xxx Watchdog timer
  21. DEPENDS:=kmod-rtc-stmp3xxx
  22. KCONFIG:=CONFIG_STMP3XXX_RTC_WATCHDOG
  23. FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/stmp3xxx_rtc_wdt.ko
  24. AUTOLOAD:=$(call AutoLoad,51,stmp3xxx_rtc_wdt)
  25. endef
  26. define KernelPackage/wdt-stmp3xxx/description
  27. Kernel module for STMP3xxx watchdog timer.
  28. endef
  29. $(eval $(call KernelPackage,wdt-stmp3xxx))
  30. define KernelPackage/sound-soc-mxs
  31. TITLE:=Freescale i.MX23/i.MX28 built-in SoC sound support
  32. KCONFIG:= \
  33. CONFIG_SND_SOC_MXS_BUILTIN_CODEC \
  34. CONFIG_SND_MXS_SOC_BUILTIN
  35. FILES:= \
  36. $(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-audio.ko \
  37. $(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-dai.ko \
  38. $(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-pcm.ko \
  39. $(LINUX_DIR)/sound/soc/codecs/snd-soc-mxs-builtin-codec.ko
  40. AUTOLOAD:=$(call AutoLoad,65,snd-soc-mxs-builtin-pcm snd-soc-mxs-builtin-dai snd-soc-mxs-builtin-codec snd-soc-mxs-builtin-audio)
  41. DEPENDS:=@TARGET_mxs +kmod-sound-soc-core
  42. $(call AddDepends/sound)
  43. endef
  44. define KernelPackage/sound-soc-mxs/description
  45. Kernel support for Freescale i.MX23/i.MX28 built-in SoC audio
  46. endef
  47. $(eval $(call KernelPackage,sound-soc-mxs))
  48. define KernelPackage/iio-mxs-lradc
  49. SUBMENU:=$(OTHER_MENU)
  50. TITLE:=Freescale i.MX23/28 LRADC driver
  51. DEPENDS:=@TARGET_mxs +kmod-iio-core
  52. KCONFIG:=CONFIG_MXS_LRADC
  53. FILES:=$(LINUX_DIR)/drivers/staging/iio/adc/mxs-lradc.ko
  54. AUTOLOAD:=$(call AutoLoad,70,mxs-lradc)
  55. endef
  56. define KernelPackage/iio-mxs-lradc/description
  57. Kernel module for Freescale i.MX23/28 LRADC driver
  58. endef
  59. $(eval $(call KernelPackage,iio-mxs-lradc))
  60. define KernelPackage/crypto-hw-dcp
  61. TITLE:=Freescale i.MX23/28 DCP hardware crypto module
  62. DEPENDS:=@TARGET_mxs
  63. KCONFIG:=CONFIG_CRYPTO_DEV_MXS_DCP
  64. FILES:=$(LINUX_DIR)/drivers/crypto/mxs-dcp.ko
  65. AUTOLOAD:=$(call AutoLoad,90,mxs-dcp)
  66. $(call AddDepends/crypto,+kmod-crypto-authenc +kmod-crypto-des)
  67. endef
  68. define KernelPackage/crypto-hw-dcp/description
  69. Kernel support for Freescale i.MX23/28 DCP crypto engine
  70. endef
  71. $(eval $(call KernelPackage,crypto-hw-dcp))
  72. define KernelPackage/spi-mxs
  73. SUBMENU:=$(SPI_MENU)
  74. TITLE:=Freescale i.MX23/28 SPI driver
  75. DEPENDS:=@TARGET_mxs
  76. KCONFIG:=CONFIG_SPI_MXS
  77. FILES:=$(LINUX_DIR)/drivers/spi/spi-mxs.ko
  78. AUTOLOAD:=$(call AutoProbe,spi-mxs)
  79. endef
  80. define KernelPackage/spi-mxs/description
  81. Kernel module for Freescale i.MX23/28 SPI controller
  82. endef
  83. $(eval $(call KernelPackage,spi-mxs))
  84. I2C_MXS_MODULES:= \
  85. CONFIG_I2C_MXS:drivers/i2c/busses/i2c-mxs
  86. define KernelPackage/i2c-mxs
  87. $(call i2c_defaults,$(I2C_MXS_MODULES),55)
  88. TITLE:=Freescale i.MX23/28 I2C driver
  89. DEPENDS:=@TARGET_mxs +kmod-i2c-core
  90. endef
  91. define KernelPackage/i2c-mxs/description
  92. Kernel module for Freescale i.MX23/28 I2C controller
  93. endef
  94. $(eval $(call KernelPackage,i2c-mxs))