]> git.sur5r.net Git - u-boot/blob - arch/arm/include/asm/arch-zynqmp/psu_init_gpl.h
Merge tag 'xilinx-for-v2018.03' of git://git.denx.de/u-boot-microblaze
[u-boot] / arch / arm / include / asm / arch-zynqmp / psu_init_gpl.h
1 /*
2  * SPDX-License-Identifier:    GPL-2.0+
3  */
4
5 #ifndef _PSU_INIT_GPL_H_ /* prevent circular inclusions */
6 #define _PSU_INIT_GPL_H_
7
8 #include <asm/io.h>
9 #include <common.h>
10
11 int mask_pollonvalue(unsigned long add, u32 mask, u32 value);
12
13 int mask_poll(u32 add, u32 mask);
14
15 u32 mask_read(u32 add, u32 mask);
16
17 void mask_delay(u32 delay);
18
19 void psu_mask_write(unsigned long offset, unsigned long mask,
20                     unsigned long val);
21
22 void prog_reg(unsigned long addr, unsigned long mask,
23               unsigned long shift, unsigned long value);
24
25 int psu_init(void);
26
27 #endif /* _PSU_INIT_GPL_H_ */