summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/nvhost.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-01-17 15:39:13 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-23 01:20:15 -0500
commitf3f14cdff53f4b936e2505d44aad6e3bca143056 (patch)
tree8d6438132b8ca429758d18142c5f569f60f2bc35 /drivers/gpu/nvgpu/common/linux/nvhost.c
parent193a2ed38ca51d898ac811820ab86237c84e18eb (diff)
gpu: nvgpu: Fold T19x code back to main code paths
Lots of code paths were split to T19x specific code paths and structs due to split repository. Now that repositories are merged, fold all of them back to main code paths and structs and remove the T19x specific Kconfig flag. Change-Id: Id0d17a5f0610fc0b49f51ab6664e716dc8b222b6 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1640606 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/nvhost.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/nvhost.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvhost.c b/drivers/gpu/nvgpu/common/linux/nvhost.c
index 511cffc4..e0f83612 100644
--- a/drivers/gpu/nvgpu/common/linux/nvhost.c
+++ b/drivers/gpu/nvgpu/common/linux/nvhost.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -15,6 +15,7 @@
15 */ 15 */
16 16
17#include <linux/nvhost.h> 17#include <linux/nvhost.h>
18#include <linux/nvhost_t194.h>
18#include <linux/nvhost_ioctl.h> 19#include <linux/nvhost_ioctl.h>
19#include <linux/of_platform.h> 20#include <linux/of_platform.h>
20 21
@@ -210,3 +211,18 @@ struct sync_fence *nvgpu_nvhost_sync_create_fence(
210 return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, 1, name); 211 return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, 1, name);
211} 212}
212#endif /* CONFIG_SYNC */ 213#endif /* CONFIG_SYNC */
214
215#ifdef CONFIG_TEGRA_T19X_GRHOST
216int nvgpu_nvhost_syncpt_unit_interface_get_aperture(
217 struct nvgpu_nvhost_dev *nvhost_dev,
218 u64 *base, size_t *size)
219{
220 return nvhost_syncpt_unit_interface_get_aperture(
221 nvhost_dev->host1x_pdev, (phys_addr_t *)base, size);
222}
223
224u32 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id)
225{
226 return nvhost_syncpt_unit_interface_get_byte_offset(syncpt_id);
227}
228#endif