20 #include <linux/errno.h>
30 static int am33xx_pwrdm_set_next_pwrst(
struct powerdomain *pwrdm,
u8 pwrst)
38 static int am33xx_pwrdm_read_next_pwrst(
struct powerdomain *pwrdm)
49 static int am33xx_pwrdm_read_pwrst(
struct powerdomain *pwrdm)
60 static int am33xx_pwrdm_read_prev_pwrst(
struct powerdomain *pwrdm)
71 static int am33xx_pwrdm_set_lowpwrstchange(
struct powerdomain *pwrdm)
79 static int am33xx_pwrdm_clear_all_prev_pwrst(
struct powerdomain *pwrdm)
87 static int am33xx_pwrdm_set_logic_retst(
struct powerdomain *pwrdm,
u8 pwrst)
101 static int am33xx_pwrdm_read_logic_pwrst(
struct powerdomain *pwrdm)
112 static int am33xx_pwrdm_read_logic_retst(
struct powerdomain *pwrdm)
127 static int am33xx_pwrdm_set_mem_onst(
struct powerdomain *pwrdm,
u8 bank,
142 static int am33xx_pwrdm_set_mem_retst(
struct powerdomain *pwrdm,
u8 bank,
157 static int am33xx_pwrdm_read_mem_pwrst(
struct powerdomain *pwrdm,
u8 bank)
172 static int am33xx_pwrdm_read_mem_retst(
struct powerdomain *pwrdm,
u8 bank)
187 static int am33xx_pwrdm_wait_transition(
struct powerdomain *pwrdm)
204 pr_err(
"powerdomain: %s: waited too long to complete transition\n",
209 pr_debug(
"powerdomain: completed transition in %d loops\n", c);
215 .pwrdm_set_next_pwrst = am33xx_pwrdm_set_next_pwrst,
216 .pwrdm_read_next_pwrst = am33xx_pwrdm_read_next_pwrst,
217 .pwrdm_read_pwrst = am33xx_pwrdm_read_pwrst,
218 .pwrdm_read_prev_pwrst = am33xx_pwrdm_read_prev_pwrst,
219 .pwrdm_set_logic_retst = am33xx_pwrdm_set_logic_retst,
220 .pwrdm_read_logic_pwrst = am33xx_pwrdm_read_logic_pwrst,
221 .pwrdm_read_logic_retst = am33xx_pwrdm_read_logic_retst,
222 .pwrdm_clear_all_prev_pwrst = am33xx_pwrdm_clear_all_prev_pwrst,
223 .pwrdm_set_lowpwrstchange = am33xx_pwrdm_set_lowpwrstchange,
224 .pwrdm_read_mem_pwrst = am33xx_pwrdm_read_mem_pwrst,
225 .pwrdm_read_mem_retst = am33xx_pwrdm_read_mem_retst,
226 .pwrdm_set_mem_onst = am33xx_pwrdm_set_mem_onst,
227 .pwrdm_set_mem_retst = am33xx_pwrdm_set_mem_retst,
228 .pwrdm_wait_transition = am33xx_pwrdm_wait_transition,