aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/dev.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2013-09-30 14:17:39 +0200
committerThierry Reding <treding@nvidia.com>2013-10-31 09:55:41 +0100
commit5407f31bd37d1289dfd0a2a23a45c5ff2aec8e58 (patch)
tree3fb5e326c74693d083613568a2455a2b99f0e6e5 /drivers/gpu/host1x/dev.c
parentdrm/tegra: Allocate resources at probe time (diff)
downloadlinux-dev-5407f31bd37d1289dfd0a2a23a45c5ff2aec8e58.tar.xz
linux-dev-5407f31bd37d1289dfd0a2a23a45c5ff2aec8e58.zip
gpu: host1x: Add support for Tegra114
Tegra114 uses a slightly updated version of host1x with an additional syncpoint. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/dev.c')
-rw-r--r--drivers/gpu/host1x/dev.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c
index de0fd552710d..ab402a56284c 100644
--- a/drivers/gpu/host1x/dev.c
+++ b/drivers/gpu/host1x/dev.c
@@ -33,6 +33,7 @@
#include "channel.h"
#include "debug.h"
#include "hw/host1x01.h"
+#include "hw/host1x02.h"
void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r)
{
@@ -67,7 +68,17 @@ static const struct host1x_info host1x01_info = {
.sync_offset = 0x3000,
};
+static const struct host1x_info host1x02_info = {
+ .nb_channels = 9,
+ .nb_pts = 32,
+ .nb_mlocks = 16,
+ .nb_bases = 12,
+ .init = host1x02_init,
+ .sync_offset = 0x3000,
+};
+
static struct of_device_id host1x_of_match[] = {
+ { .compatible = "nvidia,tegra114-host1x", .data = &host1x02_info, },
{ .compatible = "nvidia,tegra30-host1x", .data = &host1x01_info, },
{ .compatible = "nvidia,tegra20-host1x", .data = &host1x01_info, },
{ },