u_boot_tpl_dtb.py 857 B

12345678910111213141516171819202122232425262728
  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. from binman.entry import Entry
  8. from binman.etype.blob_dtb import Entry_blob_dtb
  9. class Entry_u_boot_tpl_dtb(Entry_blob_dtb):
  10. """U-Boot TPL device tree
  11. Properties / Entry arguments:
  12. - filename: Filename of u-boot.dtb (default 'tpl/u-boot-tpl.dtb')
  13. This is the TPL device tree, containing configuration information for
  14. TPL. TPL needs this to know what devices are present and which drivers
  15. to activate.
  16. """
  17. def __init__(self, section, etype, node):
  18. super().__init__(section, etype, node)
  19. def GetDefaultFilename(self):
  20. return 'tpl/u-boot-tpl.dtb'
  21. def GetFdtEtype(self):
  22. return 'u-boot-tpl-dtb'