UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 1 Mar 2016 06:22:29 +0000 (14:22 +0800)
commit94dd9eda0483c7f1a91e736431e11eaf46e279d3
tree2b7fef4980ae5e1d9cc8fce87168a373214e0991
parent56789b8d3ceec6d06e9f10f07d35d2d182163109
UPSTREAM: 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>
(cherry picked from git.kernel.org evalenti/linux-soc-thermal fixes
 commit 7ea38c6c3622bc65279dc6a1fecd28227027fbb5)

Change-Id: I9d39b947e197393688ed58bf079e519e7d5a6d9e
drivers/thermal/rockchip_thermal.c