mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
drm/tegra: ofa: Only enable safety RAM if specified
Fix OFA boot sequence to only enable safety RAM if the configuration specifies doing so. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Change-Id: Id427dee5cfcda036b3f71b89e5d11a4a842964f1 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3103404 Reviewed-by: Santosh BS <santoshb@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f9c1b6728e
commit
4f69d815e6
@@ -75,11 +75,14 @@ static int ofa_boot(struct ofa *ofa)
|
||||
int err;
|
||||
u32 val;
|
||||
|
||||
ofa_writel(ofa, 0x1, OFA_SAFETY_RAM_INIT_REQ);
|
||||
err = readl_poll_timeout(ofa->regs + OFA_SAFETY_RAM_INIT_DONE, val, (val == 1), 100000, 10);
|
||||
if (err < 0) {
|
||||
dev_err(ofa->dev, "timeout while initializing safety RAM\n");
|
||||
return err;
|
||||
if (ofa->config->has_safety_ram) {
|
||||
ofa_writel(ofa, 0x1, OFA_SAFETY_RAM_INIT_REQ);
|
||||
err = readl_poll_timeout(ofa->regs + OFA_SAFETY_RAM_INIT_DONE, val, (val == 1),
|
||||
100000, 10);
|
||||
if (err < 0) {
|
||||
dev_err(ofa->dev, "timeout while initializing safety RAM\n");
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
||||
tegra_drm_program_iommu_regs(ofa->dev, ofa->regs, OFA_TFBIF_TRANSCFG);
|
||||
|
||||
Reference in New Issue
Block a user