rtc.mk 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. #
  2. # Copyright (C) 2006-2024 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. RTC_MENU:=RTC Real-Time Clock Support
  8. define KernelPackage/rtc-ds1307
  9. SUBMENU:=$(RTC_MENU)
  10. TITLE:=Dallas/Maxim DS1307 (and compatible) RTC support
  11. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  12. DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c +kmod-hwmon-core
  13. KCONFIG:=CONFIG_RTC_DRV_DS1307 \
  14. CONFIG_RTC_CLASS=y
  15. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ds1307.ko
  16. AUTOLOAD:=$(call AutoProbe,rtc-ds1307)
  17. endef
  18. define KernelPackage/rtc-ds1307/description
  19. Kernel module for Dallas/Maxim DS1307/DS1337/DS1338/DS1340/DS1388/DS3231,
  20. Epson RX-8025 and various other compatible RTC chips connected via I2C.
  21. endef
  22. $(eval $(call KernelPackage,rtc-ds1307))
  23. define KernelPackage/rtc-ds1374
  24. SUBMENU:=$(RTC_MENU)
  25. TITLE:=Dallas/Maxim DS1374 RTC support
  26. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  27. DEPENDS:=+kmod-i2c-core
  28. KCONFIG:=CONFIG_RTC_DRV_DS1374 \
  29. CONFIG_RTC_DRV_DS1374_WDT=n \
  30. CONFIG_RTC_CLASS=y
  31. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ds1374.ko
  32. AUTOLOAD:=$(call AutoProbe,rtc-ds1374)
  33. endef
  34. define KernelPackage/rtc-ds1374/description
  35. Kernel module for Dallas/Maxim DS1374.
  36. endef
  37. $(eval $(call KernelPackage,rtc-ds1374))
  38. define KernelPackage/rtc-ds1672
  39. SUBMENU:=$(RTC_MENU)
  40. TITLE:=Dallas/Maxim DS1672 RTC support
  41. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  42. DEPENDS:=+kmod-i2c-core
  43. KCONFIG:=CONFIG_RTC_DRV_DS1672 \
  44. CONFIG_RTC_CLASS=y
  45. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-ds1672.ko
  46. AUTOLOAD:=$(call AutoProbe,rtc-ds1672)
  47. endef
  48. define KernelPackage/rtc-ds1672/description
  49. Kernel module for Dallas/Maxim DS1672 RTC.
  50. endef
  51. $(eval $(call KernelPackage,rtc-ds1672))
  52. define KernelPackage/rtc-em3027
  53. SUBMENU:=$(RTC_MENU)
  54. TITLE:=Microelectronic EM3027 RTC support
  55. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  56. DEPENDS:=+kmod-i2c-core
  57. KCONFIG:=CONFIG_RTC_DRV_EM3027 \
  58. CONFIG_RTC_CLASS=y
  59. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-em3027.ko
  60. AUTOLOAD:=$(call AutoProbe,rtc-em3027)
  61. endef
  62. define KernelPackage/rtc-em3027/description
  63. Kernel module for Microelectronic EM3027 RTC.
  64. endef
  65. $(eval $(call KernelPackage,rtc-em3027))
  66. define KernelPackage/rtc-isl1208
  67. SUBMENU:=$(RTC_MENU)
  68. TITLE:=Intersil ISL1208 RTC support
  69. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  70. DEPENDS:=+kmod-i2c-core
  71. KCONFIG:=CONFIG_RTC_DRV_ISL1208 \
  72. CONFIG_RTC_CLASS=y
  73. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-isl1208.ko
  74. AUTOLOAD:=$(call AutoProbe,rtc-isl1208)
  75. endef
  76. define KernelPackage/rtc-isl1208/description
  77. Kernel module for Intersil ISL1208 RTC.
  78. endef
  79. $(eval $(call KernelPackage,rtc-isl1208))
  80. define KernelPackage/rtc-mv
  81. SUBMENU:=$(RTC_MENU)
  82. TITLE:=Marvell SoC RTC support
  83. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  84. KCONFIG:=CONFIG_RTC_DRV_MV \
  85. CONFIG_RTC_CLASS=y
  86. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-mv.ko
  87. AUTOLOAD:=$(call AutoProbe,rtc-mv)
  88. endef
  89. define KernelPackage/rtc-mv/description
  90. Kernel module for Marvell SoC RTC.
  91. endef
  92. $(eval $(call KernelPackage,rtc-mv))
  93. define KernelPackage/rtc-pcf8563
  94. SUBMENU:=$(RTC_MENU)
  95. TITLE:=Philips PCF8563/Epson RTC8564 RTC support
  96. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  97. DEPENDS:=+kmod-i2c-core
  98. KCONFIG:=CONFIG_RTC_DRV_PCF8563 \
  99. CONFIG_RTC_CLASS=y
  100. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf8563.ko
  101. AUTOLOAD:=$(call AutoProbe,rtc-pcf8563)
  102. endef
  103. define KernelPackage/rtc-pcf8563/description
  104. Kernel module for Philips PCF8563 RTC chip.
  105. The Epson RTC8564 should work as well.
  106. endef
  107. $(eval $(call KernelPackage,rtc-pcf8563))
  108. define KernelPackage/rtc-pcf2123
  109. SUBMENU:=$(RTC_MENU)
  110. TITLE:=Philips PCF2123 RTC support
  111. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  112. DEPENDS:=+kmod-regmap-spi
  113. KCONFIG:=CONFIG_RTC_DRV_PCF2123 \
  114. CONFIG_RTC_CLASS=y
  115. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2123.ko
  116. AUTOLOAD:=$(call AutoProbe,rtc-pcf2123)
  117. endef
  118. define KernelPackage/rtc-pcf2123/description
  119. Kernel module for Philips PCF2123 RTC chip
  120. endef
  121. $(eval $(call KernelPackage,rtc-pcf2123))
  122. define KernelPackage/rtc-pcf2127
  123. SUBMENU:=$(RTC_MENU)
  124. TITLE:=NXP PCF2127 and PCF2129 RTC support
  125. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  126. DEPENDS:=+kmod-i2c-core +kmod-regmap-spi
  127. KCONFIG:=CONFIG_RTC_DRV_PCF2127 \
  128. CONFIG_RTC_CLASS=y
  129. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2127.ko
  130. AUTOLOAD:=$(call AutoProbe,rtc-pcf2127)
  131. endef
  132. define KernelPackage/rtc-pcf2127/description
  133. Kernel module for NXP PCF2127 and PCF2129 RTC chip
  134. endef
  135. $(eval $(call KernelPackage,rtc-pcf2127))
  136. define KernelPackage/rtc-r7301
  137. SUBMENU:=$(RTC_MENU)
  138. TITLE:=Epson RTC7301 support
  139. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  140. DEPENDS:=+kmod-regmap-mmio
  141. KCONFIG:=CONFIG_RTC_DRV_R7301 \
  142. CONFIG_RTC_CLASS=y
  143. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-r7301.ko
  144. AUTOLOAD:=$(call AutoProbe,rtc-r7301)
  145. endef
  146. define KernelPackage/rtc-r7301/description
  147. Kernel module for Epson RTC7301 RTC chip
  148. endef
  149. $(eval $(call KernelPackage,rtc-r7301))
  150. define KernelPackage/rtc-rs5c372a
  151. SUBMENU:=$(RTC_MENU)
  152. TITLE:=Ricoh R2025S/D, RS5C372A/B, RV5C386, RV5C387A
  153. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  154. DEPENDS:=+kmod-i2c-core
  155. KCONFIG:=CONFIG_RTC_DRV_RS5C372 \
  156. CONFIG_RTC_CLASS=y
  157. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-rs5c372.ko
  158. AUTOLOAD:=$(call AutoLoad,50,rtc-rs5c372,1)
  159. endef
  160. define KernelPackage/rtc-rs5c372a/description
  161. Kernel module for Ricoh R2025S/D, RS5C372A/B, RV5C386, RV5C387A RTC on chip module
  162. endef
  163. $(eval $(call KernelPackage,rtc-rs5c372a))
  164. define KernelPackage/rtc-rx8025
  165. SUBMENU:=$(RTC_MENU)
  166. TITLE:=Epson RX-8025 / RX-8035
  167. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  168. DEPENDS:=+kmod-i2c-core
  169. KCONFIG:=CONFIG_RTC_DRV_RX8025 \
  170. CONFIG_RTC_CLASS=y
  171. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-rx8025.ko
  172. AUTOLOAD:=$(call AutoLoad,50,rtc-rx8025,1)
  173. endef
  174. define KernelPackage/rtc-rx8025/description
  175. Kernel module for Epson RX-8025 and RX-8035 I2C RTC chip
  176. endef
  177. $(eval $(call KernelPackage,rtc-rx8025))
  178. define KernelPackage/rtc-s35390a
  179. SUBMENU:=$(RTC_MENU)
  180. TITLE:=Seico S-35390A
  181. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  182. DEPENDS:=+kmod-i2c-core
  183. KCONFIG:=CONFIG_RTC_DRV_S35390A \
  184. CONFIG_RTC_CLASS=y
  185. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-s35390a.ko
  186. AUTOLOAD:=$(call AutoLoad,50,rtc-s35390a,1)
  187. endef
  188. define KernelPackage/rtc-s35390a/description
  189. Kernel module for Seiko Instruments S-35390A I2C RTC chip
  190. endef
  191. $(eval $(call KernelPackage,rtc-s35390a))
  192. define KernelPackage/rtc-x1205
  193. SUBMENU:=$(RTC_MENU)
  194. TITLE:=Xicor Intersil X1205
  195. DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
  196. DEPENDS:=+kmod-i2c-core
  197. KCONFIG:=CONFIG_RTC_DRV_X1205 \
  198. CONFIG_RTC_CLASS=y
  199. FILES:=$(LINUX_DIR)/drivers/rtc/rtc-x1205.ko
  200. AUTOLOAD:=$(call AutoProbe,rtc-x1205)
  201. endef
  202. define KernelPackage/rtc-x1205/description
  203. Kernel module for Xicor Intersil X1205 I2C RTC chip
  204. endef
  205. $(eval $(call KernelPackage,rtc-x1205))