Skip to content

Commit

Permalink
video: tegra: host: nvhost support for t239
Browse files Browse the repository at this point in the history
NvHost driver code update for t239:
- HW specific source files
- Register offset update for t239
- Initialization sequence update for the same
- Support for legacy engines

Jira HOSTX-2881
Bug 200737708

Change-Id: I6607e057a7c875931fea0923b78b99e74df8f8ff
Signed-off-by: Santosh B S <santoshb@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-t23x/+/2540280
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
  • Loading branch information
Santosh B S authored and mobile promotions committed Jun 9, 2021
1 parent 20bb315 commit 1500197
Show file tree
Hide file tree
Showing 18 changed files with 1,647 additions and 15 deletions.
1 change: 1 addition & 0 deletions drivers/video/tegra/host/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ccflags-y += -I$(srctree.nvidia-t23x)/drivers/video/tegra/host

nvhost-$(CONFIG_TEGRA_T23X_GRHOST) += \
t23x/t23x.o \
t239/t239.o \
riscv/riscv.o

nvhost-$(CONFIG_TEGRA_GRHOST_OFA) += ofa/ofa.o
Expand Down
13 changes: 10 additions & 3 deletions drivers/video/tegra/host/flcn/flcn_t23x.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
* Copyright (c) 2020-2021, NVIDIA Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
Expand All @@ -13,14 +13,16 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* struct of_device_id initialization for T23x
* struct of_device_id initialization for T234 and T239
*/

//static struct of_device_id tegra_flcn_of_match[] = {

#if defined(CONFIG_TEGRA_GRHOST_VIC)
{ .compatible = "nvidia,tegra234-vic",
.data = (struct nvhost_device_data *)&t23x_vic_info },
{ .compatible = "nvidia,tegra239-vic",
.data = (struct nvhost_device_data *)&t239_vic_info },
#endif
#if defined(CONFIG_TEGRA_GRHOST_NVJPG)
{ .compatible = "nvidia,tegra234-nvjpg",
Expand All @@ -34,10 +36,15 @@
{ .compatible = "nvidia,tegra234-nvenc",
.data = (struct nvhost_device_data *)&t23x_msenc_info,
.name = "nvenc" },
{ .compatible = "nvidia,tegra239-nvenc",
.data = (struct nvhost_device_data *)&t239_msenc_info,
.name = "nvenc" },
#endif
#if defined(CONFIG_TEGRA_GRHOST_OFA)
{ .compatible = "nvidia,tegra234-ofa",
{ .compatible = "nvidia,tegra234-ofa",
.data = (struct nvhost_device_data *)&t23x_ofa_info },
{ .compatible = "nvidia,tegra239-ofa",
.data = (struct nvhost_device_data *)&t239_ofa_info },
#endif

//};
31 changes: 31 additions & 0 deletions drivers/video/tegra/host/host1x/host1x_of_match_t23x.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (c) 2021, NVIDIA Corporation. All rights reserved.
*
* 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/>.
*
* struct of_device_id initialization for T234 and T239
*/

//static struct of_device_id tegra_host1x_of_match[] = {

{ .name = "host1x",
.compatible = "nvidia,tegra234-host1x",
.data = (struct nvhost_device_data *)&t23x_host1x_info },
{ .name = "host1x",
.compatible = "nvidia,tegra234-host1x-hv",
.data = (struct nvhost_device_data *)&t23x_host1x_hv_info },
{ .name = "host1x",
.compatible = "nvidia,tegra239-host1x",
.data = (struct nvhost_device_data *)&t239_host1x_info },

//};

0 comments on commit 1500197

Please sign in to comment.