diff options
author | Thierry Reding <treding@nvidia.com> | 2018-01-25 14:10:44 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-11-29 17:11:49 +0100 |
commit | ac1bdbf22bebabfee150bb5c33a02c4d0119d185 (patch) | |
tree | bfd80e1a97604aeecab7ffb6b35bc3d17e44def1 /drivers/gpu/host1x/hw/syncpt_hw.c | |
parent | drm/tegra: falcon: Wait for memory scrubbing to complete (diff) | |
download | linux-dev-ac1bdbf22bebabfee150bb5c33a02c4d0119d185.tar.xz linux-dev-ac1bdbf22bebabfee150bb5c33a02c4d0119d185.zip |
gpu: host1x: Add Tegra194 support
The host1x hardware found on Tegra194 is mostly backwards compatible
with the version found on Tegra186, with the notable exceptions of the
increased number of syncpoints and mlocks. In addition, some rarely
used features such as syncpoint wait bases were dropped and some
registers had to move around to accomodate the increased number of
syncpoints.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/host1x/hw/syncpt_hw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/hw/syncpt_hw.c b/drivers/gpu/host1x/hw/syncpt_hw.c index a23bb3352d02..d946660d47f8 100644 --- a/drivers/gpu/host1x/hw/syncpt_hw.c +++ b/drivers/gpu/host1x/hw/syncpt_hw.c @@ -37,10 +37,12 @@ static void syncpt_restore(struct host1x_syncpt *sp) */ static void syncpt_restore_wait_base(struct host1x_syncpt *sp) { +#if HOST1X_HW < 7 struct host1x *host = sp->host; host1x_sync_writel(host, sp->base_val, HOST1X_SYNC_SYNCPT_BASE(sp->id)); +#endif } /* @@ -48,10 +50,12 @@ static void syncpt_restore_wait_base(struct host1x_syncpt *sp) */ static void syncpt_read_wait_base(struct host1x_syncpt *sp) { +#if HOST1X_HW < 7 struct host1x *host = sp->host; sp->base_val = host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id)); +#endif } /* |