video: tegra: host: enable vic power-gating
Mayuresh Kulkarni [Wed, 24 Jul 2013 11:35:19 +0000 (16:35 +0530)]
bug 1324512

Change-Id: Ibb9ff1f0b60e84752eef55cd0a1899822e65c6fb
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/253401
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>

drivers/video/tegra/host/vic03/vic03.c

index 462bd46..cd45138 100644 (file)
@@ -44,6 +44,7 @@
 #include "t124/hardware_t124.h" /* for nvhost opcodes*/
 
 #include <mach/pm_domains.h>
+#include <mach/powergate.h>
 
 #include "../../../../../arch/arm/mach-tegra/iomap.h"
 
@@ -65,6 +66,9 @@ struct nvhost_device_data vic03_info = {
        .moduleid      = NVHOST_MODULE_VIC,
        .alloc_hwctx_handler = nvhost_vic03_alloc_hwctx_handler,
        .force_context_restore  = true,
+       .can_powergate          = true,
+       .powergate_delay        = 500,
+       .powergate_ids          = { TEGRA_POWERGATE_VIC, -1 },
 };
 
 struct platform_device tegra_vic03_device = {