ARM: tegra: ardbeg: powermon: set ina230 avg value
authorJon McCaffrey <jmccaffrey@nvidia.com>
Wed, 25 Sep 2013 19:30:08 +0000 (12:30 -0700)
committerBharat Nihalani <bnihalani@nvidia.com>
Thu, 17 Oct 2013 04:21:40 +0000 (21:21 -0700)
commite1e66145d064f2dea1fb46262ee8c92423e84d9f
treee8f39cafea4563258583864fbbc682139f4ee49c
parenta592bd276be8e09c5517f89b9fa4650fc23406ad
ARM: tegra: ardbeg: powermon: set ina230 avg value

Sets a value for the avg field of the ina230 config.  This will take 128
samples per-reading.  With the default conversion time of 140us, this
works out to ~18ms per-reading, which is a long time, but works well for
anti-aliasing power measurements for changes in power consumption over
graphics frames (~16ms).

Change-Id: I81f2a40dbae3f70e2fb24538d5a01b5c7c17ac24
Signed-off-by: Jon McCaffrey <jmccaffrey@nvidia.com>
Reviewed-on: http://git-master/r/299577
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
arch/arm/mach-tegra/board-ardbeg-powermon.c
arch/arm/mach-tegra/board-laguna-powermon.c
arch/arm/mach-tegra/board-macallan-powermon.c
arch/arm/mach-tegra/board-pluto-powermon.c