thermal: rockchip: handle the power sequence for rk3399 SoCs
authorCaesar Wang <wxt@rock-chips.com>
Thu, 24 Mar 2016 11:43:06 +0000 (19:43 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Fri, 25 Mar 2016 08:20:08 +0000 (16:20 +0800)
commit82d304f3858d0f6ceb943be6ea97a9c1d2d8f8d6
tree66332a51a74bbacb3ebd7e07d415ab3ff5068753
parent2f98f55d98d5375327224db9bfb56b2be19e881d
thermal: rockchip: handle the power sequence for rk3399 SoCs

This adds the grf property to handle the tsadc power sequence on
rk3399 SoCs.

The rk3399 tsadc can work with this patch on now.

while true; do grep "" /sys/class/thermal/thermal_zone[0-1]/temp;sleep .5; done
/sys/class/thermal/thermal_zone0/temp:40555
/sys/class/thermal/thermal_zone1/temp:41111
/sys/class/thermal/thermal_zone0/temp:40555
/sys/class/thermal/thermal_zone1/temp:41111
/sys/class/thermal/thermal_zone0/temp:40555
/sys/class/thermal/thermal_zone1/temp:41666
/sys/class/thermal/thermal_zone0/temp:40555
/sys/class/thermal/thermal_zone1/temp:41111
/sys/class/thermal/thermal_zone0/temp:40555
/sys/class/thermal/thermal_zone1/temp:41111
/sys/class/thermal/thermal_zone0/temp:40555

Change-Id: I0155826bddf0017ea4985920268b333a20278bbe
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
drivers/thermal/rockchip_thermal.c