forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gp102.c
....@@ -23,7 +23,7 @@
2323 */
2424 #include "priv.h"
2525
26
-static void
26
+void
2727 gp102_pmu_reset(struct nvkm_pmu *pmu)
2828 {
2929 struct nvkm_device *device = pmu->subdev.device;
....@@ -39,12 +39,19 @@
3939
4040 static const struct nvkm_pmu_func
4141 gp102_pmu = {
42
+ .flcn = &gm200_pmu_flcn,
4243 .enabled = gp102_pmu_enabled,
4344 .reset = gp102_pmu_reset,
45
+};
46
+
47
+static const struct nvkm_pmu_fwif
48
+gp102_pmu_fwif[] = {
49
+ { -1, gm200_pmu_nofw, &gp102_pmu },
50
+ {}
4451 };
4552
4653 int
4754 gp102_pmu_new(struct nvkm_device *device, int index, struct nvkm_pmu **ppmu)
4855 {
49
- return nvkm_pmu_new_(&gp102_pmu, device, index, ppmu);
56
+ return nvkm_pmu_new_(gp102_pmu_fwif, device, index, ppmu);
5057 }