Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/clk/rockchip/
Dsoftrst.c26 struct rockchip_softrst *softrst = container_of(rcdev, in rockchip_softrst_assert() local
31 if (softrst->lut) in rockchip_softrst_assert()
32 id = softrst->lut[id]; in rockchip_softrst_assert()
34 bank = id / softrst->num_per_reg; in rockchip_softrst_assert()
35 offset = id % softrst->num_per_reg; in rockchip_softrst_assert()
37 if (softrst->flags & ROCKCHIP_SOFTRST_HIWORD_MASK) { in rockchip_softrst_assert()
39 softrst->reg_base + (bank * 4)); in rockchip_softrst_assert()
44 spin_lock_irqsave(&softrst->lock, flags); in rockchip_softrst_assert()
46 reg = readl(softrst->reg_base + (bank * 4)); in rockchip_softrst_assert()
47 writel(reg | BIT(offset), softrst->reg_base + (bank * 4)); in rockchip_softrst_assert()
[all …]
DMakefile16 clk-rockchip-$(CONFIG_RESET_CONTROLLER) += softrst.o
/Linux-v6.6/drivers/misc/genwqe/
Dcard_utils.c668 u64 softrst; in genwqe_card_reset() local
689 softrst = __genwqe_readq(cd, IO_SLC_CFGREG_SOFTRESET) & 0x3cull; in genwqe_card_reset()
690 __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, softrst | 0x2ull); in genwqe_card_reset()