modules.mk 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #
  2. # Copyright (C) 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. define KernelPackage/sound-soc-omap
  8. TITLE:=OMAP SoC sound support
  9. KCONFIG:= \
  10. CONFIG_SND_OMAP_SOC
  11. FILES:=$(LINUX_DIR)/sound/soc/omap/snd-soc-omap.ko
  12. AUTOLOAD:=$(call AutoLoad,60,snd-soc-omap)
  13. DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-core
  14. $(call AddDepends/sound)
  15. endef
  16. $(eval $(call KernelPackage,sound-soc-omap))
  17. define KernelPackage/sound-soc-omap-mcbsp
  18. TITLE:=OMAP SoC MCBSP support
  19. KCONFIG:= \
  20. CONFIG_SND_OMAP_SOC_MCBSP
  21. FILES:=$(LINUX_DIR)/sound/soc/omap/snd-soc-omap-mcbsp.ko
  22. AUTOLOAD:=$(call AutoLoad,61,snd-soc-omap-mcbsp)
  23. DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-omap
  24. $(call AddDepends/sound)
  25. endef
  26. $(eval $(call KernelPackage,sound-soc-omap-mcbsp))
  27. define KernelPackage/sound-soc-n810
  28. TITLE:=Nokia n810 SoC sound support
  29. KCONFIG:= \
  30. CONFIG_SND_OMAP_SOC_N810
  31. FILES:= \
  32. $(LINUX_DIR)/sound/soc/codecs/snd-soc-tlv320aic3x.ko \
  33. $(LINUX_DIR)/sound/soc/omap/snd-soc-n810.ko
  34. AUTOLOAD:=$(call AutoLoad,65,snd-soc-tlv320aic3x snd-soc-n810)
  35. DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-omap +kmod-sound-soc-omap-mcbsp
  36. $(call AddDepends/sound)
  37. endef
  38. $(eval $(call KernelPackage,sound-soc-n810))
  39. define KernelPackage/n810bm
  40. SUBMENU:=$(OTHER_MENU)
  41. TITLE:=Nokia N810 battery management driver
  42. DEPENDS:=@TARGET_omap24xx
  43. KCONFIG:=CONFIG_N810BM
  44. FILES:=$(LINUX_DIR)/drivers/cbus/n810bm.ko
  45. AUTOLOAD:=$(call AutoLoad,01,n810bm)
  46. endef
  47. define KernelPackage/n810bm/description
  48. Nokia N810 battery management driver.
  49. Controls battery power management and battery charging.
  50. endef
  51. $(eval $(call KernelPackage,n810bm))
  52. define KernelPackage/usb-tahvo
  53. TITLE:=Support for Tahvo (Nokia n810) USB
  54. KCONFIG:= \
  55. CONFIG_TAHVO_USB \
  56. CONFIG_TAHVO_USB_HOST_BY_DEFAULT=n \
  57. CONFIG_USB_OHCI_HCD_OMAP1=y \
  58. CONFIG_USB_GADGET_DEBUG_FS=n
  59. DEPENDS:=@TARGET_omap24xx +kmod-usb-musb-tusb6010
  60. FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-tahvo.ko
  61. AUTOLOAD:=$(call AutoLoad,45,phy-tahvo)
  62. $(call AddDepends/usb)
  63. endef
  64. define KernelPackage/usb-tahvo/description
  65. Kernel support for Nokia n810 USB OHCI controller.
  66. endef
  67. $(eval $(call KernelPackage,usb-tahvo))