]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv50.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / drivers / gpu / drm / nouveau / nvkm / subdev / clk / nv50.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
6625f55c
BS
2#ifndef __NV50_CLK_H__
3#define __NV50_CLK_H__
4#define nv50_clk(p) container_of((p), struct nv50_clk, base)
5#include "priv.h"
6
7c856522 7#include <subdev/bus/hwsq.h>
7c856522 8
f3867f43 9struct nv50_clk_hwsq {
7c856522
BS
10 struct hwsq base;
11 struct hwsq_reg r_fifo;
12 struct hwsq_reg r_spll[2];
13 struct hwsq_reg r_nvpll[2];
14 struct hwsq_reg r_divs;
15 struct hwsq_reg r_mast;
16};
17
3eca809b 18struct nv50_clk {
7632b30e 19 struct nvkm_clk base;
f3867f43 20 struct nv50_clk_hwsq hwsq;
7c856522
BS
21};
22
6625f55c
BS
23int nv50_clk_new_(const struct nvkm_clk_func *, struct nvkm_device *, int,
24 bool, struct nvkm_clk **);
25int nv50_clk_read(struct nvkm_clk *, enum nv_clk_src);
26int nv50_clk_calc(struct nvkm_clk *, struct nvkm_cstate *);
27int nv50_clk_prog(struct nvkm_clk *);
28void nv50_clk_tidy(struct nvkm_clk *);
7c856522 29#endif