thermal: rockchip: fix the tsadc sequence output on rk3228/rk3399
authorCaesar Wang <wxt@rock-chips.com>
Mon, 15 Feb 2016 07:33:31 +0000 (15:33 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 1 Mar 2016 05:06:39 +0000 (21:06 -0800)
commit7ea38c6c3622bc65279dc6a1fecd28227027fbb5
tree7916b787d947e2630fb02f76119f300ad8e3473e
parent952418a34f26f252cd0afbca8c33a8506a03cab7
thermal: rockchip: fix the tsadc sequence output on rk3228/rk3399

As the TRM says, add the tsadc_q_sel to control the temperature-code
sequence since the rk3228/rk3399 need set this bit (1024 - tsadc_q)
as output.

Fixes: commit
b0d7033 "thermal: rockchip: Support the RK3399 SoCs in thermal driver"
7b02a5e "thermal: rockchip: Support the RK3228 SoCs in thermal driver"

Reported-by: Elaine Zhang <zhangqing@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rockchip_thermal.c