mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
Bug 5065840 Change-Id: I2012645108457974e24d3c8799ee9412393408e1 Signed-off-by: Arvind M <am@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3291589 Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Vishal Thoke <vthoke@nvidia.com> Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com> Reviewed-by: Ken Adams <kadams@nvidia.com>
88 lines
2.5 KiB
C
88 lines
2.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* SPDX-FileCopyrightText: Copyright (c) 2022-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*
|
|
* Device data for T234
|
|
*/
|
|
|
|
#ifndef __NVHOST_NVDLA_T234_H__
|
|
#define __NVHOST_NVDLA_T234_H__
|
|
|
|
#include "port/nvdla_host_wrapper.h"
|
|
#include <dt-bindings/interconnect/tegra_icc_id.h>
|
|
|
|
#include "nvdla.h"
|
|
#include "nvdla_cg_regs.h"
|
|
#include "dla_t23x_fw_version.h"
|
|
|
|
static struct nvhost_device_data t23x_nvdla0_info = {
|
|
.devfs_name_family = "nvdla",
|
|
.class = NV_DLA0_CLASS_ID,
|
|
.clocks = {
|
|
{"nvdla0", UINT_MAX},
|
|
{"nvdla0_flcn", UINT_MAX}
|
|
},
|
|
.resource_policy = RESOURCE_PER_CHANNEL_INSTANCE,
|
|
.finalize_poweron = nvdla_finalize_poweron,
|
|
.prepare_poweroff = nvdla_prepare_poweroff,
|
|
.flcn_isr = nvdla_flcn_isr,
|
|
.self_config_flcn_isr = true,
|
|
.vm_regs = {{0x30, true}, {0x34, false} },
|
|
.firmware_name = NV_DLA_TEGRA234_FW,
|
|
.version = FIRMWARE_ENCODE_VERSION(T23X),
|
|
.autosuspend_delay = 500,
|
|
.keepalive = true,
|
|
.poweron_reset = true,
|
|
.serialize = true,
|
|
.ctrl_ops = &tegra_nvdla_ctrl_ops,
|
|
#if defined(NVDLA_HAVE_CONFIG_AXI) && (NVDLA_HAVE_CONFIG_AXI == 1)
|
|
.get_reloc_phys_addr = NULL,
|
|
#else
|
|
.get_reloc_phys_addr = nvhost_t23x_get_reloc_phys_addr,
|
|
#endif
|
|
.module_irq = 1,
|
|
.engine_cg_regs = nvdla_gating_registers,
|
|
.engine_can_cg = true,
|
|
.can_powergate = true,
|
|
.icc_id = TEGRA_ICC_DLA_0,
|
|
.transcfg_addr = 0x1444,
|
|
.transcfg_val = 0x20,
|
|
.firmware_not_in_subdir = true,
|
|
};
|
|
|
|
static struct nvhost_device_data t23x_nvdla1_info = {
|
|
.devfs_name_family = "nvdla",
|
|
.class = NV_DLA1_CLASS_ID,
|
|
.clocks = {
|
|
{"nvdla1", UINT_MAX},
|
|
{"nvdla1_flcn", UINT_MAX}
|
|
},
|
|
.resource_policy = RESOURCE_PER_CHANNEL_INSTANCE,
|
|
.finalize_poweron = nvdla_finalize_poweron,
|
|
.prepare_poweroff = nvdla_prepare_poweroff,
|
|
.flcn_isr = nvdla_flcn_isr,
|
|
.self_config_flcn_isr = true,
|
|
.vm_regs = {{0x30, true}, {0x34, false} },
|
|
.firmware_name = NV_DLA_TEGRA234_FW,
|
|
.version = FIRMWARE_ENCODE_VERSION(T23X),
|
|
.autosuspend_delay = 500,
|
|
.keepalive = true,
|
|
.poweron_reset = true,
|
|
.serialize = true,
|
|
.ctrl_ops = &tegra_nvdla_ctrl_ops,
|
|
#if defined(NVDLA_HAVE_CONFIG_AXI) && (NVDLA_HAVE_CONFIG_AXI == 1)
|
|
.get_reloc_phys_addr = NULL,
|
|
#else
|
|
.get_reloc_phys_addr = nvhost_t23x_get_reloc_phys_addr,
|
|
#endif
|
|
.module_irq = 1,
|
|
.engine_cg_regs = nvdla_gating_registers,
|
|
.engine_can_cg = true,
|
|
.can_powergate = true,
|
|
.icc_id = TEGRA_ICC_DLA_1,
|
|
.transcfg_addr = 0x1444,
|
|
.transcfg_val = 0x20,
|
|
.firmware_not_in_subdir = true,
|
|
};
|
|
|
|
#endif /* End of __NVHOST_NVDLA_T234_H__ */
|