1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_DEVICE_TEGRA_H__
3 #define __NVKM_DEVICE_TEGRA_H__
4 #include <core/device.h>
7 struct nvkm_device_tegra {
8 const struct nvkm_device_tegra_func *func;
9 struct nvkm_device device;
10 struct platform_device *pdev;
13 struct reset_control *rst;
18 struct regulator *vdd;
22 * Protects accesses to mm from subsystems
27 struct iommu_domain *domain;
28 unsigned long pgshift;
35 struct nvkm_device_tegra_func {
37 * If an IOMMU is used, indicates which address bit will trigger a
38 * IOMMU translation when set (when this bit is not set, IOMMU is
39 * bypassed). A value of 0 means an IOMMU is never used.
43 * Whether the chip requires a reference clock
47 * Whether the chip requires the VDD regulator
52 int nvkm_device_tegra_new(const struct nvkm_device_tegra_func *,
53 struct platform_device *,
54 const char *cfg, const char *dbg,
55 bool detect, bool mmio, u64 subdev_mask,
56 struct nvkm_device **);