diff options
author | Po Xu <jg_poxu@mediatek.com> | 2020-08-04 11:39:47 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2020-11-20 08:40:19 +0000 |
commit | 3f11803075cc13e377287240734cf82654f48ade (patch) | |
tree | 71cf455b55236aab0514dec6c31c31939f1e31a8 /src/mainboard | |
parent | 0fd62f5b7963b2128d48aca190a93e9b94d70d13 (diff) |
soc/mediatek: Move auxadc driver from MT8183 to common
The auxadc (auxiliary analogue-to-digital conversion) is a unit
to identify the plugged peripherals or measure the temperature
or voltages.
The MT8183 auxadc driver can be shared by multiple MediaTek SoCs
so we should move it to the common folder.
Signed-off-by: Po Xu <jg_poxu@mediatek.com>
Change-Id: Id4553e99c3578fa40e28b19a6e010b52650ba41e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46390
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/kukui/boardid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/kukui/boardid.c b/src/mainboard/google/kukui/boardid.c index 6c7547c21a..04ae7db8f9 100644 --- a/src/mainboard/google/kukui/boardid.c +++ b/src/mainboard/google/kukui/boardid.c @@ -13,7 +13,7 @@ #include <device/i2c_simple.h> #include <drivers/camera/cros_camera.h> #include <ec/google/chromeec/ec.h> -#include <soc/auxadc.h> +#include <soc/auxadc_common.h> #include <soc/i2c.h> #include <soc/pmic_wrap_common.h> #include <string.h> @@ -69,7 +69,7 @@ static const int *adc_voltages[] = { static uint32_t get_adc_index(unsigned int channel) { - int value = auxadc_get_voltage(channel); + int value = auxadc_get_voltage_uv(channel); assert(channel < ARRAY_SIZE(adc_voltages)); const int *voltages = adc_voltages[channel]; |