Lines Matching refs:acp_base
21 static int rpl_power_on(void __iomem *acp_base) in rpl_power_on() argument
26 val = rpl_acp_readl(acp_base + ACP_PGFSM_STATUS); in rpl_power_on()
32 rpl_acp_writel(ACP_PGFSM_CNTL_POWER_ON_MASK, acp_base + ACP_PGFSM_CONTROL); in rpl_power_on()
35 val = rpl_acp_readl(acp_base + ACP_PGFSM_STATUS); in rpl_power_on()
43 static int rpl_reset(void __iomem *acp_base) in rpl_reset() argument
48 rpl_acp_writel(1, acp_base + ACP_SOFT_RESET); in rpl_reset()
51 val = rpl_acp_readl(acp_base + ACP_SOFT_RESET); in rpl_reset()
56 rpl_acp_writel(0, acp_base + ACP_SOFT_RESET); in rpl_reset()
59 val = rpl_acp_readl(acp_base + ACP_SOFT_RESET); in rpl_reset()
67 static int rpl_init(void __iomem *acp_base) in rpl_init() argument
72 ret = rpl_power_on(acp_base); in rpl_init()
77 rpl_acp_writel(0x01, acp_base + ACP_CONTROL); in rpl_init()
79 ret = rpl_reset(acp_base); in rpl_init()
84 rpl_acp_writel(0x03, acp_base + ACP_CLKMUX_SEL); in rpl_init()
88 static int rpl_deinit(void __iomem *acp_base) in rpl_deinit() argument
93 ret = rpl_reset(acp_base); in rpl_deinit()
98 rpl_acp_writel(0x00, acp_base + ACP_CLKMUX_SEL); in rpl_deinit()
99 rpl_acp_writel(0x00, acp_base + ACP_CONTROL); in rpl_deinit()