Kconfig 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. config BATTERY_SAMSUNG
  2. tristate "samsung battery driver"
  3. select POWER_SUPPLY
  4. help
  5. Say Y to include support for samsung battery driver
  6. This battery driver integrated all battery-related functions
  7. To see battery-related functions,
  8. refer to sec_charging_common.h
  9. config BATTERY_SAMSUNG_DATA_FILE
  10. depends on BATTERY_SAMSUNG
  11. string "samsung battery data file"
  12. default ""
  13. help
  14. Path to the battery data file.
  15. config BATTERY_SAMSUNG_DATA
  16. bool
  17. default BATTERY_SAMSUNG_DATA_FILE != ""
  18. config CHARGING_VZWCONCEPT
  19. tristate "VZW concept about the charging"
  20. default n
  21. depends on BATTERY_SAMSUNG
  22. help
  23. Say Y to include support for the VZW concepts.
  24. config BATTERY_SWELLING
  25. bool "prevent battery swelling"
  26. help
  27. Say Y to include support for prevent battery swelling
  28. # Fuel Gauge
  29. config FUELGAUGE_DUMMY
  30. tristate "dummy fuel gauge driver"
  31. default n
  32. depends on BATTERY_SAMSUNG
  33. help
  34. Say Y to include support
  35. for dummy fuel gauge driver.
  36. This driver source code implemented
  37. skeleton source code for fuel gauge functions.
  38. config FUELGAUGE_MAX17042
  39. tristate "MAX17042 fuel gauge driver"
  40. default n
  41. depends on BATTERY_SAMSUNG
  42. help
  43. Say Y to include support
  44. for MAXIM MAX17042 fuel gauge driver.
  45. This fuel-gauge can be used in voltage-tracking mode
  46. or coulomb-counting mode.
  47. config FUELGAUGE_MAX17042_VOLTAGE_TRACKING
  48. tristate "use MAX17042 fuel gauge only as voltage tracking"
  49. default n
  50. depends on FUELGAUGE_MAX17042
  51. help
  52. Say Y to use MAX17042 fuel gauge
  53. only as voltage tracking.
  54. This mode is for target that consumes low current
  55. like smart-phone.
  56. config FUELGAUGE_MAX17042_COULOMB_COUNTING
  57. tristate "use MAX17042 fuel gauge as coulomb counting (including voltage tracking)"
  58. default n
  59. depends on FUELGAUGE_MAX17042
  60. help
  61. Say Y to use MAX17042 fuel gauge
  62. as coulomb counting (including voltage tracking).
  63. This mode is for target that consumes high current
  64. like tablet.
  65. config FUELGAUGE_MAX17048
  66. tristate "MAX17048 fuel gauge driver"
  67. default n
  68. depends on BATTERY_SAMSUNG
  69. help
  70. Say Y to include support
  71. for MAXIM MAX17048 fuel gauge driver.
  72. This fuel-gauge can be used
  73. only in voltage-tracking mode.
  74. config FUELGAUGE_MAX17050
  75. tristate "MAX17050 fuel gauge driver"
  76. default n
  77. depends on BATTERY_SAMSUNG
  78. help
  79. Say Y to include support
  80. for MAXIM MAX17047 or MAX17050 fuel gauge driver.
  81. This fuel-gauge can be used in voltage-tracking mode
  82. or coulomb-counting mode.
  83. config FUELGAUGE_MAX17050_VOLTAGE_TRACKING
  84. tristate "use MAX17050 fuel gauge only as voltage tracking"
  85. default n
  86. depends on FUELGAUGE_MAX17050
  87. help
  88. Say Y to use MAX17050 fuel gauge
  89. only as voltage tracking.
  90. This mode is for target that consumes low current
  91. like smart-phone.
  92. config FUELGAUGE_MAX17050_COULOMB_COUNTING
  93. tristate "use MAX17050 fuel gauge as coulomb counting (including voltage tracking)"
  94. default n
  95. depends on FUELGAUGE_MAX17050
  96. help
  97. Say Y to use MAX17050 fuel gauge
  98. as coulomb counting (including voltage tracking).
  99. This mode is for target that consumes high current
  100. like tablet.
  101. config FUELGAUGE_MAX77823
  102. tristate "MAX77823 fuel gauge driver"
  103. default n
  104. depends on BATTERY_SAMSUNG
  105. help
  106. Say Y to include support
  107. for MAXIM MAX17047 or MAX17050 fuel gauge driver.
  108. This fuel-gauge can be used in voltage-tracking mode
  109. or coulomb-counting mode.
  110. config FUELGAUGE_MAX77823_VOLTAGE_TRACKING
  111. tristate "use MAX77823 fuel gauge only as voltage tracking"
  112. default n
  113. depends on FUELGAUGE_MAX77823
  114. help
  115. Say Y to use MAX17050 fuel gauge
  116. only as voltage tracking.
  117. This mode is for target that consumes low current
  118. like smart-phone.
  119. config FUELGAUGE_MAX77823_COULOMB_COUNTING
  120. tristate "use MAX77823 fuel gauge as coulomb counting (including voltage tracking)"
  121. default n
  122. depends on FUELGAUGE_MAX77823
  123. help
  124. Say Y to use MAX77823 fuel gauge
  125. as coulomb counting (including voltage tracking).
  126. This mode is for target that consumes high current
  127. like tablet.
  128. # Charger
  129. config CHARGER_DUMMY
  130. tristate "dummy charger driver"
  131. default n
  132. depends on BATTERY_SAMSUNG
  133. help
  134. Say Y to include support
  135. for dummy charger driver.
  136. This driver source code implemented
  137. skeleton source code for charger functions.
  138. config CHARGER_MAX8903
  139. tristate "MAX8903 charger driver"
  140. default n
  141. depends on BATTERY_SAMSUNG
  142. help
  143. Say Y to include support
  144. for MAXIM MAX8903 charger driver.
  145. This driver source code implemented
  146. all functions for MAX8903 charger.
  147. config CHARGER_SMB328
  148. tristate "SMB328 charger driver"
  149. default n
  150. depends on BATTERY_SAMSUNG
  151. help
  152. Say Y to include support
  153. for Summit SMB328 charger driver.
  154. This driver source code implemented
  155. all functions for SMB328 charger.
  156. config CHARGER_SMB347
  157. tristate "SMB347 charger driver"
  158. default n
  159. depends on BATTERY_SAMSUNG
  160. help
  161. Say Y to include support
  162. for Summit SMB347 charger driver.
  163. This driver source code implemented
  164. all functions for SMB347 charger.
  165. config CHARGER_SMB358
  166. tristate "SMB358 charger driver"
  167. default n
  168. depends on BATTERY_SAMSUNG
  169. help
  170. Say Y to include support
  171. for Summit SMB358 charger driver.
  172. This driver source code implemented
  173. all functions for SMB358 charger.
  174. config CHARGER_SMB1357
  175. tristate "SMB1357 charger driver"
  176. default n
  177. depends on BATTERY_SAMSUNG
  178. help
  179. Say Y to include support
  180. for Summit SMB1357 charger driver.
  181. This driver source code implemented
  182. all functions for SMB1357 charger.
  183. config CHARGER_BQ24157
  184. tristate "BQ24157 charger driver"
  185. default n
  186. depends on BATTERY_SAMSUNG
  187. help
  188. Say Y to include support
  189. for TI BQ24157 charger driver.
  190. This driver source code implemented
  191. all functions for BQ24157 charger.
  192. config CHARGER_BQ24190
  193. tristate "BQ24190 charger driver"
  194. default n
  195. depends on BATTERY_SAMSUNG
  196. help
  197. Say Y to include support
  198. for TI BQ24190 charger driver.
  199. This driver source code implemented
  200. all functions for BQ24190 charger.
  201. config CHARGER_BQ24191
  202. tristate "BQ24191 charger driver"
  203. default n
  204. depends on BATTERY_SAMSUNG
  205. help
  206. Say Y to include support
  207. for TI BQ24191 charger driver.
  208. This driver source code implemented
  209. all functions for BQ24191 charger.
  210. config CHARGER_BQ24260
  211. tristate "BQ24260 charger driver"
  212. default n
  213. depends on BATTERY_SAMSUNG
  214. help
  215. Say Y to include support
  216. for TI BQ24260 charger driver.
  217. This driver source code implemented
  218. all functions for BQ24260 charger.
  219. config CHARGER_MAX77693
  220. tristate "MAX77693 battery charger support"
  221. depends on MFD_MAX77693 && I2C
  222. help
  223. Say Y here to enable support for the MAX77693 charger
  224. MAX77693 incluse muic, pmic, haptic, led,
  225. flash driver.
  226. You have to define MFD_MAX77693
  227. config CHARGER_MAX77823
  228. tristate "MAX77823 battery charger support"
  229. depends on BATTERY_SAMSUNG
  230. help
  231. Say Y here to enable support for the MAX77823 charger
  232. config CHARGER_MAX77803
  233. tristate "MAX77803 battery charger support"
  234. depends on MFD_MAX77803 && I2C
  235. help
  236. Say Y here to enable support for the MAX77803 charger
  237. MAX77803 incluse muic, pmic, haptic, led,
  238. flash driver.
  239. You have to define MFD_MAX77803
  240. config CHARGER_MAX77804K
  241. tristate "MAX77804K battery charger support"
  242. depends on MFD_MAX77804K && I2C
  243. help
  244. Say Y here to enable support for the MAX77804K charger
  245. MAX77804K incluse muic, pmic, haptic, led,
  246. flash driver.
  247. You have to define MFD_MAX77804K
  248. config CHARGER_MAX77888
  249. tristate "MAX77888 battery charger support"
  250. depends on MFD_MAX77888 && I2C
  251. help
  252. Say Y here to enable support for the MAX77888 charger
  253. MAX77888 incluse muic, pmic, haptic, led,
  254. flash driver.
  255. You have to define MFD_MAX77888
  256. config CHARGER_SM5414
  257. tristate "SM5414 charger driver"
  258. default n
  259. help
  260. Say Y to include support
  261. for SM5414 charger driver.
  262. This driver source code implemented
  263. all functions for SMB5414 charger.
  264. config AFC_CHARGER_MODE
  265. bool "afc charging support in sec battery driver"
  266. default n
  267. depends on CHARGER_MAX77843
  268. help
  269. Say Y to include support for sec afc charging support
  270. config SAMSUNG_LPM_MODE
  271. bool "Off charging mode support in sec battery driver"
  272. default n
  273. help
  274. Say Y to include support for sec off charging support
  275. This value defined at bootloader.
  276. Before enable this feature,
  277. implemet power off charging in the bootloader.
  278. config SAMSUNG_BATTERY_ENG_TEST
  279. bool "enable ENG mode for battery test"
  280. default n
  281. help
  282. Say Y to include support for battery test
  283. enable this feature only ENG mode
  284. this featuren must disabled user binary
  285. stability test etc..
  286. config SAMSUNG_BATTERY_FACTORY
  287. bool "enable for factory test"
  288. default n
  289. help
  290. Say Y to include support for factory test
  291. enable this feature only factory mode
  292. this featuren must disabled user binary
  293. stability test etc..
  294. config SAMSUNG_BATTERY_DISALLOW_DEEP_SLEEP
  295. bool "Disallow deep sleep during charging"
  296. default n
  297. depends on BATTERY_SAMSUNG && ARCH_MSM8974
  298. help
  299. Say Y to include support
  300. Disallow deep sleep during charging for stablity.
  301. config DISABLE_SAVE_CAPACITY_MAX
  302. bool "Disable to save capacity max in efs"
  303. default n
  304. depends on BATTERY_SAMSUNG
  305. help
  306. Say Y to include support to disable it
  307. capacity_max is saved in /efs/Battery/batt_capacity_max
  308. capacity_max is restored after boot up
  309. You can find the code in healthd
  310. config EN_OOPS
  311. bool "enable oops filter"
  312. default n
  313. help
  314. Say Y to enable oops filter
  315. # OTG
  316. config CONTROL_OTG_POPUP
  317. bool "OTG Popup control for waterproof models"
  318. default n
  319. help
  320. Say Y here to enable support for OTG Popup control