Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 3 of 3) sorted by relevance

/u-boot/drivers/clk/imx/
A Dclk-pfd.c45 struct clk_pfd *pfd = in clk_pfd_recalc_rate() local
49 u8 frac = (readl(pfd->reg) >> (pfd->idx * 8)) & 0x3f; in clk_pfd_recalc_rate()
72 writel(0x3f << (pfd->idx * 8), pfd->reg + CLR); in clk_pfd_set_rate()
73 writel(frac << (pfd->idx * 8), pfd->reg + SET); in clk_pfd_set_rate()
86 struct clk_pfd *pfd; in imx_clk_pfd() local
90 pfd = kzalloc(sizeof(*pfd), GFP_KERNEL); in imx_clk_pfd()
91 if (!pfd) in imx_clk_pfd()
94 pfd->reg = reg; in imx_clk_pfd()
95 pfd->idx = idx; in imx_clk_pfd()
98 clk = &pfd->clk; in imx_clk_pfd()
[all …]
A DMakefile5 obj-$(CONFIG_$(SPL_TPL_)CLK_CCF) += clk-gate2.o clk-pllv3.o clk-pfd.o
/u-boot/drivers/pinctrl/mediatek/
A Dpinctrl-mtk-common.c84 struct mtk_pin_field *pfd) in mtk_hw_pin_field_lookup() argument
110 pfd->offset = c->s_addr + c->x_addrs * (bits / c->sz_reg); in mtk_hw_pin_field_lookup()
111 pfd->bitpos = bits % c->sz_reg; in mtk_hw_pin_field_lookup()
112 pfd->mask = (1 << c->x_bits) - 1; in mtk_hw_pin_field_lookup()
118 pfd->next = pfd->bitpos + c->x_bits > c->sz_reg ? c->x_addrs : 0; in mtk_hw_pin_field_lookup()
124 int field, struct mtk_pin_field *pfd) in mtk_hw_pin_field_get() argument
137 return mtk_hw_pin_field_lookup(dev, pin, rc, pfd); in mtk_hw_pin_field_get()

Completed in 5 milliseconds