modules.mk 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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-arm-bcm2835
  8. TITLE:=Broadcom 2708,2835 SoC sound support
  9. KCONFIG:= \
  10. CONFIG_SND_ARM=y \
  11. CONFIG_SND_BCM2835 \
  12. CONFIG_SND_ARMAACI=n
  13. FILES:= \
  14. $(LINUX_DIR)/sound/arm/snd-bcm2835.ko
  15. AUTOLOAD:=$(call AutoLoad,68,snd-bcm2835)
  16. DEPENDS:=@TARGET_brcm2708
  17. $(call AddDepends/sound)
  18. endef
  19. define KernelPackage/sound-arm-bcm2835/description
  20. This package contains the Broadcom 2708/2835 sound driver
  21. endef
  22. $(eval $(call KernelPackage,sound-arm-bcm2835))
  23. define KernelPackage/random-bcm2708
  24. SUBMENU:=$(OTHER_MENU)
  25. TITLE:=BCM2708 H/W Random Number Generator
  26. KCONFIG:=CONFIG_HW_RANDOM_BCM2708
  27. FILES:=$(LINUX_DIR)/drivers/char/hw_random/bcm2708-rng.ko
  28. AUTOLOAD:=$(call AutoLoad,11,bcm2708-rng)
  29. DEPENDS:=@TARGET_brcm2708 +kmod-random-core
  30. endef
  31. define KernelPackage/random-bcm2708/description
  32. This package contains the Broadcom 2708 HW random number generator driver
  33. endef
  34. $(eval $(call KernelPackage,random-bcm2708))
  35. define KernelPackage/spi-bcm2708
  36. SUBMENU:=$(SPI_MENU)
  37. TITLE:=BCM2708 SPI controller driver (SPI0)
  38. KCONFIG:=CONFIG_SPI_BCM2708 \
  39. CONFIG_SPI=y \
  40. CONFIG_SPI_MASTER=y \
  41. CONFIG_BCM2708_SPIDEV=y
  42. FILES:=$(LINUX_DIR)/drivers/spi/spi-bcm2708.ko
  43. AUTOLOAD:=$(call AutoLoad,89,spi-bcm2708)
  44. DEPENDS:=@TARGET_brcm2708
  45. endef
  46. define KernelPackage/spi-bcm2708/description
  47. This package contains the Broadcom 2708 SPI master controller driver
  48. endef
  49. $(eval $(call KernelPackage,spi-bcm2708))
  50. define KernelPackage/hwmon-bcm2835
  51. TITLE:=BCM2835 HWMON driver
  52. KCONFIG:=CONFIG_SENSORS_BCM2835
  53. FILES:=$(LINUX_DIR)/drivers/hwmon/bcm2835-hwmon.ko
  54. AUTOLOAD:=$(call AutoLoad,60,bcm2835-hwmon)
  55. DEPENDS:=@TARGET_brcm2708
  56. $(call AddDepends/hwmon,@TARGET_brcm2708)
  57. endef
  58. define KernelPackage/hwmon-bcm2835/description
  59. Kernel module for BCM2835 thermal monitor chip
  60. endef
  61. $(eval $(call KernelPackage,hwmon-bcm2835))
  62. I2C_BCM2708_MODULES:=\
  63. CONFIG_I2C_BCM2708:drivers/i2c/busses/i2c-bcm2708
  64. define KernelPackage/i2c-bcm2708
  65. $(call i2c_defaults,$(I2C_BCM2708_MODULES),59)
  66. KCONFIG+= \
  67. CONFIG_I2C_BCM2708_BAUDRATE=100000
  68. TITLE:=Broadcom BCM2708 I2C master controller driver
  69. DEPENDS:=@TARGET_brcm2708 +kmod-i2c-core
  70. endef
  71. define KernelPackage/i2c-bcm2708/description
  72. This package contains the Broadcom 2708 I2C master controller driver
  73. endef
  74. $(eval $(call KernelPackage,i2c-bcm2708))