mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
thermal: rockchip: Use incremental code table for rk1808
Change-Id: I2d0f379fb08eaf4a4819bc36bcb61e5ca4a50d45 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user