arm: tegra: soctherm: check and write registers
There's an intentional side-effect of writing trip temperature
thresholds in HW; It resets the up/down state machine that track
hysteresis and can cause unnecessary thermal events (interrupts).
Avoid unnecessary events by checking if the trip config register is
being configured to the same settings.
Although it doesn't fix the below bugs, it reduces unnecessary extra
work that makes these problems worse.
Bug
1463497
Bug
1478989
Change-Id: Idf07b49ca8d7da892b52ed796044c2f433e2a192
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/384656
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Paul Walmsley <pwalmsley@nvidia.com>
GVS: Gerrit_Virtual_Submit