dt-structs.h 433 B

123456789101112131415161718192021222324252627282930
  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 driver_info;
  10. struct phandle_0_arg {
  11. uint idx;
  12. int arg[0];
  13. };
  14. struct phandle_1_arg {
  15. uint idx;
  16. int arg[1];
  17. };
  18. struct phandle_2_arg {
  19. uint idx;
  20. int arg[2];
  21. };
  22. #include <generated/dt-structs-gen.h>
  23. #endif
  24. #endif