Lines Matching full:scu
18 struct ast2500_scu *scu; member
24 struct ast2500_scu *scu = priv->scu; in ast2500_reset_deassert() local
30 clrbits_le32(&scu->sysreset_ctrl2 , BIT(reset_ctl->id - 32)); in ast2500_reset_deassert()
32 clrbits_le32(&scu->sysreset_ctrl1 , BIT(reset_ctl->id)); in ast2500_reset_deassert()
40 struct ast2500_scu *scu = priv->scu; in ast2500_reset_assert() local
57 ast_scu_unlock(priv->scu); in ast2500_reset_assert()
58 setbits_le32(&priv->scu->sysreset_ctrl1, in ast2500_reset_assert()
61 clrbits_le32(&priv->scu->sysreset_ctrl1, in ast2500_reset_assert()
63 ast_scu_lock(priv->scu); in ast2500_reset_assert()
69 setbits_le32(&scu->sysreset_ctrl2 , BIT(reset_ctl->id - 32)); in ast2500_reset_assert()
71 setbits_le32(&scu->sysreset_ctrl1 , BIT(reset_ctl->id)); in ast2500_reset_assert()
91 /* find SCU base address from clock device */ in ast2500_reset_probe()
99 priv->scu = devfdt_get_addr_ptr(clk_dev); in ast2500_reset_probe()
100 if (IS_ERR(priv->scu)) { in ast2500_reset_probe()
101 debug("%s(): can't get SCU\n", __func__); in ast2500_reset_probe()
102 return PTR_ERR(priv->scu); in ast2500_reset_probe()