summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.h
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2016-02-12 17:44:21 +0900
committerBen Skeggs <bskeggs@redhat.com>2016-03-14 10:13:50 +1000
commit4158c9c2bf13154b3ad69f377ef6584ac598f25a (patch)
tree5d5ebc991d384bb67a9844d51a106a32a46bae16 /drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.h
parent0f9520931eff906dab9c75a665fa0d4e59238166 (diff)
drm/nouveau/volt/gk20a: split constructor
Split the constructor function so we can reuse the same logic in other chips. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.h')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.h b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.h
index e1c62d16e850..0fa3b502bcf8 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.h
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.h
@@ -37,6 +37,10 @@ struct gk20a_volt {
struct regulator *vdd;
};
+int _gk20a_volt_ctor(struct nvkm_device *device, int index,
+ const struct cvb_coef *coefs, int nb_coefs,
+ struct gk20a_volt *volt);
+
int gk20a_volt_calc_voltage(const struct cvb_coef *coef, int speedo);
int gk20a_volt_vid_get(struct nvkm_volt *volt);
int gk20a_volt_vid_set(struct nvkm_volt *volt, u8 vid);