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 U-Boot device tree with the microcode removed
6#
7
8from binman.etype.u_boot_dtb_with_ucode import Entry_u_boot_dtb_with_ucode
9
10class Entry_u_boot_tpl_dtb_with_ucode(Entry_u_boot_dtb_with_ucode):
11    """U-Boot TPL with embedded microcode pointer
12
13    This is used when TPL must set up the microcode for U-Boot.
14
15    See Entry_u_boot_ucode for full details of the entries involved in this
16    process.
17    """
18    def __init__(self, section, etype, node):
19        super().__init__(section, etype, node)
20
21    def GetDefaultFilename(self):
22        return 'tpl/u-boot-tpl.dtb'
23
24    def GetFdtEtype(self):
25        return 'u-boot-tpl-dtb'
26