JG Poxu has uploaded a new patch set (#25) to the change originally created by Yidi Lin. ( https://review.coreboot.org/c/coreboot/+/46390 )
Change subject: soc/mediatek: Move auxadc driver from MT8183 to common ......................................................................
soc/mediatek: Move auxadc driver from MT8183 to common
Move auxadc driver from MT8183 to common
[Description] 1. AUXADC: auxiliary analogue-to-digital conversion The auxiliary ADC unit is used to identify the plugged peripheral and perform temperature/voltage measurement.
2. AUXADC will check whether the busy bit or data ready bit is ok before preparing for samping, or before/after trigggering sampling, and then decide whether to jump out or continue samping. In the worst case, time to check a busy bit or data ready bit will be delayed 300ms (Under normal circumstances, there is almost no delay or occasionally a few ms delay can be checked ok). The entire sampling flow, there will be a total of 3 check busy bit or data ready bit procee.
Signed-off-by: Po Xu jg_poxu@mediatek.com Change-Id: Id4553e99c3578fa40e28b19a6e010b52650ba41e --- R src/soc/mediatek/common/auxadc.c A src/soc/mediatek/common/include/soc/auxadc_common.h M src/soc/mediatek/mt8183/Makefile.inc M src/soc/mediatek/mt8183/include/soc/auxadc.h 4 files changed, 22 insertions(+), 13 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/90/46390/25