mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
The CV cluster needs to be clamped before/after a rail gate/ungate sequence. Since there is no way to hook into the CV power domain's poweroff/poweron functions, track references to the CV domain explicitly by having client CV modules get/put references to the CV cluster. The first client module to poweron will result in the CV cluster clamp getting disabled and the last client module to poweroff will result in the clamp getting set. This will ensure that any subsequent CV rail gating sequence happens with the clamps in place. Jira HOSTX-194 Change-Id: Ic65176e15c1a487a020712a02147cbfc3f2f83c3 Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1517643 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>