modules.mk 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #
  2. # Copyright (C) 2010 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/mmc-at91
  8. SUBMENU:=$(OTHER_MENU)
  9. TITLE:=MMC/SD Card Support on AT91
  10. DEPENDS:=@TARGET_at91 +kmod-mmc
  11. KCONFIG:=CONFIG_MMC_AT91
  12. FILES:=$(LINUX_DIR)/drivers/mmc/host/at91_mci.ko
  13. AUTOLOAD:=$(call AutoLoad,90,at91_mci,1)
  14. endef
  15. define KernelPackage/mmc-at91/description
  16. Kernel support for MMC/SD cards on the AT91 target
  17. endef
  18. $(eval $(call KernelPackage,mmc-at91))
  19. define KernelPackage/pwm-atmel
  20. SUBMENU:=$(OTHER_MENU)
  21. TITLE:=PWM on atmel SoC
  22. DEPENDS:=@TARGET_at91
  23. KCONFIG:=CONFIG_ATMEL_PWM
  24. FILES:=$(LINUX_DIR)/drivers/misc/atmel_pwm.ko
  25. AUTOLOAD:=$(call AutoLoad,51,atmel_pwm)
  26. endef
  27. define KernelPackage/pwm-atmel/description
  28. Kernel module to use the PWM channel on ATMEL SoC
  29. endef
  30. $(eval $(call KernelPackage,pwm-atmel))
  31. define KernelPackage/at91-adc
  32. SUBMENU:=$(OTHER_MENU)
  33. TITLE:=ADC on atmel SoC
  34. DEPENDS:=@TARGET_at91 +kmod-iio-core +kmod-input-core
  35. KCONFIG:=CONFIG_AT91_ADC
  36. FILES:=$(LINUX_DIR)/drivers/iio/adc/at91_adc.ko
  37. AUTOLOAD:=$(call AutoLoad,40,at91_adc)
  38. endef
  39. define KernelPackage/at91-adc/description
  40. Kernel module to use the ADC channels of SoC
  41. endef
  42. $(eval $(call KernelPackage,at91-adc))
  43. define KernelPackage/at91-udc
  44. SUBMENU:=$(USB_MENU)
  45. TITLE:=USB Device Controller on atmel SoC
  46. DEPENDS:=@TARGET_at91 +kmod-usb-gadget +kmod-regmap
  47. KCONFIG:=CONFIG_USB_AT91
  48. ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/udc/at91_udc.ko),)
  49. FILES:=$(LINUX_DIR)/drivers/usb/gadget/udc/at91_udc.ko
  50. else
  51. FILES:=$(LINUX_DIR)/drivers/usb/gadget/at91_udc.ko
  52. endif
  53. AUTOLOAD:=$(call AutoLoad,51,at91_udc)
  54. endef
  55. define KernelPackage/at91-udc/description
  56. Kernel module to use the USB Device controller for Atmel AT91
  57. endef
  58. $(eval $(call KernelPackage,at91-udc))
  59. define KernelPackage/atmel-usba-udc
  60. SUBMENU:=$(USB_MENU)
  61. TITLE:=High-speed USB Device Controller on atmel SoC
  62. DEPENDS:=@TARGET_at91 +kmod-usb-gadget
  63. KCONFIG:=CONFIG_USB_ATMEL_USBA
  64. ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/udc/atmel_usba_udc.ko),)
  65. FILES:=$(LINUX_DIR)/drivers/usb/gadget/udc/atmel_usba_udc.ko
  66. else
  67. FILES:=$(LINUX_DIR)/drivers/usb/gadget/atmel_usba_udc.ko
  68. endif
  69. AUTOLOAD:=$(call AutoLoad,51,atmel_usba_udc)
  70. endef
  71. define KernelPackage/atmel-usba-udc/description
  72. Kernel module to use the High-speed USB Device controller for Atmel AT91
  73. endef
  74. $(eval $(call KernelPackage,atmel-usba-udc))
  75. I2C_AT91_MODULES:=\
  76. CONFIG_I2C_AT91:drivers/i2c/busses/i2c-at91
  77. define KernelPackage/at91-i2c
  78. $(call i2c_defaults,$(I2C_AT91_MODULES),55)
  79. TITLE:=I2C (TWI) master driver for Atmel AT91
  80. DEPENDS:=@TARGET_at91 +kmod-i2c-core
  81. endef
  82. define KernelPackage/at91-i2c/description
  83. Kernel module to use the I2C (TWI) master driver for Atmel AT91
  84. endef
  85. $(eval $(call KernelPackage,at91-i2c))