Kconfig 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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_BQ24297_SUPPORT
  61. bool "MTK_BQ24297_SUPPORT"
  62. help
  63. This is to enable MediaTek supports to BQ24297.
  64. It depends on config MTK_SMART_BATTERY
  65. and config MTK_SWCHR_SUPPORT
  66. Set to Yes if BQ24297 is used.
  67. default n
  68. config MTK_BQ24261_SUPPORT
  69. bool "MTK_BQ24261_SUPPORT"
  70. help
  71. This is to enable MediaTek supports to BQ24261.
  72. It depends on config MTK_SMART_BATTERY
  73. and config MTK_SWCHR_SUPPORT
  74. Set to Yes if BQ24261 is used.
  75. default n
  76. config MTK_BQ25890_SUPPORT
  77. bool "MTK_BQ25890_SUPPORT"
  78. help
  79. This is to enable MediaTek supports to BQ25890.
  80. It depends on config MTK_SMART_BATTERY
  81. and config MTK_SWCHR_SUPPORT
  82. Set to Yes if BQ25890 is used.
  83. default n
  84. config MTK_DISABLE_POWER_ON_OFF_VOLTAGE_LIMITATION
  85. bool "MTK_DISABLE_POWER_ON_OFF_VOLTAGE_LIMITATION"
  86. help
  87. This to disable power on off condition check for device.
  88. The check includes battery voltage and
  89. battery temperature.
  90. Enable this config if the device has no battery.
  91. default n
  92. config MTK_KERNEL_POWER_OFF_CHARGING
  93. bool "MTK_KERNEL_POWER_OFF_CHARGING"
  94. help
  95. yes : support KPOC feature, power off charging would running by
  96. kernel and charging animation by kpoc service. no: not support KPOC
  97. feature.
  98. device won't enter charging mode if config is no.
  99. default n
  100. config MTK_BATTERY_PROTECT
  101. bool "MTK_BATTERY_PROTECT"
  102. help
  103. Mediatek PMIC supports low battery protect.
  104. This config enables notification of low battery event.
  105. Enable this feature to support throttle of CPU power
  106. to perform battery protect.
  107. default n
  108. config MTK_BATTERY_THROTTLING
  109. bool "MTK_BATTERY_THROTTLING"
  110. help
  111. Enable this feature to support active throttle
  112. mechanism of CPU to save battery life.
  113. The feature throttles CPU or GPU actively
  114. to avoid device power drop due to instant
  115. peak current.
  116. default n
  117. config MTK_ENABLE_AGING_ALGORITHM
  118. bool "Enable MediaTek Battery Aging Algorithm"
  119. help
  120. Enable this feature to enable aging check of battery
  121. This feature helps to calibrate fuel gauge
  122. by battery voltage.
  123. It also helpful to predict aging of battery.
  124. default n
  125. config MTK_BATTERY_LIFETIME_DATA_SUPPORT
  126. bool "Enable Battery LifeTime Data Logging"
  127. help
  128. This config is to log battery related info.
  129. Set yes and it would keep max/min voltage,
  130. max/min charging current, max/min battery
  131. temperature, etc.
  132. default n
  133. config SOC_BY_HW_FG
  134. bool "Use MediaTek H/W Fuel Gauge"
  135. default n
  136. help
  137. Mediatek fuel gauge algorithm option.
  138. Enable this config to use MediaTek
  139. hardware fuel gauge function.
  140. It depends on the PMIC capability.
  141. config SOC_BY_AUXADC
  142. bool "Only use AUXADC for Fuel Gauge"
  143. default n
  144. help
  145. Mediatek fuel gauge algorithm option.
  146. Enable this config to use MediaTek
  147. voltage-based fuel gauge function.
  148. It depends on the PMIC capability.
  149. config SOC_BY_SW_FG
  150. bool "Use MediaTek S/W Fuel Gauge"
  151. default n
  152. help
  153. Mediatek fuel gauge algorithm option.
  154. Enable this config to use MediaTek
  155. software fuel gauge function.
  156. It depends on the PMIC capability.
  157. config SWCHR_POWER_PATH
  158. bool "External charger IC supports powerpath"
  159. default n
  160. help
  161. Set Yes if the external charger IC
  162. supports power path function.
  163. This affects setting of auxadc channels
  164. used to representing voltage of system
  165. or battery.
  166. config CUSTOM_BATTERY_CYCLE_AGING_DATA
  167. bool "Custom battery aging data is provided"
  168. default n
  169. help
  170. Set Yes if the battery aging table is provided.
  171. It includes information about battery
  172. capacity aging factor.
  173. It is used for gas gauge calibration.
  174. config MTK_JEITA_STANDARD_SUPPORT
  175. bool "JEITA standard support"
  176. default n
  177. help
  178. Set Yes if JEITA charging control is needed.
  179. MediaTek charging control flow supports
  180. JEITA standard and could provide more
  181. safety for charging function.
  182. config BAT_LOW_TEMP_PROTECT_ENABLE
  183. bool "Disable charging when low temperature"
  184. default n
  185. help
  186. Set Yes if charging needs to be disabled
  187. for low temperature.
  188. The temperature threshold is adjustable in battery
  189. driver.
  190. config STOP_CHARGING_IN_TAKLING
  191. bool "Hold charging in talking mode"
  192. default n
  193. help
  194. Set Yes if charging needs to be disabled
  195. during talking mode.
  196. This is to provide better user experience
  197. and safety option.
  198. config CONFIG_DIS_CHECK_BATTERY
  199. bool "No shutdown if battery is not detected"
  200. default n
  201. help
  202. Enable this config if device could not
  203. be active without battery.
  204. Disable this config if device battery could be
  205. removed without affecting function.
  206. config CONFIG_USB_IF
  207. bool "USB IF support"
  208. default n
  209. help
  210. Set Yes to config if USB IF certification
  211. is needed.
  212. It limits charging current limit for USB.
  213. Set No to config if USB IF is no need.
  214. config HIGH_BATTERY_VOLTAGE_SUPPORT
  215. bool "Support battery above 4.3V"
  216. default n
  217. help
  218. Set Yes to config if 4.35V battery is
  219. to be supported.
  220. Set No to config if 4.2V battery is
  221. used.
  222. config MTK_PUMP_EXPRESS_PLUS_SUPPORT
  223. bool "MediaTek PUMP EXPRESS PLUS"
  224. default n
  225. help
  226. fast charging, by using switch charger to achive better charging ability
  227. enable this config to support high voltage charging
  228. available vbus input includes 7V/9V/12V
  229. the feature applies to standard charger with pump express plus support