thermal: rockchip: rk3399: enhance the tsadc's bandgap feature
authorRocky Hao <rocky.hao@rock-chips.com>
Mon, 18 Jul 2016 09:52:43 +0000 (17:52 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Tue, 19 Jul 2016 09:25:42 +0000 (17:25 +0800)
commit7f0ee6456f74b9c1870feb63b57c315ec9bd4ba9
tree278786b1ec8a4f7704630ff6ca47a0d74bc22344
parent01240c217a78dac4d12eda161d9b756fc8ac5912
thermal: rockchip: rk3399: enhance the tsadc's bandgap feature

Due to the voltage ripple, the sensing data of the tsadc is not accurate.
And in this patch, the bandgap feature is enhanced to remove the voltage
ripple, and then the tsadc can sense the temperature more precisely.

Obsolete codes are removed as well.

Change-Id: Ifdd98def63212bc13306e7d5befee5eb32dbbc2f
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
drivers/thermal/rockchip_thermal.c