summaryrefslogtreecommitdiff
path: root/drivers/thermal/rockchip_thermal.c
diff options
context:
space:
mode:
authorFinley Xiao <finley.xiao@rock-chips.com>2018-10-09 10:21:09 +0800
committerTao Huang <huangtao@rock-chips.com>2018-10-09 15:02:39 +0800
commit2e53d62c04aa43111ef41705eefa3c1294feca08 (patch)
tree6928a029271e04b2360800fde7d777ac44f23d36 /drivers/thermal/rockchip_thermal.c
parent1c450a80824496dc9cf23c79044267fc53ee5706 (diff)
thermal: rockchip: Use incremental code table for rk1808
Change-Id: I2d0f379fb08eaf4a4819bc36bcb61e5ca4a50d45 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Diffstat (limited to 'drivers/thermal/rockchip_thermal.c')
-rw-r--r--drivers/thermal/rockchip_thermal.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
index 38feca536644..4c930ce06a8b 100644
--- a/drivers/thermal/rockchip_thermal.c
+++ b/drivers/thermal/rockchip_thermal.c
@@ -258,42 +258,42 @@ struct tsadc_table {
};
static const struct tsadc_table rk1808_code_table[] = {
- {TSADCV2_DATA_MASK, -40000},
- {641, -40000},
- {633, -35000},
- {625, -30000},
- {617, -25000},
- {609, -20000},
- {601, -15000},
- {593, -10000},
- {585, -5000},
- {577, 0},
- {569, 5000},
- {561, 10000},
- {553, 15000},
- {545, 20000},
- {537, 25000},
- {529, 30000},
- {520, 35000},
- {512, 40000},
- {504, 45000},
- {496, 50000},
- {487, 55000},
- {479, 60000},
- {471, 65000},
- {463, 70000},
- {454, 75000},
- {446, 80000},
- {437, 85000},
- {429, 90000},
- {421, 95000},
- {412, 100000},
- {404, 105000},
- {395, 110000},
- {387, 115000},
- {378, 120000},
- {370, 125000},
- {0, 125000},
+ {0, -40000},
+ {3455, -40000},
+ {3463, -35000},
+ {3471, -30000},
+ {3479, -25000},
+ {3487, -20000},
+ {3495, -15000},
+ {3503, -10000},
+ {3511, -5000},
+ {3519, 0},
+ {3527, 5000},
+ {3535, 10000},
+ {3543, 15000},
+ {3551, 20000},
+ {3559, 25000},
+ {3567, 30000},
+ {3576, 35000},
+ {3584, 40000},
+ {3592, 45000},
+ {3600, 50000},
+ {3609, 55000},
+ {3617, 60000},
+ {3625, 65000},
+ {3633, 70000},
+ {3642, 75000},
+ {3650, 80000},
+ {3659, 85000},
+ {3667, 90000},
+ {3675, 95000},
+ {3684, 100000},
+ {3692, 105000},
+ {3701, 110000},
+ {3709, 115000},
+ {3718, 120000},
+ {3726, 125000},
+ {TSADCV2_DATA_MASK, 125000},
};
static const struct tsadc_table rk3228_code_table[] = {
@@ -943,7 +943,7 @@ static const struct rockchip_tsadc_chip rk1808_tsadc_data = {
.id = rk1808_code_table,
.length = ARRAY_SIZE(rk1808_code_table),
.data_mask = TSADCV2_DATA_MASK,
- .mode = ADC_DECREMENT,
+ .mode = ADC_INCREMENT,
},
};