rockchip: rk3399: Add Nanopi M4 2GB board support
[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 import command
11 from entry import Entry
12 from blob import Entry_blob
13 from u_boot_with_ucode_ptr import Entry_u_boot_with_ucode_ptr
14 import tools
15
16 class 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'