Lines Matching refs:acp_base
26 static int acp6x_power_on(void __iomem *acp_base) in acp6x_power_on() argument
31 val = acp6x_readl(acp_base + ACP_PGFSM_STATUS); in acp6x_power_on()
37 acp6x_writel(ACP_PGFSM_CNTL_POWER_ON_MASK, acp_base + ACP_PGFSM_CONTROL); in acp6x_power_on()
40 val = acp6x_readl(acp_base + ACP_PGFSM_STATUS); in acp6x_power_on()
48 static int acp6x_reset(void __iomem *acp_base) in acp6x_reset() argument
53 acp6x_writel(1, acp_base + ACP_SOFT_RESET); in acp6x_reset()
56 val = acp6x_readl(acp_base + ACP_SOFT_RESET); in acp6x_reset()
61 acp6x_writel(0, acp_base + ACP_SOFT_RESET); in acp6x_reset()
64 val = acp6x_readl(acp_base + ACP_SOFT_RESET); in acp6x_reset()
72 static void acp6x_enable_interrupts(void __iomem *acp_base) in acp6x_enable_interrupts() argument
74 acp6x_writel(0x01, acp_base + ACP_EXTERNAL_INTR_ENB); in acp6x_enable_interrupts()
77 static void acp6x_disable_interrupts(void __iomem *acp_base) in acp6x_disable_interrupts() argument
79 acp6x_writel(ACP_EXT_INTR_STAT_CLEAR_MASK, acp_base + in acp6x_disable_interrupts()
81 acp6x_writel(0x00, acp_base + ACP_EXTERNAL_INTR_CNTL); in acp6x_disable_interrupts()
82 acp6x_writel(0x00, acp_base + ACP_EXTERNAL_INTR_ENB); in acp6x_disable_interrupts()
85 static int acp6x_init(void __iomem *acp_base) in acp6x_init() argument
90 ret = acp6x_power_on(acp_base); in acp6x_init()
95 acp6x_writel(0x01, acp_base + ACP_CONTROL); in acp6x_init()
97 ret = acp6x_reset(acp_base); in acp6x_init()
102 acp6x_writel(0x03, acp_base + ACP_CLKMUX_SEL); in acp6x_init()
103 acp6x_enable_interrupts(acp_base); in acp6x_init()
107 static int acp6x_deinit(void __iomem *acp_base) in acp6x_deinit() argument
111 acp6x_disable_interrupts(acp_base); in acp6x_deinit()
113 ret = acp6x_reset(acp_base); in acp6x_deinit()
118 acp6x_writel(0x00, acp_base + ACP_CLKMUX_SEL); in acp6x_deinit()
119 acp6x_writel(0x00, acp_base + ACP_CONTROL); in acp6x_deinit()