ARM: tegra: ardbeg: set avg values for productized sensors
Timo Alho [Tue, 5 Nov 2013 12:51:15 +0000 (14:51 +0200)]
bug 1401524

Change-Id: Ibc384ffc42e5a6ac0ec019794f53f377c5307f35
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/326697
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

arch/arm/mach-tegra/board-ardbeg-powermon.c

index 2438def..a0aa7ad 100644 (file)
@@ -103,6 +103,8 @@ static struct ina230_platform_data power_mon_info_0[] = {
                .calibration_data = 0x1366,
                .power_lsb = 2.577527185 * PRECISION_MULTIPLIER_ARDBEG,
                .rail_name = "VDD_BAT",
+               .trig_conf = INA230_TRIG_CONFIG,
+               .cont_conf = INA230_CONT_CONFIG,
                .divisor = 25,
                .precision_multiplier = PRECISION_MULTIPLIER_ARDBEG,
                .resistor = 10,
@@ -111,6 +113,8 @@ static struct ina230_platform_data power_mon_info_0[] = {
                .calibration_data = 0x1AC5,
                .power_lsb = 1.867795126 * PRECISION_MULTIPLIER_ARDBEG,
                .rail_name = "VDD_SYS_BUCKCPU",
+               .trig_conf = INA230_TRIG_CONFIG,
+               .cont_conf = INA230_CONT_CONFIG,
                .divisor = 25,
                .precision_multiplier = PRECISION_MULTIPLIER_ARDBEG,
                .resistor = 10,
@@ -119,6 +123,8 @@ static struct ina230_platform_data power_mon_info_0[] = {
                .calibration_data = 0x2802,
                .power_lsb = 0.624877954 * PRECISION_MULTIPLIER_ARDBEG,
                .rail_name = "VDD_SYS_BUCKSOC",
+               .trig_conf = INA230_TRIG_CONFIG,
+               .cont_conf = INA230_CONT_CONFIG,
                .divisor = 25,
                .precision_multiplier = PRECISION_MULTIPLIER_ARDBEG,
                .resistor = 20,
@@ -126,7 +132,9 @@ static struct ina230_platform_data power_mon_info_0[] = {
        [VDD_SYS_BUCKGPU_0] = {
                .calibration_data = 0x1F38,
                .power_lsb = 1.601601602 * PRECISION_MULTIPLIER_ARDBEG,
-               .rail_name = "VDD_SYS_BUCKCPU",
+               .rail_name = "VDD_SYS_BUCKGPU",
+               .trig_conf = INA230_TRIG_CONFIG,
+               .cont_conf = INA230_CONT_CONFIG,
                .divisor = 25,
                .precision_multiplier = PRECISION_MULTIPLIER_ARDBEG,
                .resistor = 10,