/linux/drivers/devfreq/ |
H A D | tegra30-devfreq.c | 218 static u32 actmon_readl(struct tegra_devfreq *tegra, u32 offset) in actmon_readl() argument 220 return readl_relaxed(tegra->regs + offset); in actmon_readl() 223 static void actmon_writel(struct tegra_devfreq *tegra, u32 val, u32 offset) in actmon_writel() argument 225 writel_relaxed(val, tegra->regs + offset); in actmon_writel() 251 static void tegra_devfreq_update_avg_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_avg_wmark() argument 254 u32 avg_band_freq = tegra->max_freq * ACTMON_DEFAULT_AVG_BAND / KHZ; in tegra_devfreq_update_avg_wmark() 255 u32 band = avg_band_freq * tegra->devfreq->profile->polling_ms; in tegra_devfreq_update_avg_wmark() 265 static void tegra_devfreq_update_wmark(struct tegra_devfreq *tegra, in tegra_devfreq_update_wmark() argument 268 u32 val = tegra->cur_freq * tegra->devfreq->profile->polling_ms; in tegra_devfreq_update_wmark() 277 static void actmon_isr_device(struct tegra_devfreq *tegra, in actmon_isr_device() argument [all …]
|
/linux/drivers/clk/tegra/ |
H A D | clk-tegra124-emc.c | 94 struct tegra_clk_emc *tegra; in emc_recalc_rate() local 97 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_recalc_rate() 105 val = readl(tegra->clk_regs + CLK_SOURCE_EMC); in emc_recalc_rate() 118 struct tegra_clk_emc *tegra; in emc_determine_rate() local 123 tegra = container_of(hw, struct tegra_clk_emc, hw); in emc_determine_rate() 125 for (k = 0; k < tegra->num_timings; k++) { in emc_determine_rate() 126 if (tegra->timings[k].ram_code == ram_code) in emc_determine_rate() 130 for (t = k; t < tegra->num_timings; t++) { in emc_determine_rate() 131 if (tegra->timings[t].ram_code != ram_code) in emc_determine_rate() 136 timing = tegra->timings + i; in emc_determine_rate() [all …]
|
H A D | Makefile | 14 obj-y += clk-tegra-audio.o 15 obj-y += clk-tegra-periph.o 16 obj-y += clk-tegra-fixed.o 17 obj-y += clk-tegra-super-cclk.o 18 obj-y += clk-tegra-super-gen4.o
|
/linux/drivers/clocksource/ |
H A D | timer-tegra186.c | 108 static struct tegra186_tmr *tegra186_tmr_create(struct tegra186_timer *tegra, in tegra186_tmr_create() argument 114 tmr = devm_kzalloc(tegra->dev, sizeof(*tmr), GFP_KERNEL); in tegra186_tmr_create() 118 tmr->parent = tegra; in tegra186_tmr_create() 119 tmr->regs = tegra->regs + offset; in tegra186_tmr_create() 143 struct tegra186_timer *tegra = wdt->tmr->parent; in tegra186_wdt_enable() local 148 writel(value, tegra->regs + TKEIE(wdt->tmr->hwirq)); in tegra186_wdt_enable() 245 static struct tegra186_wdt *tegra186_wdt_create(struct tegra186_timer *tegra, in tegra186_wdt_create() argument 253 offset += tegra->soc->num_timers * 0x10000 + index * 0x10000; in tegra186_wdt_create() 255 wdt = devm_kzalloc(tegra->dev, sizeof(*wdt), GFP_KERNEL); in tegra186_wdt_create() 259 wdt->regs = tegra->regs + offset; in tegra186_wdt_create() [all …]
|
/linux/drivers/soc/tegra/ |
H A D | regulators-tegra20.c | 44 static int tegra20_core_limit(struct tegra_regulator_coupler *tegra, in tegra20_core_limit() argument 62 if (tegra_pmc_core_domain_state_synced() && !tegra->sys_reboot_mode) { in tegra20_core_limit() 67 if (tegra->core_min_uV > 0) in tegra20_core_limit() 68 return tegra->core_min_uV; in tegra20_core_limit() 85 tegra->core_min_uV = core_max_uV; in tegra20_core_limit() 87 pr_info("core voltage initialized to %duV\n", tegra->core_min_uV); in tegra20_core_limit() 89 return tegra->core_min_uV; in tegra20_core_limit() 135 static int tegra20_core_rtc_update(struct tegra_regulator_coupler *tegra, in tegra20_core_rtc_update() argument 161 core_min_uV = tegra20_core_limit(tegra, core_rdev); in tegra20_core_rtc_update() 175 if (tegra->sys_suspend_mode) in tegra20_core_rtc_update() [all …]
|
H A D | regulators-tegra30.c | 43 static int tegra30_core_limit(struct tegra_regulator_coupler *tegra, in tegra30_core_limit() argument 61 if (tegra_pmc_core_domain_state_synced() && !tegra->sys_reboot_mode) { in tegra30_core_limit() 66 if (tegra->core_min_uV > 0) in tegra30_core_limit() 67 return tegra->core_min_uV; in tegra30_core_limit() 84 tegra->core_min_uV = core_max_uV; in tegra30_core_limit() 86 pr_info("core voltage initialized to %duV\n", tegra->core_min_uV); in tegra30_core_limit() 88 return tegra->core_min_uV; in tegra30_core_limit() 166 static int tegra30_voltage_update(struct tegra_regulator_coupler *tegra, in tegra30_voltage_update() argument 212 core_min_uV = tegra30_core_limit(tegra, core_rdev); in tegra30_voltage_update() 222 if (tegra->sys_suspend_mode) in tegra30_voltage_update() [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | drm.c | 77 struct tegra_drm *tegra = drm->dev_private; in tegra_atomic_commit_tail() local 79 if (tegra->hub) { in tegra_atomic_commit_tail() 461 struct tegra_drm *tegra = drm->dev_private; in tegra_open_channel() local 473 list_for_each_entry(client, &tegra->clients, list) in tegra_open_channel() 856 struct tegra_drm *tegra = drm->dev_private; in tegra_debugfs_iova() local 859 if (tegra->domain) { in tegra_debugfs_iova() 860 mutex_lock(&tegra->mm_lock); in tegra_debugfs_iova() 861 drm_mm_print(&tegra->mm, &p); in tegra_debugfs_iova() 862 mutex_unlock(&tegra->mm_lock); in tegra_debugfs_iova() 908 int tegra_drm_register_client(struct tegra_drm *tegra, in tegra_drm_register_client() argument [all …]
|
H A D | plane.c | 301 struct tegra_dc_state *tegra; in tegra_plane_state_add() local 319 tegra = to_dc_state(crtc_state); in tegra_plane_state_add() 321 tegra->planes |= WIN_A_ACT_REQ << plane->index; in tegra_plane_state_add() 590 static int tegra_plane_setup_opacity(struct tegra_plane *tegra, in tegra_plane_setup_opacity() argument 617 static int tegra_plane_check_transparency(struct tegra_plane *tegra, in tegra_plane_check_transparency() argument 623 old = drm_atomic_get_old_plane_state(state->base.state, &tegra->base); in tegra_plane_check_transparency() 631 drm_for_each_plane(plane, tegra->base.dev) { in tegra_plane_check_transparency() 635 if (p == tegra || p->dc != tegra->dc) in tegra_plane_check_transparency() 667 static void tegra_plane_update_transparency(struct tegra_plane *tegra, in tegra_plane_update_transparency() argument 679 if (p == tegra || p->dc != tegra->dc) in tegra_plane_update_transparency() [all …]
|
H A D | gem.c | 235 static int tegra_bo_iommu_map(struct tegra_drm *tegra, struct tegra_bo *bo) in tegra_bo_iommu_map() argument 247 mutex_lock(&tegra->mm_lock); in tegra_bo_iommu_map() 249 err = drm_mm_insert_node_generic(&tegra->mm, in tegra_bo_iommu_map() 252 dev_err(tegra->drm->dev, "out of I/O virtual memory: %d\n", in tegra_bo_iommu_map() 259 bo->size = iommu_map_sgtable(tegra->domain, bo->iova, bo->sgt, prot); in tegra_bo_iommu_map() 261 dev_err(tegra->drm->dev, "failed to map buffer\n"); in tegra_bo_iommu_map() 266 mutex_unlock(&tegra->mm_lock); in tegra_bo_iommu_map() 273 mutex_unlock(&tegra->mm_lock); in tegra_bo_iommu_map() 278 static int tegra_bo_iommu_unmap(struct tegra_drm *tegra, struct tegra_bo *bo) in tegra_bo_iommu_unmap() argument 283 mutex_lock(&tegra->mm_lock); in tegra_bo_iommu_unmap() [all …]
|
H A D | Makefile | 4 tegra-drm-y := \ 30 tegra-drm-y += trace.o 32 tegra-drm-$(CONFIG_DRM_FBDEV_EMULATION) += fbdev.o 34 obj-$(CONFIG_DRM_TEGRA) += tegra-drm.o
|
H A D | drm.h | 58 static inline struct host1x *tegra_drm_to_host1x(struct tegra_drm *tegra) in tegra_drm_to_host1x() argument 60 return dev_get_drvdata(tegra->drm->dev->parent); in tegra_drm_to_host1x() 119 int tegra_drm_register_client(struct tegra_drm *tegra, 121 int tegra_drm_unregister_client(struct tegra_drm *tegra, 126 void *tegra_drm_alloc(struct tegra_drm *tegra, size_t size, dma_addr_t *iova); 127 void tegra_drm_free(struct tegra_drm *tegra, size_t size, void *virt,
|
H A D | dc.c | 628 struct tegra_plane *tegra = to_tegra_plane(plane); in tegra_plane_atomic_check() local 654 err = tegra_plane_setup_legacy_state(tegra, plane_state); in tegra_plane_atomic_check() 702 err = tegra_plane_state_add(tegra, new_plane_state); in tegra_plane_atomic_check() 871 struct tegra_plane *tegra = to_tegra_plane(plane); in tegra_cursor_atomic_check() local 896 err = tegra_plane_state_add(tegra, new_plane_state); in tegra_cursor_atomic_check() 908 struct tegra_drm *tegra = plane->dev->dev_private; in __tegra_cursor_atomic_update() local 985 value = (src.y1 & tegra->vmask) << 16 | (src.x1 & tegra->hmask); in __tegra_cursor_atomic_update() 988 value = (drm_rect_height(&src) & tegra->vmask) << 16 | in __tegra_cursor_atomic_update() 989 (drm_rect_width(&src) & tegra->hmask); in __tegra_cursor_atomic_update() 997 value = ((y & tegra->vmask) << 16) | (x & tegra->hmask); in __tegra_cursor_atomic_update() [all …]
|
H A D | hub.c | 431 struct tegra_shared_plane *tegra = to_tegra_shared_plane(plane); in tegra_shared_plane_atomic_check() local 476 err = tegra_plane_state_add(&tegra->base, new_plane_state); in tegra_shared_plane_atomic_check() 761 struct tegra_drm *tegra = drm->dev_private; in tegra_shared_plane_create() local 762 struct tegra_display_hub *hub = tegra->hub; in tegra_shared_plane_create() 784 possible_crtcs = BIT(tegra->num_crtcs) - 1; in tegra_shared_plane_create() 848 struct tegra_drm *tegra = drm->dev_private; in tegra_display_hub_atomic_check() local 854 if (!tegra->hub) in tegra_display_hub_atomic_check() 857 hub_state = tegra_display_hub_get_state(tegra->hub, state); in tegra_display_hub_atomic_check() 914 struct tegra_drm *tegra = drm->dev_private; in tegra_display_hub_atomic_commit() local 915 struct tegra_display_hub *hub = tegra->hub; in tegra_display_hub_atomic_commit() [all …]
|
H A D | nvdec.c | 156 struct tegra_drm *tegra = dev->dev_private; in nvdec_init() local 178 err = tegra_drm_register_client(tegra, drm); in nvdec_init() 204 struct tegra_drm *tegra = dev->dev_private; in nvdec_exit() local 211 err = tegra_drm_unregister_client(tegra, drm); in nvdec_exit() 227 tegra_drm_free(tegra, nvdec->falcon.firmware.size, in nvdec_exit() 247 struct tegra_drm *tegra = nvdec->client.drm; in nvdec_load_falcon_firmware() local 269 virt = tegra_drm_alloc(tegra, size, &iova); in nvdec_load_falcon_firmware() 304 tegra_drm_free(tegra, size, virt, iova); in nvdec_load_falcon_firmware()
|
H A D | vic.c | 122 struct tegra_drm *tegra = dev->dev_private; in vic_init() local 144 err = tegra_drm_register_client(tegra, drm); in vic_init() 170 struct tegra_drm *tegra = dev->dev_private; in vic_exit() local 177 err = tegra_drm_unregister_client(tegra, drm); in vic_exit() 193 tegra_drm_free(tegra, vic->falcon.firmware.size, in vic_exit() 213 struct tegra_drm *tegra = vic->client.drm; in vic_load_firmware() local 241 virt = tegra_drm_alloc(tegra, size, &iova); in vic_load_firmware() 299 tegra_drm_free(tegra, size, virt, iova); in vic_load_firmware()
|
/linux/drivers/memory/tegra/ |
H A 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 10 tegra-mc-$(CONFIG_ARCH_TEGRA_186_SOC) += tegra186.o 11 tegra-mc-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra186.o tegra194.o 12 tegra-mc-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra186.o tegra234.o [all …]
|
/linux/drivers/crypto/tegra/ |
H A D | Makefile | 4 tegra-se-objs := tegra-se-key.o tegra-se-main.o 6 tegra-se-y += tegra-se-aes.o 7 tegra-se-y += tegra-se-hash.o 9 obj-$(CONFIG_CRYPTO_DEV_TEGRA) += tegra-se.o
|
/linux/drivers/phy/tegra/ |
H A 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 10 phy-tegra-xusb-$(CONFIG_ARCH_TEGRA_234_SOC) += xusb-tegra186.o
|
/linux/drivers/firmware/tegra/ |
H A 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
|
/linux/drivers/thermal/tegra/ |
H A D | Makefile | 2 obj-$(CONFIG_TEGRA_SOCTHERM) += tegra-soctherm.o 3 obj-$(CONFIG_TEGRA_BPMP_THERMAL) += tegra-bpmp-thermal.o 6 tegra-soctherm-y := soctherm.o soctherm-fuse.o 7 tegra-soctherm-$(CONFIG_ARCH_TEGRA_124_SOC) += tegra124-soctherm.o 8 tegra-soctherm-$(CONFIG_ARCH_TEGRA_132_SOC) += tegra132-soctherm.o 9 tegra-soctherm-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210-soctherm.o
|
/linux/sound/soc/tegra/ |
H A D | Makefile | 3 snd-soc-tegra-pcm-y := tegra_pcm.o 4 snd-soc-tegra-utils-y += tegra_asoc_utils.o 24 obj-$(CONFIG_SND_SOC_TEGRA) += snd-soc-tegra-pcm.o 45 snd-soc-tegra-wm8903-y := tegra_wm8903.o 46 snd-soc-tegra-machine-y := tegra_asoc_machine.o 47 snd-soc-tegra-audio-graph-card-y := tegra_audio_graph_card.o 49 obj-$(CONFIG_SND_SOC_TEGRA_WM8903) += snd-soc-tegra-wm8903.o 50 obj-$(CONFIG_SND_SOC_TEGRA_MACHINE_DRV) += snd-soc-tegra-machine.o 51 obj-$(CONFIG_SND_SOC_TEGRA_AUDIO_GRAPH_CARD) += snd-soc-tegra-audio-graph-card.o
|
/linux/drivers/staging/media/tegra-video/ |
H A D | Makefile | 2 tegra-video-objs := \ 8 tegra-video-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra20.o 9 tegra-video-$(CONFIG_ARCH_TEGRA_210_SOC) += tegra210.o 10 obj-$(CONFIG_VIDEO_TEGRA) += tegra-video.o
|
/linux/Documentation/devicetree/bindings/regulator/ |
H A 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;
|
/linux/drivers/staging/nvec/ |
H A D | README | 13 [1] e.g. https://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=tree;f=arch/arm/mach-tegra/nvec;hb=a…
|
/linux/drivers/media/platform/nvidia/tegra-vde/ |
H A D | Makefile | 2 tegra-vde-y := vde.o iommu.o dmabuf-cache.o h264.o v4l2.o 3 obj-$(CONFIG_VIDEO_TEGRA_VDE) += tegra-vde.o
|