u_boot_spl_dtb.py 858 B

12345678910111213141516171819202122232425262728
  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 in SPL (Secondary Program Loader)
  6. #
  7. from binman.entry import Entry
  8. from binman.etype.blob_dtb import Entry_blob_dtb
  9. class Entry_u_boot_spl_dtb(Entry_blob_dtb):
  10. """U-Boot SPL device tree
  11. Properties / Entry arguments:
  12. - filename: Filename of u-boot.dtb (default 'spl/u-boot-spl.dtb')
  13. This is the SPL device tree, containing configuration information for
  14. SPL. SPL 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 'spl/u-boot-spl.dtb'
  21. def GetFdtEtype(self):
  22. return 'u-boot-spl-dtb'