From 4de7c8f6d0266c0d4a994ce089fa1ca841daa9c6 Mon Sep 17 00:00:00 2001 From: Sahil Mukund Patki Date: Mon, 31 Oct 2022 11:26:20 +0000 Subject: [PATCH] video: tegra: Add T239 support in new TSEC driver This patch adds T239 support in new TSEC driver and removes the support from the old driver. Bug 3817626 Change-Id: I705e0bac25e6a905588145aef4a4cc98d0a81651 Signed-off-by: Sahil Mukund Patki Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2800494 Reviewed-by: svcacv Reviewed-by: Nikesh Oswal Reviewed-by: svc-mobile-coverity Reviewed-by: Bharat Nihalani GVS: Gerrit_Virtual_Submit --- drivers/video/tegra/tsec/tsec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/video/tegra/tsec/tsec.c b/drivers/video/tegra/tsec/tsec.c index 0cfe9131..c68e48b6 100644 --- a/drivers/video/tegra/tsec/tsec.c +++ b/drivers/video/tegra/tsec/tsec.c @@ -32,6 +32,12 @@ struct tsec_device_data t23x_tsec_data = { .riscv_image_bin = "tegra23x/nvhost_tsec_riscv.fw", }; +struct tsec_device_data t239_tsec_data = { + .rate = {192000000, 0, 204000000}, + .riscv_desc_bin = "tegra239/nvhost_tsec_desc.fw", + .riscv_image_bin = "tegra239/nvhost_tsec_riscv.fw", +}; + /* * TSEC Register Access APIs */ @@ -264,6 +270,8 @@ const struct dev_pm_ops tsec_module_pm_ops = { static const struct of_device_id tsec_of_match[] = { { .compatible = "nvidia,tegra234-tsec", .data = (struct tsec_device_data *)&t23x_tsec_data }, + { .compatible = "nvidia,tegra239-tsec", + .data = (struct nvhost_device_data *)&t239_tsec_data }, { }, };