hwmon: tegra: tsensor: lp0 save/restore configuration
authorBitan Biswas <bbiswas@nvidia.com>
Tue, 19 Jul 2011 12:41:58 +0000 (17:41 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 07:48:39 +0000 (00:48 -0700)
commit649e031b97fe9e3c5a88805df136143ef3a057c3
treee24771e87bd45b79df181898e0a39c19a81265c0
parentaf7ff965bf01d06dda9db43bda7307b2c52db726
hwmon: tegra: tsensor: lp0 save/restore configuration

tsensor configuration needs to be saved before lp0 and restored
after lp0 resume else POR values are seen after lp0 resume.
- Config0, Config1 and Config2 registers are saved and restored

bug 851791

Original-Change-Id: I95532d995af4fa71e169209bb1788fc4152290fe
Reviewed-on: http://git-master/r/41819
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Narendra Damahe <ndamahe@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Rebase-Id: Raceac7154fc86486f2726cdd13637d7e8d1e6828
drivers/hwmon/tegra-tsensor.c