From e793ebb2f80cb130cc3aee0fea8f83a016d89956 Mon Sep 17 00:00:00 2001 From: Sudeshna Date: Wed, 1 Apr 2020 18:52:15 +0530 Subject: [PATCH] video: tegra: nvdla: Bring Kernel Mode Driver up for Orin Add new device node support for NVDLA in Kernel Mode Driver. Change-Id: I050b5cbfd83b366b848bc92628deed83d43f0896 Jira: DLA-3099 Signed-off-by: Sudeshna Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2322119 Reviewed-by: Shridhar Rasal Reviewed-by: Bitan Biswas Reviewed-by: Bharat Nihalani Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- drivers/video/tegra/host/nvdla/Makefile | 6 ++++++ drivers/video/tegra/host/nvdla/nvdla.c | 14 +++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/video/tegra/host/nvdla/Makefile b/drivers/video/tegra/host/nvdla/Makefile index 52cee3dd..30ad855b 100644 --- a/drivers/video/tegra/host/nvdla/Makefile +++ b/drivers/video/tegra/host/nvdla/Makefile @@ -17,3 +17,9 @@ nvhost-nvdla-objs = \ obj-$(CONFIG_TEGRA_GRHOST_NVDLA) += nvhost-nvdla.o endif + +ifdef CONFIG_TEGRA_T23X_GRHOST + +ccflags-y += -I$(srctree.nvidia-t23x)/drivers/video/tegra/host + +endif diff --git a/drivers/video/tegra/host/nvdla/nvdla.c b/drivers/video/tegra/host/nvdla/nvdla.c index 391ff789..49b5f06b 100644 --- a/drivers/video/tegra/host/nvdla/nvdla.c +++ b/drivers/video/tegra/host/nvdla/nvdla.c @@ -37,7 +37,9 @@ #include "nvhost_syncpt_unit_interface.h" #include "t194/t194.h" - +#ifdef CONFIG_TEGRA_T23X_GRHOST +#include "t23x/t23x.h" +#endif #include "nvdla/nvdla.h" #include "nvdla/dla_queue.h" @@ -695,6 +697,16 @@ static struct of_device_id tegra_nvdla_of_match[] = { .name = "nvdla1", .compatible = "nvidia,tegra194-nvdla", .data = (struct nvhost_device_data *)&t19_nvdla1_info }, +#ifdef CONFIG_TEGRA_T23X_GRHOST + { + .name = "nvdla0", + .compatible = "nvidia,tegra234-nvdla", + .data = (struct nvhost_device_data *)&t23x_nvdla0_info }, + { + .name = "nvdla1", + .compatible = "nvidia,tegra234-nvdla", + .data = (struct nvhost_device_data *)&t23x_nvdla1_info }, +#endif { }, };