Lines Matching refs:clkctrl_addr
121 static inline void wait_for_clk_enable(u32 *clkctrl_addr) in wait_for_clk_enable() argument
128 clkctrl = readl(clkctrl_addr); in wait_for_clk_enable()
133 clkctrl_addr, clkctrl); in wait_for_clk_enable()
139 static inline void enable_clock_module(u32 *const clkctrl_addr, u32 enable_mode, in enable_clock_module() argument
142 clrsetbits_le32(clkctrl_addr, MODULE_CLKCTRL_MODULEMODE_MASK, in enable_clock_module()
144 debug("Enable clock module - %p\n", clkctrl_addr); in enable_clock_module()
146 wait_for_clk_enable(clkctrl_addr); in enable_clock_module()
149 static inline void wait_for_clk_disable(u32 *clkctrl_addr) in wait_for_clk_disable() argument
155 clkctrl = readl(clkctrl_addr); in wait_for_clk_disable()
160 clkctrl_addr, clkctrl); in wait_for_clk_disable()
165 static inline void disable_clock_module(u32 *const clkctrl_addr, in disable_clock_module() argument
168 clrsetbits_le32(clkctrl_addr, MODULE_CLKCTRL_MODULEMODE_MASK, in disable_clock_module()
171 debug("Disable clock module - %p\n", clkctrl_addr); in disable_clock_module()
173 wait_for_clk_disable(clkctrl_addr); in disable_clock_module()