Files
linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gp10b.h
Aaron Kling 6ca1701cec drm/nouveau: Support devfreq for Tegra
Using pmu counters for usage stats. This enables dynamic frequency
scaling on all of the currently supported Tegra gpus.

The register offsets are valid for gk20a, gm20b, gp10b, and gv11b. If
support is added for ga10b, this will need rearchitected.

Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
[fixed tab alignment in gk20a_devfreq_target()]
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250906-gk20a-devfreq-v2-1-0217f53ee355@gmail.com
2025-09-15 14:18:08 -04:00

19 lines
355 B
C

/* SPDX-License-Identifier: MIT */
#ifndef __NVKM_CLK_GP10B_H__
#define __NVKM_CLK_GP10B_H__
struct gp10b_clk {
/* currently applied parameters */
struct nvkm_clk base;
struct gk20a_devfreq *devfreq;
struct clk *clk;
u32 rate;
/* new parameters to apply */
u32 new_rate;
};
#define gp10b_clk(p) container_of((p), struct gp10b_clk, base)
#endif