diff options
Diffstat (limited to 'include/dt-structs.h')
-rw-r--r-- | include/dt-structs.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/dt-structs.h b/include/dt-structs.h new file mode 100644 index 00000000000..e13afa66082 --- /dev/null +++ b/include/dt-structs.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2016 Google, Inc + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __DT_STTUCTS +#define __DT_STTUCTS + +/* These structures may only be used in SPL */ +#if CONFIG_IS_ENABLED(OF_PLATDATA) +struct phandle_2_cell { + const void *node; + int id; +}; +#include <generated/dt-structs.h> +#endif + +#endif |