aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/arch/arm/mach-zynqmp/include/mach/psu_init_gpl.h
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/u-boot/arch/arm/mach-zynqmp/include/mach/psu_init_gpl.h
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/u-boot/arch/arm/mach-zynqmp/include/mach/psu_init_gpl.h')
-rw-r--r--roms/u-boot/arch/arm/mach-zynqmp/include/mach/psu_init_gpl.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/roms/u-boot/arch/arm/mach-zynqmp/include/mach/psu_init_gpl.h b/roms/u-boot/arch/arm/mach-zynqmp/include/mach/psu_init_gpl.h
new file mode 100644
index 000000000..e37acda2f
--- /dev/null
+++ b/roms/u-boot/arch/arm/mach-zynqmp/include/mach/psu_init_gpl.h
@@ -0,0 +1,26 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+
+#ifndef _PSU_INIT_GPL_H_ /* prevent circular inclusions */
+#define _PSU_INIT_GPL_H_
+
+#include <asm/io.h>
+#include <common.h>
+
+int mask_pollonvalue(unsigned long add, u32 mask, u32 value);
+
+int mask_poll(u32 add, u32 mask);
+
+u32 mask_read(u32 add, u32 mask);
+
+void mask_delay(u32 delay);
+
+void psu_mask_write(unsigned long offset, unsigned long mask,
+ unsigned long val);
+
+void prog_reg(unsigned long addr, unsigned long mask,
+ unsigned long shift, unsigned long value);
+
+int psu_init(void);
+unsigned long psu_post_config_data(void);
+
+#endif /* _PSU_INIT_GPL_H_ */