video: tegra: host: Add ioctl to set/get clk rate
authorPrashant Gaikwad <pgaikwad@nvidia.com>
Tue, 2 Aug 2011 15:33:59 +0000 (20:33 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:48:06 +0000 (21:48 -0800)
commit000d7e29e205824ac3417c31d5bd09ad043b4810
treea31dcb710b8f0639d6e8571a8b9f0cc29319e07d
parent9823a7681bb09708d79b609150643a61e6f83ef3
video: tegra: host: Add ioctl to set/get clk rate

Host modules are initialized to max rate. Not all use cases
require clocks at max rate, which increases the power consumption.
Modules from user space can request for the lower clk rate
using this ioctl.

Bug 850467

Original-Change-Id: I1c7a8dfd159460e7c5a27813e3a08a992a20c132
Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-on: http://git-master/r/44579
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

Rebase-Id: R0cffab971c5ac6adde28af4777354a1ecae4c54d
arch/arm/mach-tegra/include/mach/nvhost.h
drivers/video/tegra/host/dev.c
drivers/video/tegra/host/nvhost_acm.c
drivers/video/tegra/host/nvhost_acm.h