Merge tag 'dm-pull-27apr20' of git://git.denx.de/u-boot-dm
[platform/kernel/u-boot.git] / tools / binman / etype / u_boot_spl_with_ucode_ptr.py
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2016 Google, Inc
3 # Written by Simon Glass <sjg@chromium.org>
4 #
5 # Entry-type module for an SPL binary with an embedded microcode pointer
6 #
7
8 import struct
9
10 from binman.etype.u_boot_with_ucode_ptr import Entry_u_boot_with_ucode_ptr
11
12 class Entry_u_boot_spl_with_ucode_ptr(Entry_u_boot_with_ucode_ptr):
13     """U-Boot SPL with embedded microcode pointer
14
15     This is used when SPL must set up the microcode for U-Boot.
16
17     See Entry_u_boot_ucode for full details of the entries involved in this
18     process.
19     """
20     def __init__(self, section, etype, node):
21         Entry_u_boot_with_ucode_ptr.__init__(self, section, etype, node)
22         self.elf_fname = 'spl/u-boot-spl'
23
24     def GetDefaultFilename(self):
25         return 'spl/u-boot-spl-nodtb.bin'