mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
drm/tegra: Wrap register init code in function
Put the actmon-related register initialization code in the function for readability. Bug 4183393 Signed-off-by: Johnny Liu <johnliu@nvidia.com> Change-Id: Id68d128ae330105da0d3f76270fe38d57c12c740 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2931793 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
3264c9dfca
commit
ff572997a3
@@ -486,6 +486,19 @@ cleanup:
|
||||
}
|
||||
|
||||
|
||||
static void vic_actmon_reg_init(struct vic *vic)
|
||||
{
|
||||
vic_writel(vic,
|
||||
VIC_TFBIF_ACTMON_ACTIVE_MASK_STARVED |
|
||||
VIC_TFBIF_ACTMON_ACTIVE_MASK_STALLED |
|
||||
VIC_TFBIF_ACTMON_ACTIVE_MASK_DELAYED,
|
||||
NV_PVIC_TFBIF_ACTMON_ACTIVE_MASK);
|
||||
|
||||
vic_writel(vic,
|
||||
VIC_TFBIF_ACTMON_ACTIVE_BORPS_ACTIVE,
|
||||
NV_PVIC_TFBIF_ACTMON_ACTIVE_BORPS);
|
||||
}
|
||||
|
||||
static int __maybe_unused vic_runtime_resume(struct device *dev)
|
||||
{
|
||||
struct vic *vic = dev_get_drvdata(dev);
|
||||
@@ -511,15 +524,7 @@ static int __maybe_unused vic_runtime_resume(struct device *dev)
|
||||
if (err < 0)
|
||||
goto assert;
|
||||
|
||||
vic_writel(vic,
|
||||
VIC_TFBIF_ACTMON_ACTIVE_MASK_STARVED |
|
||||
VIC_TFBIF_ACTMON_ACTIVE_MASK_STALLED |
|
||||
VIC_TFBIF_ACTMON_ACTIVE_MASK_DELAYED,
|
||||
NV_PVIC_TFBIF_ACTMON_ACTIVE_MASK);
|
||||
|
||||
vic_writel(vic,
|
||||
VIC_TFBIF_ACTMON_ACTIVE_BORPS_ACTIVE,
|
||||
NV_PVIC_TFBIF_ACTMON_ACTIVE_BORPS);
|
||||
vic_actmon_reg_init(vic);
|
||||
|
||||
host1x_actmon_enable(&vic->client.base);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user