diff options
author | Shridhar Rasal <srasal@nvidia.com> | 2013-11-27 10:45:16 +0530 |
---|---|---|
committer | Sachin Nikam <snikam@nvidia.com> | 2013-12-10 00:52:08 -0800 |
commit | a1445caf33d0b90bf0100afc743f232c01ff57b7 (patch) | |
tree | 7499ff1b4348c66bf542538a0b0735b49e26fc38 /drivers/video/tegra/host/t114/t114.c | |
parent | a32ee28d8c4911850103ef15f1d5efc055f88442 (diff) |
video: tegra: host: enable tsec powergate
- Enable tsec powergating with default powergating delay.
- Add reset in poweron path instead probe.
- Add flag to set completion of boot and call boot only if boot
required.
- add prepare_poweroff to reset boot flag.
- set keepalive to sync powergating with userspace requests.
bug 1413536
Change-Id: I9cce1165db854d48d1b7522f0dea63ccf4331162
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/336031
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/t114/t114.c')
-rw-r--r-- | drivers/video/tegra/host/t114/t114.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/tegra/host/t114/t114.c b/drivers/video/tegra/host/t114/t114.c index 41d3c5220ec1..a21af70f6ceb 100644 --- a/drivers/video/tegra/host/t114/t114.c +++ b/drivers/video/tegra/host/t114/t114.c @@ -48,6 +48,8 @@ /* HACK! This needs to come from DT */ #include "../../../../../arch/arm/mach-tegra/iomap.h" +#define TSEC_POWERGATE_DELAY 500 + static int t114_num_alloc_channels = 0; static struct resource tegra_host1x02_resources[] = { @@ -307,10 +309,14 @@ struct nvhost_device_data t11_tsec_info = { {"emc", 300000000, 75} }, NVHOST_MODULE_NO_POWERGATE_IDS, NVHOST_DEFAULT_CLOCKGATE_DELAY, + .can_powergate = true, + .powergate_delay = TSEC_POWERGATE_DELAY, + .keepalive = true, .moduleid = NVHOST_MODULE_TSEC, .init = nvhost_tsec_init, .deinit = nvhost_tsec_deinit, .finalize_poweron = nvhost_tsec_finalize_poweron, + .prepare_poweroff = nvhost_tsec_prepare_poweroff, }; static struct platform_device tegra_tsec01_device = { |