summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/hw/host1x02.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/hw/host1x02.c
parentdrm/tegra: Allocate resources at probe time (diff)
downloadlinux-5407f31bd37d1289dfd0a2a23a45c5ff2aec8e58.tar.xz
linux-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/hw/host1x02.c')
-rw-r--r--drivers/gpu/host1x/hw/host1x02.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/hw/host1x02.c b/drivers/gpu/host1x/hw/host1x02.c
new file mode 100644
index 000000000000..e98caca0ca42
--- /dev/null
+++ b/drivers/gpu/host1x/hw/host1x02.c
@@ -0,0 +1,42 @@
+/*
+ * Host1x init for Tegra114 SoCs
+ *
+ * Copyright (c) 2013 NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/* include hw specification */
+#include "host1x01.h"
+#include "host1x01_hardware.h"
+
+/* include code */
+#include "cdma_hw.c"
+#include "channel_hw.c"
+#include "debug_hw.c"
+#include "intr_hw.c"
+#include "syncpt_hw.c"
+
+#include "../dev.h"
+
+int host1x02_init(struct host1x *host)
+{
+ host->channel_op = &host1x_channel_ops;
+ host->cdma_op = &host1x_cdma_ops;
+ host->cdma_pb_op = &host1x_pushbuffer_ops;
+ host->syncpt_op = &host1x_syncpt_ops;
+ host->intr_op = &host1x_intr_ops;
+ host->debug_op = &host1x_debug_ops;
+
+ return 0;
+}