modules.mk 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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
  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-adc/description
  56. Kernel module to use the USB Device controller for Atmel AT91
  57. endef
  58. $(eval $(call KernelPackage,at91-udc))
  59. I2C_AT91_MODULES:=\
  60. CONFIG_I2C_AT91:drivers/i2c/busses/i2c-at91
  61. define KernelPackage/at91-i2c
  62. $(call i2c_defaults,$(I2C_AT91_MODULES),55)
  63. TITLE:=I2C (TWI) master driver for Atmel AT91
  64. DEPENDS:=@TARGET_at91 +kmod-i2c-core
  65. endef
  66. define KernelPackage/at91-i2c/description
  67. Kernel module to use the I2C (TWI) master driver for Atmel AT91
  68. endef
  69. $(eval $(call KernelPackage,at91-i2c))