1*274ccb5bSMichal Simek /* SPDX-License-Identifier: GPL-2.0+ */ 2*274ccb5bSMichal Simek 3*274ccb5bSMichal Simek #ifndef _PSU_INIT_GPL_H_ /* prevent circular inclusions */ 4*274ccb5bSMichal Simek #define _PSU_INIT_GPL_H_ 5*274ccb5bSMichal Simek 6*274ccb5bSMichal Simek #include <asm/io.h> 7*274ccb5bSMichal Simek #include <common.h> 8*274ccb5bSMichal Simek 9*274ccb5bSMichal Simek int mask_pollonvalue(unsigned long add, u32 mask, u32 value); 10*274ccb5bSMichal Simek 11*274ccb5bSMichal Simek int mask_poll(u32 add, u32 mask); 12*274ccb5bSMichal Simek 13*274ccb5bSMichal Simek u32 mask_read(u32 add, u32 mask); 14*274ccb5bSMichal Simek 15*274ccb5bSMichal Simek void mask_delay(u32 delay); 16*274ccb5bSMichal Simek 17*274ccb5bSMichal Simek void psu_mask_write(unsigned long offset, unsigned long mask, 18*274ccb5bSMichal Simek unsigned long val); 19*274ccb5bSMichal Simek 20*274ccb5bSMichal Simek void prog_reg(unsigned long addr, unsigned long mask, 21*274ccb5bSMichal Simek unsigned long shift, unsigned long value); 22*274ccb5bSMichal Simek 23*274ccb5bSMichal Simek int psu_init(void); 24*274ccb5bSMichal Simek 25*274ccb5bSMichal Simek #endif /* _PSU_INIT_GPL_H_ */ 26