JG Poxu has uploaded a new patch set (#24) to the change originally created by Yidi Lin. ( https://review.coreboot.org/c/coreboot/+/46390 )
Change subject: soc/mediatek/mt8192: Add auxadc driver ......................................................................
soc/mediatek/mt8192: Add auxadc driver
Add MT8192 auxadc driver.
[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.
3. Reference datasheet: RH-A-2020-0070, v1.0
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 M src/soc/mediatek/mt8192/Makefile.inc M src/soc/mediatek/mt8192/include/soc/addressmap.h A src/soc/mediatek/mt8192/include/soc/auxadc.h A src/soc/mediatek/mt8192/include/soc/efuse.h 8 files changed, 68 insertions(+), 13 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/90/46390/24