rtc.mk 7.1 KB

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