Home
last modified time | relevance | path

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

/drivers/clk/rockchip/
Dsoftrst.c34 struct rockchip_softrst *softrst = container_of(rcdev, in rockchip_softrst_assert() local
37 int bank = id / softrst->num_per_reg; in rockchip_softrst_assert()
38 int offset = id % softrst->num_per_reg; in rockchip_softrst_assert()
40 if (softrst->flags & ROCKCHIP_SOFTRST_HIWORD_MASK) { in rockchip_softrst_assert()
42 softrst->reg_base + (bank * 4)); in rockchip_softrst_assert()
47 spin_lock_irqsave(&softrst->lock, flags); in rockchip_softrst_assert()
49 reg = readl(softrst->reg_base + (bank * 4)); in rockchip_softrst_assert()
50 writel(reg | BIT(offset), softrst->reg_base + (bank * 4)); in rockchip_softrst_assert()
52 spin_unlock_irqrestore(&softrst->lock, flags); in rockchip_softrst_assert()
61 struct rockchip_softrst *softrst = container_of(rcdev, in rockchip_softrst_deassert() local
[all …]
DMakefile11 obj-$(CONFIG_RESET_CONTROLLER) += softrst.o
/drivers/misc/genwqe/
Dcard_utils.c693 u64 softrst; in genwqe_card_reset() local
714 softrst = __genwqe_readq(cd, IO_SLC_CFGREG_SOFTRESET) & 0x3cull; in genwqe_card_reset()
715 __genwqe_writeq(cd, IO_SLC_CFGREG_SOFTRESET, softrst | 0x2ull); in genwqe_card_reset()