1 /* SPDX-License-Identifier: MIT */
4 #define nv50_clk(p) container_of((p), struct nv50_clk, base)
7 #include <subdev/bus/hwsq.h>
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
;
20 struct nv50_clk_hwsq hwsq
;
23 int nv50_clk_new_(const struct nvkm_clk_func
*, struct nvkm_device
*, int,
24 bool, struct nvkm_clk
**);
25 int nv50_clk_read(struct nvkm_clk
*, enum nv_clk_src
);
26 int nv50_clk_calc(struct nvkm_clk
*, struct nvkm_cstate
*);
27 int nv50_clk_prog(struct nvkm_clk
*);
28 void nv50_clk_tidy(struct nvkm_clk
*);