dt-structs.h 436 B

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