From: Sergey Matyukevich <geomatsi@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH/next v2 2/4] binaries-marvell: new package
Date: Sat, 18 Nov 2017 11:35:47 +0300 [thread overview]
Message-ID: <20171118083549.9108-3-geomatsi@gmail.com> (raw)
In-Reply-To: <20171118083549.9108-1-geomatsi@gmail.com>
Some systems, including Marvell Armada 7k/8k SoCs, have a separate
System Control Processor (SCP) for power management, clocks, reset
and system control. ATF Boot Loader stage 2 (BL2) loads optional
SCP_BL2 image into a platform-specific region of secure memory.
This package adds SCP_BL2 firmware for Marvell Armada 7040 and 8040 SoCs.
Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
---
DEVELOPERS | 1 +
boot/Config.in | 1 +
boot/binaries-marvell/Config.in | 29 +++++++++++++++++++++++++++++
boot/binaries-marvell/binaries-marvell.hash | 2 ++
boot/binaries-marvell/binaries-marvell.mk | 19 +++++++++++++++++++
5 files changed, 52 insertions(+)
create mode 100644 boot/binaries-marvell/Config.in
create mode 100644 boot/binaries-marvell/binaries-marvell.hash
create mode 100644 boot/binaries-marvell/binaries-marvell.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index edca05ea6f..11590f2ab0 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1478,6 +1478,7 @@ F: package/lua-resty-http/
F: package/mpir/
N: Sergey Matyukevich <geomatsi@gmail.com>
+F: boot/binaries-marvell/
F: boot/mv-ddr-marvell/
F: package/armbian-firmware/
F: package/xr819-xradio/
diff --git a/boot/Config.in b/boot/Config.in
index 3950c49524..3687c41a2c 100644
--- a/boot/Config.in
+++ b/boot/Config.in
@@ -6,6 +6,7 @@ source "boot/at91bootstrap3/Config.in"
source "boot/at91dataflashboot/Config.in"
source "boot/arm-trusted-firmware/Config.in"
source "boot/barebox/Config.in"
+source "boot/binaries-marvell/Config.in"
source "boot/boot-wrapper-aarch64/Config.in"
source "boot/grub2/Config.in"
source "boot/gummiboot/Config.in"
diff --git a/boot/binaries-marvell/Config.in b/boot/binaries-marvell/Config.in
new file mode 100644
index 0000000000..0a0717cd26
--- /dev/null
+++ b/boot/binaries-marvell/Config.in
@@ -0,0 +1,29 @@
+config BR2_TARGET_BINARIES_MARVELL
+ bool "Marvell Armada SCP_BL2 image for ATF"
+ depends on BR2_aarch64
+ help
+ Some systems, including Marvell Armada SoC, have a separate
+ System Control Processor (SCP) for power management, clocks,
+ reset and system control. ATF Boot Loader stage 2 (BL2) loads
+ optional SCP_BL2 image into a platform-specific region
+ of secure memory.
+
+if BR2_TARGET_BINARIES_MARVELL
+
+choice
+ prompt "Marvell Armada platform"
+
+config BR2_TARGET_BINARIES_MARVELL_7040
+ bool "7040"
+
+config BR2_TARGET_BINARIES_MARVELL_8040
+ bool "8040"
+
+endchoice
+
+config BR2_TARGET_BINARIES_MARVELL_IMAGE
+ string
+ default "mrvl_scp_bl2_8040.img" if BR2_TARGET_BINARIES_MARVELL_8040
+ default "mrvl_scp_bl2_7040.img" if BR2_TARGET_BINARIES_MARVELL_7040
+
+endif
diff --git a/boot/binaries-marvell/binaries-marvell.hash b/boot/binaries-marvell/binaries-marvell.hash
new file mode 100644
index 0000000000..401584dacd
--- /dev/null
+++ b/boot/binaries-marvell/binaries-marvell.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 22a201542d8f93cf88623065db5f3377822b59cbfdf98a8e60cdee629273d3a0 binaries-marvell-0dabe23b956420b0928d337d635f0cd5646c33d0.tar.gz
diff --git a/boot/binaries-marvell/binaries-marvell.mk b/boot/binaries-marvell/binaries-marvell.mk
new file mode 100644
index 0000000000..7bb5071aed
--- /dev/null
+++ b/boot/binaries-marvell/binaries-marvell.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# Marvell Armada SCP_BL2 firmware images
+#
+################################################################################
+
+BINARIES_MARVELL_VERSION = 0dabe23b956420b0928d337d635f0cd5646c33d0
+BINARIES_MARVELL_SITE = $(call github,MarvellEmbeddedProcessors,binaries-marvell,$(BINARIES_MARVELL_VERSION))
+BINARIES_MARVELL_LICENSE = PROPRIETARY
+BINARIES_MARVELL_REDISTRIBUTE = NO
+
+BINARIES_MARVELL_IMAGE = $(call qstrip,$(BR2_TARGET_BINARIES_MARVELL_IMAGE))
+BINARIES_MARVELL_INSTALL_IMAGES = YES
+
+define BINARIES_MARVELL_INSTALL_IMAGES_CMDS
+ $(INSTALL) -D -m 0644 $(@D)/$(BINARIES_MARVELL_IMAGE) $(BINARIES_DIR)/scp-fw.bin
+endef
+
+$(eval $(generic-package))
--
2.11.0
next prev parent reply other threads:[~2017-11-18 8:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-18 8:35 [Buildroot] [PATCH/next v2 0/4] Add support for MacchiatoBin board Sergey Matyukevich
2017-11-18 8:35 ` [Buildroot] [PATCH/next v2 1/4] mv-ddr-marvell: new package Sergey Matyukevich
2017-11-18 8:35 ` Sergey Matyukevich [this message]
2017-11-18 8:35 ` [Buildroot] [PATCH/next v2 3/4] atf: add support for Marvell Armada SoCs Sergey Matyukevich
2017-11-18 8:35 ` [Buildroot] [PATCH/next v2 4/4] solidrun/macchiatobin: add new board Sergey Matyukevich
2017-11-29 6:55 ` [Buildroot] [PATCH/next v2 0/4] Add support for MacchiatoBin board Sergey Matyukevich
2017-12-02 14:56 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171118083549.9108-3-geomatsi@gmail.com \
--to=geomatsi@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox