linux-gbmc: npcm_adc: add reset method to fix get value failed
ADC read failure during the first AC power-on.
Add a reset method to handle the issue
of not being able to obtain ADC values at some marginal timings.
ref: https://github.com/Nuvoton-Israel/linux/commit/2a6f126926b0952a19481de99d8b08f2f90c676b
Tested:
AC power-on stress, and no failures occurred.
mobo_battery_p3v | 3.06 Volts | ok
Fusion-Link: fusion2/da2ad243-0bf8-3c4f-8ba7-c4a79a25a211 (platform5)
Fusion-Link: fusion2/0e7d01cd-4f12-3482-b76c-5a8c9eab09b8 (platform11)
Fusion-Link: fusion2/a51c227c-1596-3647-957d-8f590fb3d775 (platform15)
Platforms-Affected: Nuvoton 7xx/8xx
Smoke-Bug-Id: 387419591
Google-Bug-Id: 386715774
Change-Id: I8c0581a139da9619a835f7306216ce0500677361
Signed-off-by: Charles Hsu <charles.hsu@quanta.corp-partner.google.com>
(cherry picked from commit bc31e8afa100b51b363df78d6906fa8426cbf35d)
2 files changed