dt-structs.h 436 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (c) 2016 Google, Inc
  4. */
  5. #ifndef __DT_STRUCTS
  6. #define __DT_STRUCTS
  7. /* These structures may only be used in SPL */
  8. #if CONFIG_IS_ENABLED(OF_PLATDATA)
  9. struct phandle_0_arg {
  10. const void *node;
  11. int arg[0];
  12. };
  13. struct phandle_1_arg {
  14. const void *node;
  15. int arg[1];
  16. };
  17. struct phandle_2_arg {
  18. const void *node;
  19. int arg[2];
  20. };
  21. #include <generated/dt-structs-gen.h>
  22. #endif
  23. #endif