/kernel/linux/linux-5.10/drivers/usb/host/ |
D | xhci-tegra.c | 278 static inline u32 fpci_readl(struct tegra_xusb *tegra, unsigned int offset) in fpci_readl() argument 280 return readl(tegra->fpci_base + offset); in fpci_readl() 283 static inline void fpci_writel(struct tegra_xusb *tegra, u32 value, in fpci_writel() argument 286 writel(value, tegra->fpci_base + offset); in fpci_writel() 289 static inline u32 ipfs_readl(struct tegra_xusb *tegra, unsigned int offset) in ipfs_readl() argument 291 return readl(tegra->ipfs_base + offset); in ipfs_readl() 294 static inline void ipfs_writel(struct tegra_xusb *tegra, u32 value, in ipfs_writel() argument 297 writel(value, tegra->ipfs_base + offset); in ipfs_writel() 300 static u32 csb_readl(struct tegra_xusb *tegra, unsigned int offset) in csb_readl() argument 305 fpci_writel(tegra, page, XUSB_CFG_ARU_C11_CSBRANGE); in csb_readl() [all …]
|
D | ehci-tegra.c | 55 struct tegra_ehci_hcd *tegra = in tegra_reset_usb_controller() local 86 err = reset_control_deassert(tegra->rst); in tegra_reset_usb_controller() 90 err = reset_control_assert(tegra->rst); in tegra_reset_usb_controller() 96 err = reset_control_deassert(tegra->rst); in tegra_reset_usb_controller() 178 struct tegra_ehci_hcd *tegra = (struct tegra_ehci_hcd *)ehci->priv; in tegra_ehci_hub_control() local 190 if (tegra->port_resuming && !(temp & PORT_SUSPEND)) { in tegra_ehci_hub_control() 192 tegra->port_resuming = 0; in tegra_ehci_hub_control() 221 if (tegra->needs_double_reset && in tegra_ehci_hub_control() 268 tegra->port_resuming = 1; in tegra_ehci_hub_control() 388 struct tegra_ehci_hcd *tegra; in tegra_ehci_probe() local [all …]
|
/kernel/linux/linux-5.10/drivers/devfreq/ |
D | tegra30-devfreq.c | 193 static u32 actmon_readl(struct tegra_devfreq *tegra, u32 offset) in actmon_readl() argument 195 return readl_relaxed(tegra->regs + offset); in actmon_readl() 198 static void actmon_writel(struct tegra_devfreq *tegra, u32 val, u32 offset) in actmon_writel() argument 200 writel_relaxed(val, tegra->regs + offset); in actmon_writel() 226 static void tegra_devfreq_update_avg_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_avg_wmark() argument 229 u32 avg_band_freq = tegra->max_freq * ACTMON_DEFAULT_AVG_BAND / KHZ; in tegra_devfreq_update_avg_wmark() 230 u32 band = avg_band_freq * tegra->devfreq->profile->polling_ms; in tegra_devfreq_update_avg_wmark() 240 static void tegra_devfreq_update_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_wmark() argument 243 u32 val = tegra->cur_freq * tegra->devfreq->profile->polling_ms; in tegra_devfreq_update_wmark() 252 static void actmon_isr_device(struct tegra_devfreq *tegra, in actmon_isr_device() argument [all …]
|
D | tegra20-devfreq.c | 40 struct tegra_devfreq *tegra = dev_get_drvdata(dev); in tegra_devfreq_target() local 41 struct devfreq *devfreq = tegra->devfreq; in tegra_devfreq_target() 53 err = clk_set_min_rate(tegra->emc_clock, rate); in tegra_devfreq_target() 57 err = clk_set_rate(tegra->emc_clock, 0); in tegra_devfreq_target() 64 clk_set_min_rate(tegra->emc_clock, devfreq->previous_freq); in tegra_devfreq_target() 72 struct tegra_devfreq *tegra = dev_get_drvdata(dev); in tegra_devfreq_get_dev_status() local 84 stat->busy_time = readl_relaxed(tegra->regs + MC_STAT_EMC_COUNT); in tegra_devfreq_get_dev_status() 85 stat->total_time = readl_relaxed(tegra->regs + MC_STAT_EMC_CLOCKS) / 8; in tegra_devfreq_get_dev_status() 86 stat->current_frequency = clk_get_rate(tegra->emc_clock); in tegra_devfreq_get_dev_status() 88 writel_relaxed(EMC_GATHER_CLEAR, tegra->regs + MC_STAT_CONTROL); in tegra_devfreq_get_dev_status() [all …]
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | ahci_tegra.c | 179 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra_ahci_handle_quirks() local 182 if (tegra->sata_aux_regs && !tegra->soc->supports_devslp) { in tegra_ahci_handle_quirks() 183 val = readl(tegra->sata_aux_regs + SATA_AUX_MISC_CNTL_1_0); in tegra_ahci_handle_quirks() 185 writel(val, tegra->sata_aux_regs + SATA_AUX_MISC_CNTL_1_0); in tegra_ahci_handle_quirks() 191 struct tegra_ahci_priv *tegra = hpriv->plat_data; in tegra124_ahci_init() local 203 writel(BIT(0), tegra->sata_regs + SCFG_OFFSET + T_SATA0_INDEX); in tegra124_ahci_init() 205 val = readl(tegra->sata_regs + in tegra124_ahci_init() 211 writel(val, tegra->sata_regs + SCFG_OFFSET + in tegra124_ahci_init() 214 val = readl(tegra->sata_regs + in tegra124_ahci_init() 220 writel(val, tegra->sata_regs + SCFG_OFFSET + in tegra124_ahci_init() [all …]
|
/kernel/linux/linux-5.10/drivers/clk/tegra/ |
D | clk-tegra124-emc.c | 90 struct tegra_clk_emc *tegra; in emc_recalc_rate() local 93 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_recalc_rate() 101 val = readl(tegra->clk_regs + CLK_SOURCE_EMC); in emc_recalc_rate() 114 struct tegra_clk_emc *tegra; in emc_determine_rate() local 119 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_determine_rate() 121 for (k = 0; k < tegra->num_timings; k++) { in emc_determine_rate() 122 if (tegra->timings[k].ram_code == ram_code) in emc_determine_rate() 126 for (t = k; t < tegra->num_timings; t++) { in emc_determine_rate() 127 if (tegra->timings[t].ram_code != ram_code) in emc_determine_rate() 132 timing = tegra->timings + i; in emc_determine_rate() [all …]
|
D | Makefile | 13 obj-y += clk-tegra-audio.o 14 obj-y += clk-tegra-periph.o 15 obj-y += clk-tegra-fixed.o 16 obj-y += clk-tegra-super-cclk.o 17 obj-y += clk-tegra-super-gen4.o
|
/kernel/linux/linux-5.10/drivers/soc/tegra/ |
D | regulators-tegra20.c | 33 static int tegra20_core_limit(struct tegra_regulator_coupler *tegra, in tegra20_core_limit() argument 41 if (tegra->core_min_uV > 0) in tegra20_core_limit() 42 return tegra->core_min_uV; in tegra20_core_limit() 59 tegra->core_min_uV = core_max_uV; in tegra20_core_limit() 61 pr_info("core minimum voltage limited to %duV\n", tegra->core_min_uV); in tegra20_core_limit() 63 return tegra->core_min_uV; in tegra20_core_limit() 87 static int tegra20_core_rtc_update(struct tegra_regulator_coupler *tegra, in tegra20_core_rtc_update() argument 113 core_min_uV = tegra20_core_limit(tegra, core_rdev); in tegra20_core_rtc_update() 201 static int tegra20_core_voltage_update(struct tegra_regulator_coupler *tegra, in tegra20_core_voltage_update() argument 212 return tegra20_core_rtc_update(tegra, core_rdev, rtc_rdev, in tegra20_core_voltage_update() [all …]
|
D | regulators-tegra30.c | 34 static int tegra30_core_limit(struct tegra_regulator_coupler *tegra, in tegra30_core_limit() argument 42 if (tegra->core_min_uV > 0) in tegra30_core_limit() 43 return tegra->core_min_uV; in tegra30_core_limit() 60 tegra->core_min_uV = core_max_uV; in tegra30_core_limit() 62 pr_info("core minimum voltage limited to %duV\n", tegra->core_min_uV); in tegra30_core_limit() 64 return tegra->core_min_uV; in tegra30_core_limit() 96 static int tegra30_voltage_update(struct tegra_regulator_coupler *tegra, in tegra30_voltage_update() argument 142 core_min_uV = tegra30_core_limit(tegra, core_rdev); in tegra30_voltage_update() 257 struct tegra_regulator_coupler *tegra = to_tegra_coupler(coupler); in tegra30_regulator_balance_voltage() local 258 struct regulator_dev *core_rdev = tegra->core_rdev; in tegra30_regulator_balance_voltage() [all …]
|
/kernel/linux/linux-5.10/sound/soc/tegra/ |
D | Makefile | 3 snd-soc-tegra-pcm-objs := tegra_pcm.o 4 snd-soc-tegra-utils-objs += tegra_asoc_utils.o 17 obj-$(CONFIG_SND_SOC_TEGRA) += snd-soc-tegra-pcm.o 18 obj-$(CONFIG_SND_SOC_TEGRA) += snd-soc-tegra-utils.o 32 snd-soc-tegra-rt5640-objs := tegra_rt5640.o 33 snd-soc-tegra-rt5677-objs := tegra_rt5677.o 34 snd-soc-tegra-wm8753-objs := tegra_wm8753.o 35 snd-soc-tegra-wm8903-objs := tegra_wm8903.o 36 snd-soc-tegra-wm9712-objs := tegra_wm9712.o 37 snd-soc-tegra-trimslice-objs := trimslice.o [all …]
|
/kernel/linux/linux-5.10/drivers/thermal/tegra/ |
D | tegra-bpmp-thermal.c | 20 struct tegra_bpmp_thermal *tegra; member 52 err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_get_temp() 79 return tegra_bpmp_transfer(zone->tegra->bpmp, &msg); in tegra_bpmp_thermal_set_trips() 96 struct tegra_bpmp_thermal *tegra = data; in bpmp_mrq_thermal() local 102 dev_err(tegra->dev, "%s: invalid request type: %d\n", in bpmp_mrq_thermal() 108 for (i = 0; i < tegra->num_zones; ++i) { in bpmp_mrq_thermal() 109 if (tegra->zones[i]->idx != req->host_trip_reached.zone) in bpmp_mrq_thermal() 112 schedule_work(&tegra->zones[i]->tz_device_update_work); in bpmp_mrq_thermal() 117 dev_err(tegra->dev, "%s: invalid thermal zone: %d\n", __func__, in bpmp_mrq_thermal() 157 struct tegra_bpmp_thermal *tegra; in tegra_bpmp_thermal_probe() local [all …]
|
D | Makefile | 2 obj-$(CONFIG_TEGRA_SOCTHERM) += tegra-soctherm.o 3 obj-$(CONFIG_TEGRA_BPMP_THERMAL) += tegra-bpmp-thermal.o 5 tegra-soctherm-y := soctherm.o soctherm-fuse.o 6 tegra-soctherm-$(CONFIG_ARCH_TEGRA_124_SOC) += tegra124-soctherm.o 7 tegra-soctherm-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra132-soctherm.o 8 tegra-soctherm-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-soctherm.o
|
D | soctherm.c | 385 static void enable_tsensor(struct tegra_soctherm *tegra, unsigned int i) in enable_tsensor() argument 387 const struct tegra_tsensor *sensor = &tegra->soc->tsensors[i]; in enable_tsensor() 388 void __iomem *base = tegra->regs + sensor->base; in enable_tsensor() 400 writel(tegra->calib[i], base + SENSOR_CONFIG2); in enable_tsensor() 1492 struct tegra_soctherm *tegra = platform_get_drvdata(pdev); in soctherm_debug_init() local 1497 tegra->debugfs_dir = root; in soctherm_debug_init() 1507 struct tegra_soctherm *tegra = platform_get_drvdata(pdev); in soctherm_clk_enable() local 1510 if (!tegra->clock_soctherm || !tegra->clock_tsensor) in soctherm_clk_enable() 1513 reset_control_assert(tegra->reset); in soctherm_clk_enable() 1516 err = clk_prepare_enable(tegra->clock_soctherm); in soctherm_clk_enable() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
D | drm.c | 65 struct tegra_drm *tegra = drm->dev_private; in tegra_atomic_commit_tail() local 67 if (tegra->hub) { in tegra_atomic_commit_tail() 447 struct tegra_drm *tegra = drm->dev_private; in tegra_open_channel() local 459 list_for_each_entry(client, &tegra->clients, list) in tegra_open_channel() 825 struct tegra_drm *tegra = drm->dev_private; in tegra_debugfs_iova() local 828 if (tegra->domain) { in tegra_debugfs_iova() 829 mutex_lock(&tegra->mm_lock); in tegra_debugfs_iova() 830 drm_mm_print(&tegra->mm, &p); in tegra_debugfs_iova() 831 mutex_unlock(&tegra->mm_lock); in tegra_debugfs_iova() 883 int tegra_drm_register_client(struct tegra_drm *tegra, in tegra_drm_register_client() argument [all …]
|
D | plane.c | 219 struct tegra_dc_state *tegra; in tegra_plane_state_add() local 233 tegra = to_dc_state(crtc_state); in tegra_plane_state_add() 235 tegra->planes |= WIN_A_ACT_REQ << plane->index; in tegra_plane_state_add() 426 static int tegra_plane_setup_opacity(struct tegra_plane *tegra, in tegra_plane_setup_opacity() argument 453 static int tegra_plane_check_transparency(struct tegra_plane *tegra, in tegra_plane_check_transparency() argument 459 old = drm_atomic_get_old_plane_state(state->base.state, &tegra->base); in tegra_plane_check_transparency() 467 drm_for_each_plane(plane, tegra->base.dev) { in tegra_plane_check_transparency() 471 if (p == tegra || p->dc != tegra->dc) in tegra_plane_check_transparency() 503 static void tegra_plane_update_transparency(struct tegra_plane *tegra, in tegra_plane_update_transparency() argument 515 if (p == tegra || p->dc != tegra->dc) in tegra_plane_update_transparency() [all …]
|
D | gem.c | 175 static int tegra_bo_iommu_map(struct tegra_drm *tegra, struct tegra_bo *bo) in tegra_bo_iommu_map() argument 187 mutex_lock(&tegra->mm_lock); in tegra_bo_iommu_map() 189 err = drm_mm_insert_node_generic(&tegra->mm, in tegra_bo_iommu_map() 192 dev_err(tegra->drm->dev, "out of I/O virtual memory: %d\n", in tegra_bo_iommu_map() 199 bo->size = iommu_map_sgtable(tegra->domain, bo->iova, bo->sgt, prot); in tegra_bo_iommu_map() 201 dev_err(tegra->drm->dev, "failed to map buffer\n"); in tegra_bo_iommu_map() 206 mutex_unlock(&tegra->mm_lock); in tegra_bo_iommu_map() 213 mutex_unlock(&tegra->mm_lock); in tegra_bo_iommu_map() 218 static int tegra_bo_iommu_unmap(struct tegra_drm *tegra, struct tegra_bo *bo) in tegra_bo_iommu_unmap() argument 223 mutex_lock(&tegra->mm_lock); in tegra_bo_iommu_unmap() [all …]
|
D | fb.c | 208 struct tegra_drm *tegra = helper->dev->dev_private; in tegra_fbdev_probe() local 224 tegra->pitch_align); in tegra_fbdev_probe() 362 struct tegra_drm *tegra = drm->dev_private; in tegra_drm_fb_prepare() local 364 tegra->fbdev = tegra_fbdev_create(drm); in tegra_drm_fb_prepare() 365 if (IS_ERR(tegra->fbdev)) in tegra_drm_fb_prepare() 366 return PTR_ERR(tegra->fbdev); in tegra_drm_fb_prepare() 375 struct tegra_drm *tegra = drm->dev_private; in tegra_drm_fb_free() local 377 tegra_fbdev_free(tegra->fbdev); in tegra_drm_fb_free() 384 struct tegra_drm *tegra = drm->dev_private; in tegra_drm_fb_init() local 387 err = tegra_fbdev_init(tegra->fbdev, 32, drm->mode_config.num_crtc, in tegra_drm_fb_init() [all …]
|
D | drm.h | 100 int tegra_drm_register_client(struct tegra_drm *tegra, 102 int tegra_drm_unregister_client(struct tegra_drm *tegra, 107 int tegra_drm_init(struct tegra_drm *tegra, struct drm_device *drm); 108 int tegra_drm_exit(struct tegra_drm *tegra); 110 void *tegra_drm_alloc(struct tegra_drm *tegra, size_t size, dma_addr_t *iova); 111 void tegra_drm_free(struct tegra_drm *tegra, size_t size, void *virt,
|
D | Makefile | 4 tegra-drm-y := \ 25 tegra-drm-y += trace.o 27 obj-$(CONFIG_DRM_TEGRA) += tegra-drm.o
|
/kernel/linux/linux-5.10/drivers/firmware/tegra/ |
D | Makefile | 2 tegra-bpmp-y = bpmp.o 3 tegra-bpmp-$(CONFIG_ARCH_TEGRA_210_SOC) += bpmp-tegra210.o 4 tegra-bpmp-$(CONFIG_ARCH_TEGRA_186_SOC) += bpmp-tegra186.o 5 tegra-bpmp-$(CONFIG_ARCH_TEGRA_194_SOC) += bpmp-tegra186.o 6 tegra-bpmp-$(CONFIG_ARCH_TEGRA_234_SOC) += bpmp-tegra186.o 7 tegra-bpmp-$(CONFIG_DEBUG_FS) += bpmp-debugfs.o 8 obj-$(CONFIG_TEGRA_BPMP) += tegra-bpmp.o
|
/kernel/linux/linux-5.10/drivers/memory/tegra/ |
D | Makefile | 2 tegra-mc-y := mc.o 4 tegra-mc-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20.o 5 tegra-mc-$(CONFIG_ARCH_TEGRA_3x_SOC) += tegra30.o 6 tegra-mc-$(CONFIG_ARCH_TEGRA_114_SOC) += tegra114.o 7 tegra-mc-$(CONFIG_ARCH_TEGRA_124_SOC) += tegra124.o 8 tegra-mc-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra124.o 9 tegra-mc-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o 11 obj-$(CONFIG_TEGRA_MC) += tegra-mc.o
|
/kernel/linux/linux-5.10/drivers/phy/tegra/ |
D | Makefile | 2 obj-$(CONFIG_PHY_TEGRA_XUSB) += phy-tegra-xusb.o 4 phy-tegra-xusb-y += xusb.o 5 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_124_SOC) += xusb-tegra124.o 6 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_132_SOC) += xusb-tegra124.o 7 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_210_SOC) += xusb-tegra210.o 8 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_186_SOC) += xusb-tegra186.o 9 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_194_SOC) += xusb-tegra186.o
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/ |
D | nvidia,tegra-regulators-coupling.txt | 24 - nvidia,tegra-core-regulator: Boolean property that designates regulator 26 - nvidia,tegra-rtc-regulator: Boolean property that designates regulator 28 - nvidia,tegra-cpu-regulator: Boolean property that designates regulator 42 nvidia,tegra-core-regulator; 52 nvidia,tegra-rtc-regulator; 62 nvidia,tegra-cpu-regulator;
|
/kernel/linux/linux-5.10/drivers/staging/media/tegra-video/ |
D | Makefile | 2 tegra-video-objs := \ 7 tegra-video-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o 8 obj-$(CONFIG_VIDEO_TEGRA) += tegra-video.o
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/ |
D | nvidia,tegra-audio-wm8753.txt | 4 - compatible : "nvidia,tegra-audio-wm8753" 26 compatible = "nvidia,tegra-audio-wm8753-whistler", 27 "nvidia,tegra-audio-wm8753" 28 nvidia,model = "tegra-wm8753-harmony";
|