summaryrefslogtreecommitdiff
path: root/board/galtic/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/galtic/board.c')
-rw-r--r--board/galtic/board.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/board/galtic/board.c b/board/galtic/board.c
index 6e553176fd..91c36a198b 100644
--- a/board/galtic/board.c
+++ b/board/galtic/board.c
@@ -146,6 +146,13 @@ const struct adc_t adc_channels[] = {
.shift = 0,
.channel = CHIP_ADC_CH3
},
+ [ADC_TEMP_SENSOR_3] = {
+ .name = "TEMP_SENSOR3",
+ .factor_mul = ADC_MAX_MVOLT,
+ .factor_div = ADC_READ_MAX + 1,
+ .shift = 0,
+ .channel = CHIP_ADC_CH15
+ },
[ADC_SUB_ANALOG] = {
.name = "SUB_ANALOG",
.factor_mul = ADC_MAX_MVOLT,
@@ -598,14 +605,18 @@ const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors);
/* Thermistors */
const struct temp_sensor_t temp_sensors[] = {
- [TEMP_SENSOR_1] = {.name = "Memory",
+ [TEMP_SENSOR_1] = {.name = "Charger",
.type = TEMP_SENSOR_TYPE_BOARD,
.read = get_temp_3v3_51k1_47k_4050b,
.idx = ADC_TEMP_SENSOR_1},
- [TEMP_SENSOR_2] = {.name = "Ambient",
+ [TEMP_SENSOR_2] = {.name = "Vcore",
.type = TEMP_SENSOR_TYPE_BOARD,
.read = get_temp_3v3_51k1_47k_4050b,
.idx = ADC_TEMP_SENSOR_2},
+ [TEMP_SENSOR_3] = {.name = "Ambient",
+ .type = TEMP_SENSOR_TYPE_BOARD,
+ .read = get_temp_3v3_51k1_47k_4050b,
+ .idx = ADC_TEMP_SENSOR_3},
};
BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);