summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/kukui/boardid.c4
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];