summaryrefslogtreecommitdiffstats
path: root/tools/binman/etype
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2020-10-21 21:12:15 -0500
committerJagan Teki <jagan@amarulasolutions.com>2020-10-22 11:43:43 +0530
commit18bd45592cbd87a766450d08169ec574853b50fa (patch)
tree43c470a3fb689c44d34281ccb66d65d978378f1f /tools/binman/etype
parent68158d59d296607849a8af6db3fe16a246934fe7 (diff)
downloadu-boot-18bd45592cbd87a766450d08169ec574853b50fa.tar.gz
u-boot-18bd45592cbd87a766450d08169ec574853b50fa.tar.xz
u-boot-18bd45592cbd87a766450d08169ec574853b50fa.zip
binman: Add support for SCP firmware
Add an entry type for a firmware blob for a System Control Processor, given by an entry arg. This firmware is a raw binary blob. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'tools/binman/etype')
-rw-r--r--tools/binman/etype/scp.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/binman/etype/scp.py b/tools/binman/etype/scp.py
new file mode 100644
index 0000000000..93f8787d2d
--- /dev/null
+++ b/tools/binman/etype/scp.py
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright 2020 Samuel Holland <samuel@sholland.org>
+#
+# Entry-type module for System Control Processor (SCP) firmware blob
+#
+
+from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg
+
+class Entry_scp(Entry_blob_named_by_arg):
+ """Entry containing a System Control Processor (SCP) firmware blob
+
+ Properties / Entry arguments:
+ - scp-path: Filename of file to read into the entry, typically scp.bin
+
+ This entry holds firmware for an external platform-specific coprocessor.
+ """
+ def __init__(self, section, etype, node):
+ super().__init__(section, etype, node, 'scp')
+ self.external = True