summaryrefslogtreecommitdiff
path: root/tools/binman/etype/u_boot_tpl_dtb_with_ucode.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-09-14 04:57:32 -0600
committerSimon Glass <sjg@chromium.org>2018-09-29 11:49:35 -0600
commitf025363543636191cfc6d277733317cb0198189f (patch)
tree053907b79f13c5871d9cdaa18377e45f4d63fef5 /tools/binman/etype/u_boot_tpl_dtb_with_ucode.py
parente0e5df9310d3a0e1fc0eda86ff43fd3e782e61f1 (diff)
binman: Support x86 microcode in TPL
When TPL is used on x86 we may want to program the microcode (at least for the first CPU) early in boot. Add support for this by refactoring the existing code to be more generic. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/u_boot_tpl_dtb_with_ucode.py')
-rw-r--r--tools/binman/etype/u_boot_tpl_dtb_with_ucode.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/binman/etype/u_boot_tpl_dtb_with_ucode.py b/tools/binman/etype/u_boot_tpl_dtb_with_ucode.py
new file mode 100644
index 00000000000..71e04fcd44f
--- /dev/null
+++ b/tools/binman/etype/u_boot_tpl_dtb_with_ucode.py
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Copyright (c) 2016 Google, Inc
+# Written by Simon Glass <sjg@chromium.org>
+#
+# Entry-type module for U-Boot device tree with the microcode removed
+#
+
+import control
+from entry import Entry
+from u_boot_dtb_with_ucode import Entry_u_boot_dtb_with_ucode
+import tools
+
+class Entry_u_boot_tpl_dtb_with_ucode(Entry_u_boot_dtb_with_ucode):
+ """U-Boot TPL with embedded microcode pointer
+
+ This is used when TPL must set up the microcode for U-Boot.
+
+ See Entry_u_boot_ucode for full details of the entries involved in this
+ process.
+ """
+ def __init__(self, section, etype, node):
+ Entry_u_boot_dtb_with_ucode.__init__(self, section, etype, node)
+
+ def GetDefaultFilename(self):
+ return 'tpl/u-boot-tpl.dtb'