Merge tag 'u-boot-rockchip-20200501' of https://gitlab.denx.de/u-boot/custodians...
[platform/kernel/u-boot.git] / tools / binman / etype / u_boot_tpl_dtb.py
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2018 Google, Inc
3 # Written by Simon Glass <sjg@chromium.org>
4 #
5 # Entry-type module for U-Boot device tree in TPL (Tertiary Program Loader)
6 #
7
8 from binman.entry import Entry
9 from binman.etype.blob_dtb import Entry_blob_dtb
10
11 class Entry_u_boot_tpl_dtb(Entry_blob_dtb):
12     """U-Boot TPL device tree
13
14     Properties / Entry arguments:
15         - filename: Filename of u-boot.dtb (default 'tpl/u-boot-tpl.dtb')
16
17     This is the TPL device tree, containing configuration information for
18     TPL. TPL needs this to know what devices are present and which drivers
19     to activate.
20     """
21     def __init__(self, section, etype, node):
22         Entry_blob_dtb.__init__(self, section, etype, node)
23
24     def GetDefaultFilename(self):
25         return 'tpl/u-boot-tpl.dtb'
26
27     def GetFdtEtype(self):
28         return 'u-boot-tpl-dtb'