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
tree: f48acc3449a5efa3d92b75ca94a579c42fc26bf6
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.