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