hwmon.mk 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. #
  2. # Copyright (C) 2006-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. HWMON_MENU:=Hardware Monitoring Support
  8. define KernelPackage/hwmon-core
  9. SUBMENU:=$(HWMON_MENU)
  10. TITLE:=Hardware monitoring support
  11. KCONFIG:= \
  12. CONFIG_HWMON \
  13. CONFIG_HWMON_DEBUG_CHIP=n
  14. FILES:= \
  15. $(LINUX_DIR)/drivers/hwmon/hwmon.ko
  16. AUTOLOAD:=$(call AutoLoad,40,hwmon)
  17. endef
  18. define KernelPackage/hwmon-core/description
  19. Kernel modules for hardware monitoring
  20. endef
  21. $(eval $(call KernelPackage,hwmon-core))
  22. define AddDepends/hwmon
  23. SUBMENU:=$(HWMON_MENU)
  24. DEPENDS:=kmod-hwmon-core $(1)
  25. endef
  26. define KernelPackage/hwmon-vid
  27. TITLE:=VID/VRM/VRD voltage conversion module.
  28. KCONFIG:=CONFIG_HWMON_VID
  29. FILES:=$(LINUX_DIR)/drivers/hwmon/hwmon-vid.ko
  30. AUTOLOAD:=$(call AutoLoad,41,hwmon-vid)
  31. $(call AddDepends/hwmon,)
  32. endef
  33. define KernelPackage/hwmon-vid/description
  34. VID/VRM/VRD voltage conversion module for hardware monitoring.
  35. endef
  36. $(eval $(call KernelPackage,hwmon-vid))
  37. define KernelPackage/hwmon-adt7475
  38. TITLE:=ADT7473/7475/7476/7490 monitoring support
  39. KCONFIG:=CONFIG_SENSORS_ADT7475
  40. FILES:=$(LINUX_DIR)/drivers/hwmon/adt7475.ko
  41. AUTOLOAD:=$(call AutoLoad,60,adt7475)
  42. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
  43. endef
  44. define KernelPackage/hwmon-adt7475/description
  45. Kernel module for ADT7473/7475/7476/7490 thermal monitor chip.
  46. endef
  47. $(eval $(call KernelPackage,hwmon-adt7475))
  48. define KernelPackage/hwmon-lm63
  49. TITLE:=LM63/64 monitoring support
  50. KCONFIG:=CONFIG_SENSORS_LM63
  51. FILES:=$(LINUX_DIR)/drivers/hwmon/lm63.ko
  52. AUTOLOAD:=$(call AutoLoad,60,lm63)
  53. $(call AddDepends/hwmon,+kmod-i2c-core)
  54. endef
  55. define KernelPackage/hwmon-lm63/description
  56. Kernel module for lm63 and lm64 thermal monitor chip
  57. endef
  58. $(eval $(call KernelPackage,hwmon-lm63))
  59. define KernelPackage/hwmon-lm75
  60. TITLE:=LM75 monitoring support
  61. KCONFIG:=CONFIG_SENSORS_LM75
  62. FILES:=$(LINUX_DIR)/drivers/hwmon/lm75.ko
  63. AUTOLOAD:=$(call AutoLoad,60,lm75)
  64. $(call AddDepends/hwmon,+kmod-i2c-core)
  65. endef
  66. define KernelPackage/hwmon-lm75/description
  67. Kernel module for lm75 thermal monitor chip
  68. endef
  69. $(eval $(call KernelPackage,hwmon-lm75))
  70. define KernelPackage/hwmon-lm77
  71. TITLE:=LM77 monitoring support
  72. KCONFIG:=CONFIG_SENSORS_LM77
  73. FILES:=$(LINUX_DIR)/drivers/hwmon/lm77.ko
  74. AUTOLOAD:=$(call AutoLoad,60,lm77)
  75. $(call AddDepends/hwmon,+kmod-i2c-core)
  76. endef
  77. define KernelPackage/hwmon-lm77/description
  78. Kernel module for LM77 thermal monitor chip
  79. endef
  80. $(eval $(call KernelPackage,hwmon-lm77))
  81. define KernelPackage/hwmon-lm85
  82. TITLE:=LM85 monitoring support
  83. KCONFIG:=CONFIG_SENSORS_LM85
  84. FILES:=$(LINUX_DIR)/drivers/hwmon/lm85.ko
  85. AUTOLOAD:=$(call AutoLoad,60,lm85)
  86. $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
  87. endef
  88. define KernelPackage/hwmon-lm85/description
  89. Kernel module for LM85 thermal monitor chip
  90. endef
  91. $(eval $(call KernelPackage,hwmon-lm85))
  92. define KernelPackage/hwmon-lm90
  93. TITLE:=LM90 monitoring support
  94. KCONFIG:=CONFIG_SENSORS_LM90
  95. FILES:=$(LINUX_DIR)/drivers/hwmon/lm90.ko
  96. AUTOLOAD:=$(call AutoLoad,60,lm90)
  97. $(call AddDepends/hwmon,+kmod-i2c-core)
  98. endef
  99. define KernelPackage/hwmon-lm90/description
  100. Kernel module for LM90 thermal monitor chip
  101. endef
  102. $(eval $(call KernelPackage,hwmon-lm90))
  103. define KernelPackage/hwmon-lm95241
  104. TITLE:=LM95241 monitoring support
  105. KCONFIG:=CONFIG_SENSORS_LM95241
  106. FILES:=$(LINUX_DIR)/drivers/hwmon/lm95241.ko
  107. AUTOLOAD:=$(call AutoLoad,60,lm95241)
  108. $(call AddDepends/hwmon,+kmod-i2c-core)
  109. endef
  110. define KernelPackage/hwmon-lm95241/description
  111. Kernel module for LM95241 thermal monitor chip
  112. endef
  113. $(eval $(call KernelPackage,hwmon-lm95241))
  114. define KernelPackage/hwmon-sht21
  115. TITLE:=Sensiron SHT21 and compat. monitoring support
  116. KCONFIG:=CONFIG_SENSORS_SHT21
  117. FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
  118. AUTOLOAD:=$(call AutoLoad,60,sht21)
  119. $(call AddDepends/hwmon,+kmod-i2c-core)
  120. endef
  121. define KernelPackage/hwmon-sht21/description
  122. Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
  123. endef
  124. $(eval $(call KernelPackage,hwmon-sht21))
  125. define KernelPackage/hwmon-pc87360
  126. TITLE:=PC87360 monitoring support
  127. KCONFIG:=CONFIG_SENSORS_PC87360
  128. FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.ko
  129. AUTOLOAD:=$(call AutoLoad,50,pc87360)
  130. $(call AddDepends/hwmon,@TARGET_x86 +kmod-hwmon-vid)
  131. endef
  132. define KernelPackage/hwmon-pc87360/description
  133. Kernel modules for PC87360 chips
  134. endef
  135. $(eval $(call KernelPackage,hwmon-pc87360))
  136. define KernelPackage/hwmon-w83627hf
  137. TITLE:=Winbond W83627HF monitoring support
  138. KCONFIG:=CONFIG_SENSORS_W83627HF
  139. FILES:=$(LINUX_DIR)/drivers/hwmon/w83627hf.ko
  140. AUTOLOAD:=$(call AutoLoad,50,w83627hf)
  141. $(call AddDepends/hwmon,@TARGET_rdc||TARGET_x86 +kmod-hwmon-vid)
  142. endef
  143. define KernelPacakge/hwmon-w83627hf/description
  144. Kernel module for the Winbond W83627HF chips.
  145. endef
  146. $(eval $(call KernelPackage,hwmon-w83627hf))