ARM: tegra: kai: change NCT72 conversion rate
Daniel Fu [Tue, 8 May 2012 10:22:00 +0000 (18:22 +0800)]
Bug 961829

NCT72 thermal sensor consumes ~3mW at 16Hz conversion rate.
At 32Hz, the power consumption ~1.5mW.
Change conversion rate to 32Hz to reduce power consumption.
LP0 power consumption will not reduce, because the sensor will
enter standby mode.

Signed-off-by: Daniel Fu <danifu@nvidia.com>
Change-Id: If584c57b4d6e0b3068d9a1210a977ef5cd347984
Reviewed-on: http://git-master/r/101217
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>

arch/arm/mach-tegra/board-kai-sensors.c

index f85a6cb..a9b8f8d 100644 (file)
@@ -101,7 +101,7 @@ static void nct1008_probe_callback(struct nct1008_data *data)
 static struct nct1008_platform_data kai_nct1008_pdata = {
        .supported_hwrev = true,
        .ext_range = true,
-       .conv_rate = 0x08,
+       .conv_rate = 0x09, /* 0x09 corresponds to 32Hz conversion rate */
        .offset = 8, /* 4 * 2C. 1C for device accuracies */
 #ifndef CONFIG_TEGRA_INTERNAL_TSENSOR_EDP_SUPPORT
        .probe_callback = nct1008_probe_callback,