Lines Matching refs:acp5x_base

18 	void __iomem *acp5x_base;  member
24 static int acp5x_power_on(void __iomem *acp5x_base) in acp5x_power_on() argument
29 val = acp_readl(acp5x_base + ACP_PGFSM_STATUS); in acp5x_power_on()
37 acp5x_base + ACP_PGFSM_CONTROL); in acp5x_power_on()
40 val = acp_readl(acp5x_base + ACP_PGFSM_STATUS); in acp5x_power_on()
48 static int acp5x_reset(void __iomem *acp5x_base) in acp5x_reset() argument
53 acp_writel(1, acp5x_base + ACP_SOFT_RESET); in acp5x_reset()
56 val = acp_readl(acp5x_base + ACP_SOFT_RESET); in acp5x_reset()
61 acp_writel(0, acp5x_base + ACP_SOFT_RESET); in acp5x_reset()
64 val = acp_readl(acp5x_base + ACP_SOFT_RESET); in acp5x_reset()
72 static void acp5x_enable_interrupts(void __iomem *acp5x_base) in acp5x_enable_interrupts() argument
74 acp_writel(0x01, acp5x_base + ACP_EXTERNAL_INTR_ENB); in acp5x_enable_interrupts()
77 static void acp5x_disable_interrupts(void __iomem *acp5x_base) in acp5x_disable_interrupts() argument
79 acp_writel(ACP_EXT_INTR_STAT_CLEAR_MASK, acp5x_base + in acp5x_disable_interrupts()
81 acp_writel(0x00, acp5x_base + ACP_EXTERNAL_INTR_CNTL); in acp5x_disable_interrupts()
82 acp_writel(0x00, acp5x_base + ACP_EXTERNAL_INTR_ENB); in acp5x_disable_interrupts()
85 static int acp5x_init(void __iomem *acp5x_base) in acp5x_init() argument
90 ret = acp5x_power_on(acp5x_base); in acp5x_init()
95 acp_writel(0x01, acp5x_base + ACP_CONTROL); in acp5x_init()
97 ret = acp5x_reset(acp5x_base); in acp5x_init()
102 acp_writel(0x03, acp5x_base + ACP_CLKMUX_SEL); in acp5x_init()
103 acp5x_enable_interrupts(acp5x_base); in acp5x_init()
107 static int acp5x_deinit(void __iomem *acp5x_base) in acp5x_deinit() argument
111 acp5x_disable_interrupts(acp5x_base); in acp5x_deinit()
113 ret = acp5x_reset(acp5x_base); in acp5x_deinit()
118 acp_writel(0x00, acp5x_base + ACP_CLKMUX_SEL); in acp5x_deinit()
119 acp_writel(0x00, acp5x_base + ACP_CONTROL); in acp5x_deinit()
159 adata->acp5x_base = devm_ioremap(&pci->dev, addr, in snd_acp5x_probe()
161 if (!adata->acp5x_base) { in snd_acp5x_probe()
167 ret = acp5x_init(adata->acp5x_base); in snd_acp5x_probe()
171 val = acp_readl(adata->acp5x_base + ACP_PIN_CONFIG); in snd_acp5x_probe()
252 if (acp5x_deinit(adata->acp5x_base)) in snd_acp5x_probe()
268 ret = acp5x_deinit(adata->acp5x_base); in snd_acp5x_suspend()
283 ret = acp5x_init(adata->acp5x_base); in snd_acp5x_resume()
307 ret = acp5x_deinit(adata->acp5x_base); in snd_acp5x_remove()