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>
Thu, 1 Dec 2011 05:47:49 +0000 (21:47 -0800)
commit6e9b68133112f094d1b82b9ce854853b84480895
treea7813dc2687a3baed69f52aaab7b5a902cd52ab8
parent949379b4ff8c0c060d67e0c7f89d5e134685ecca
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