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 8import struct 9 10import command 11from entry import Entry 12from blob import Entry_blob 13from u_boot_with_ucode_ptr import Entry_u_boot_with_ucode_ptr 14import tools 15 16class Entry_u_boot_spl_with_ucode_ptr(Entry_u_boot_with_ucode_ptr): 17 """U-Boot SPL with embedded microcode pointer 18 19 This is used when SPL must set up the microcode for U-Boot. 20 21 See Entry_u_boot_ucode for full details of the entries involved in this 22 process. 23 """ 24 def __init__(self, section, etype, node): 25 Entry_u_boot_with_ucode_ptr.__init__(self, section, etype, node) 26 self.elf_fname = 'spl/u-boot-spl' 27 28 def GetDefaultFilename(self): 29 return 'spl/u-boot-spl-nodtb.bin' 30