Searched refs:softrst (Results 1 – 3 of 3) sorted by relevance
25 struct rockchip_softrst *softrst = container_of(rcdev, in rockchip_softrst_assert() local28 int bank = id / softrst->num_per_reg; in rockchip_softrst_assert()29 int offset = id % softrst->num_per_reg; in rockchip_softrst_assert()31 if (softrst->flags & ROCKCHIP_SOFTRST_HIWORD_MASK) { in rockchip_softrst_assert()33 softrst->reg_base + (bank * 4)); in rockchip_softrst_assert()38 spin_lock_irqsave(&softrst->lock, flags); in rockchip_softrst_assert()40 reg = readl(softrst->reg_base + (bank * 4)); in rockchip_softrst_assert()41 writel(reg | BIT(offset), softrst->reg_base + (bank * 4)); in rockchip_softrst_assert()43 spin_unlock_irqrestore(&softrst->lock, flags); in rockchip_softrst_assert()52 struct rockchip_softrst *softrst = container_of(rcdev, in rockchip_softrst_deassert() local[all …]
16 clk-rockchip-$(CONFIG_RESET_CONTROLLER) += softrst.o
668 u64 softrst; in genwqe_card_reset() local689 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()