of_live.h 519 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2017 Google, Inc
  4. * Written by Simon Glass <sjg@chromium.org>
  5. *
  6. * Support for a 'live' (as opposed to flat) device tree
  7. */
  8. #ifndef _OF_LIVE_H
  9. #define _OF_LIVE_H
  10. struct device_node;
  11. /**
  12. * of_live_build() - build a live (hierarchical) tree from a flat DT
  13. *
  14. * @fdt_blob: Input tree to convert
  15. * @rootp: Returns live tree that was created
  16. * @return 0 if OK, -ve on error
  17. */
  18. int of_live_build(const void *fdt_blob, struct device_node **rootp);
  19. #endif