@@ -1013,6 +1013,7 @@ F: package/ti-sgx-um/
N: Luca Ceresoli <luca@lucaceresoli.net>
F: board/olimex/a20_olinuxino/
+F: boot/zynqmp-pmufw-binaries/
F: configs/olimex_a20_olinuxino_*
F: package/agentpp/
F: package/exim/
@@ -19,5 +19,6 @@ source "boot/ts4800-mbrboot/Config.in"
source "boot/uboot/Config.in"
source "boot/vexpress-firmware/Config.in"
source "boot/xloader/Config.in"
+source "boot/zynqmp-pmufw-binaries/Config.in"
endmenu
new file mode 100644
@@ -0,0 +1,19 @@
+config BR2_TARGET_ZYNQMP_PMUFW_BINARIES
+ bool "Zynqmp PMU firmware"
+ depends on BR2_aarch64
+ help
+ This package provides precompiled firmwares for the Platform
+ Management Unit (PMU) of the Xilinx ZynqMP family of SoCs.
+
+ https://github.com/lucaceresoli/zynqmp-pmufw-binaries
+
+if BR2_TARGET_ZYNQMP_PMUFW_BINARIES
+
+config BR2_TARGET_ZYNQMP_PMUFW_BINARIES_IMAGE
+ string "PMU firmware image file"
+ help
+ Enter the path to the PMU firmware file for your board and
+ configuration, relative to the repository top directory.
+ Example: "zcu106-default/pmufw.bin".
+
+endif
new file mode 100644
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 b74808c93522a39bedecd64bd5a75fd766f267e1d540f45dbfe868694f49b1d7 zynqmp-pmufw-binaries-ec64e06b836a0841f40bd52434f6919c5dafb133.tar.gz
+sha256 235b467980655706d5fded5baf3d8b52ddb102a9e0c26804a67c0ec719042d38 license.txt
new file mode 100644
@@ -0,0 +1,24 @@
+################################################################################
+#
+# zynqmp-pmufw-binaries
+#
+################################################################################
+
+ZYNQMP_PMUFW_BINARIES_VERSION = ec64e06b836a0841f40bd52434f6919c5dafb133
+ZYNQMP_PMUFW_BINARIES_SITE = $(call github,lucaceresoli,zynqmp-pmufw-binaries,$(ZYNQMP_PMUFW_BINARIES_VERSION))
+
+ZYNQMP_PMUFW_BINARIES_LICENSE = X11 with Xilinx exception
+ZYNQMP_PMUFW_BINARIES_LICENSE_FILES = license.txt
+
+ZYNQMP_PMUFW_BINARIES_IMAGE = $(call qstrip,$(BR2_TARGET_ZYNQMP_PMUFW_BINARIES_IMAGE))
+ZYNQMP_PMUFW_BINARIES_INSTALL_IMAGES = YES
+
+define ZYNQMP_PMUFW_BINARIES_INSTALL_IMAGES_CMDS
+ $(INSTALL) -D -m 0644 $(@D)/$(ZYNQMP_PMUFW_BINARIES_IMAGE) $(BINARIES_DIR)/pmufw.bin
+endef
+
+ifeq ($(ZYNQMP_PMUFW_BINARIES_IMAGE),)
+$(error No PMU firmware image file name set. Check your BR2_TARGET_ZYNQMP_PMUFW_BINARIES_IMAGE setting)
+endif
+
+$(eval $(generic-package))
Downloads pre-built binary firmwares for the Xilinx ZynqMP SoCs PMU. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> --- DEVELOPERS | 1 + boot/Config.in | 1 + boot/zynqmp-pmufw-binaries/Config.in | 19 +++++++++++++++++ .../zynqmp-pmufw-binaries.hash | 3 +++ .../zynqmp-pmufw-binaries/zynqmp-pmufw-binaries.mk | 24 ++++++++++++++++++++++ 5 files changed, 48 insertions(+) create mode 100644 boot/zynqmp-pmufw-binaries/Config.in create mode 100644 boot/zynqmp-pmufw-binaries/zynqmp-pmufw-binaries.hash create mode 100644 boot/zynqmp-pmufw-binaries/zynqmp-pmufw-binaries.mk