Kconfig 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. menuconfig MEDIATEK_CHARGING_SOLUTION
  2. bool "MediaTek Propritary Configuration for Charging"
  3. help
  4. Check this to enable MediaTek charging configuration.
  5. config MTK_SMART_BATTERY
  6. tristate "MediaTek Smart Battery Driver"
  7. help
  8. Check this to enable MediaTek smart battery driver.
  9. The driver supports charging control flow.
  10. It maintais both charger and battery status.
  11. It also includes Mediatek gas gauge.
  12. default n
  13. config POWER_EXT
  14. tristate "MediaTek Power Ext"
  15. help
  16. Check this if the device is not powered by battery.
  17. For example, if the device is powered by AC adapter.
  18. Select No if the device needs info about
  19. battery voltage, temperature, etc.
  20. default n
  21. config MTK_AUTO_POWER_ON_WITH_CHARGER
  22. bool "auto power on when charger in"
  23. help
  24. Check this to support auto power on with charger.
  25. In kernel it records necessary info in RTC to
  26. support the boot behavior.
  27. default n
  28. config MTK_SWCHR_SUPPORT
  29. tristate "MediaTek switch charger"
  30. help
  31. This is to enable switching charger control flow.
  32. Set to yes if switching charger is used.
  33. Set to no if pmic pulse charger is used.
  34. default n
  35. config MTK_BQ24160_SUPPORT
  36. bool "MTK_BQ24160_SUPPORT"
  37. help
  38. This is to enable MediaTek supports to BQ24160.
  39. It depends on config MTK_SMART_BATTERY
  40. and config MTK_SWCHR_SUPPORT
  41. Set to Yes if BQ24160 is used.
  42. default n
  43. config MTK_BQ24196_SUPPORT
  44. bool "MediaTek Battery driver for TI BQ24196"
  45. help
  46. BQ24196 charger IC support
  47. This is to enable MediaTek supports to BQ24196.
  48. It depends on config MTK_SMART_BATTERY
  49. and config MTK_SWCHR_SUPPORT
  50. Set to Yes if BQ24196 is used.
  51. default n
  52. config MTK_BQ24296_SUPPORT
  53. bool "MTK_BQ24296_SUPPORT"
  54. help
  55. This is to enable MediaTek supports to BQ24296.
  56. It depends on config MTK_SMART_BATTERY
  57. and config MTK_SWCHR_SUPPORT
  58. Set to Yes if BQ24296 is used.
  59. default n
  60. config MTK_NCP1854_SUPPORT
  61. bool "MTK_NCP1854_SUPPORT"
  62. help
  63. This is to enable MediaTek supports to NCP1854.
  64. It depends on config MTK_SMART_BATTERY
  65. and config MTK_SWCHR_SUPPORT
  66. Set to Yes if NCP1854 is used.
  67. default n
  68. config MTK_BQ24297_SUPPORT
  69. bool "MTK_BQ24297_SUPPORT"
  70. help
  71. This is to enable MediaTek supports to BQ24297.
  72. It depends on config MTK_SMART_BATTERY
  73. and config MTK_SWCHR_SUPPORT
  74. Set to Yes if BQ24297 is used.
  75. default n
  76. config MTK_BQ25892_SUPPORT
  77. bool "MTK_BQ25892_SUPPORT"
  78. help
  79. This is to enable MediaTek supports to BQ25892.
  80. It depends on config MTK_SMART_BATTERY
  81. and config MTK_SWCHR_SUPPORT
  82. Set to Yes if BQ25892 is used.
  83. default n
  84. config MTK_FAN5405_SUPPORT
  85. bool "MTK_FAN5405_SUPPORT"
  86. help
  87. This is to enable MediaTek supports to FAN5405.
  88. It depends on config MTK_SMART_BATTERY
  89. and config MTK_SWCHR_SUPPORT
  90. Set to Yes if FAN5405 is used.
  91. default n
  92. config MTK_DUAL_INPUT_CHARGER_SUPPORT
  93. bool "MTK_DUAL_INPUT_CHARGER_SUPPORT"
  94. help
  95. This is to enable MediaTek dual input charging.
  96. The feature can charge battery and use otg device
  97. at the same time with specific hardware.
  98. default n
  99. config MTK_DISABLE_POWER_ON_OFF_VOLTAGE_LIMITATION
  100. bool "MTK_DISABLE_POWER_ON_OFF_VOLTAGE_LIMITATION"
  101. help
  102. This to disable power on off condition check for device.
  103. The check includes battery voltage and
  104. battery temperature.
  105. Enable this config if the device has no battery.
  106. default n
  107. config MTK_KERNEL_POWER_OFF_CHARGING
  108. bool "MTK_KERNEL_POWER_OFF_CHARGING"
  109. help
  110. yes : support KPOC feature, power off charging would running by
  111. kernel and charging animation by kpoc service. no: not support KPOC
  112. feature.
  113. device won't enter charging mode if config is no.
  114. default n
  115. config MTK_BATTERY_PROTECT
  116. bool "MTK_BATTERY_PROTECT"
  117. help
  118. Mediatek PMIC supports low battery protect.
  119. This config enables notification of low battery event.
  120. Enable this feature to support throttle of CPU power
  121. to perform battery protect.
  122. default n
  123. config MTK_BATTERY_THROTTLING
  124. bool "MTK_BATTERY_THROTTLING"
  125. help
  126. Enable this feature to support active throttle
  127. mechanism of CPU to save battery life.
  128. The feature throttles CPU or GPU actively
  129. to avoid device power drop due to instant
  130. peak current.
  131. default n
  132. config MTK_ENABLE_AGING_ALGORITHM
  133. bool "Enable MediaTek Battery Aging Algorithm"
  134. help
  135. Enable this feature to enable aging check of battery
  136. This feature helps to calibrate fuel gauge
  137. by battery voltage.
  138. It also helpful to predict aging of battery.
  139. default n
  140. config MTK_BATTERY_LIFETIME_DATA_SUPPORT
  141. bool "Enable Battery LifeTime Data Logging"
  142. help
  143. This config is to log battery related info.
  144. Set yes and it would keep max/min voltage,
  145. max/min charging current, max/min battery
  146. temperature, etc.
  147. default n
  148. config SOC_BY_HW_FG
  149. bool "Use MediaTek H/W Fuel Gauge"
  150. default n
  151. help
  152. Mediatek fuel gauge algorithm option.
  153. Enable this config to use MediaTek
  154. hardware fuel gauge function.
  155. It depends on the PMIC capability.
  156. config SOC_BY_AUXADC
  157. bool "Only use AUXADC for Fuel Gauge"
  158. default n
  159. help
  160. Mediatek fuel gauge algorithm option.
  161. Enable this config to use MediaTek
  162. voltage-based fuel gauge function.
  163. It depends on the PMIC capability.
  164. config SOC_BY_SW_FG
  165. bool "Use MediaTek S/W Fuel Gauge"
  166. default n
  167. help
  168. Mediatek fuel gauge algorithm option.
  169. Enable this config to use MediaTek
  170. software fuel gauge function.
  171. It depends on the PMIC capability.
  172. config SWCHR_POWER_PATH
  173. bool "External charger IC supports powerpath"
  174. default n
  175. help
  176. Set Yes if the external charger IC
  177. supports power path function.
  178. This affects setting of auxadc channels
  179. used to representing voltage of system
  180. or battery.
  181. config CUSTOM_BATTERY_CYCLE_AGING_DATA
  182. bool "Custom battery aging data is provided"
  183. default n
  184. help
  185. Set Yes if the battery aging table is provided.
  186. It includes information about battery
  187. capacity aging factor.
  188. It is used for gas gauge calibration.
  189. config MTK_JEITA_STANDARD_SUPPORT
  190. bool "JEITA standard support"
  191. default n
  192. help
  193. Set Yes if JEITA charging control is needed.
  194. MediaTek charging control flow supports
  195. JEITA standard and could provide more
  196. safety for charging function.
  197. config BAT_LOW_TEMP_PROTECT_ENABLE
  198. bool "Disable charging when low temperature"
  199. default n
  200. help
  201. Set Yes if charging needs to be disabled
  202. for low temperature.
  203. The temperature threshold is adjustable in battery
  204. driver.
  205. config STOP_CHARGING_IN_TAKLING
  206. bool "Hold charging in talking mode"
  207. default n
  208. help
  209. Set Yes if charging needs to be disabled
  210. during talking mode.
  211. This is to provide better user experience
  212. and safety option.
  213. config CONFIG_DIS_CHECK_BATTERY
  214. bool "No shutdown if battery is not detected"
  215. default n
  216. help
  217. Enable this config if device could not
  218. be active without battery.
  219. Disable this config if device battery could be
  220. removed without affecting function.
  221. config CONFIG_USB_IF
  222. bool "USB IF support"
  223. default n
  224. help
  225. Set Yes to config if USB IF certification
  226. is needed.
  227. It limits charging current limit for USB.
  228. Set No to config if USB IF is no need.
  229. config HIGH_BATTERY_VOLTAGE_SUPPORT
  230. bool "Support battery above 4.3V"
  231. default n
  232. help
  233. Set Yes to config if 4.35V battery is
  234. to be supported.
  235. Set No to config if 4.2V battery is
  236. used.
  237. config MTK_HAFG_20
  238. bool "MediaTek Fuel Gauge 2.0"
  239. default n
  240. help
  241. fuel gauge 2.0
  242. to achive better battery percentage.
  243. Set Yes to support Fuel Gauge 2.0 feature.
  244. Set No to disable Fuel Gauge 2.0.
  245. config MTK_PUMP_EXPRESS_SUPPORT
  246. bool "MediaTek PUMP EXPRESS"
  247. default n
  248. help
  249. fast charging, by using linear charger
  250. to achive better charging ability.
  251. Set Yes to support PE feature.
  252. Set No to disable PE.
  253. config MTK_PUMP_EXPRESS_PLUS_SUPPORT
  254. bool "MediaTek PUMP EXPRESS PLUS"
  255. default n
  256. help
  257. fast charging, by using switch charger
  258. to achive better charging ability.
  259. Set Yes to enable PE+.
  260. Set No to disable PE+.
  261. config MTK_BIF_SUPPORT
  262. bool "MTK_BIF_SUPPORT"
  263. default n
  264. help
  265. Set yes to support BIF features of a
  266. smart battery.
  267. Set No to disable BIF feature of a
  268. smart battery.