Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/clk/rockchip/
Dclk-inverter.c27 struct rockchip_inv_clock *inv_clock = to_inv_clock(hw); in rockchip_inv_get_phase() local
30 val = readl(inv_clock->reg) >> inv_clock->shift; in rockchip_inv_get_phase()
37 struct rockchip_inv_clock *inv_clock = to_inv_clock(hw); in rockchip_inv_set_phase() local
48 if (inv_clock->flags & ROCKCHIP_INVERTER_HIWORD_MASK) { in rockchip_inv_set_phase()
49 writel(HIWORD_UPDATE(val, INVERTER_MASK, inv_clock->shift), in rockchip_inv_set_phase()
50 inv_clock->reg); in rockchip_inv_set_phase()
55 spin_lock_irqsave(inv_clock->lock, flags); in rockchip_inv_set_phase()
57 reg = readl(inv_clock->reg); in rockchip_inv_set_phase()
58 reg &= ~BIT(inv_clock->shift); in rockchip_inv_set_phase()
60 writel(reg, inv_clock->reg); in rockchip_inv_set_phase()
[all …]