From ae51f41d14f548d494ac41e0d21137c5a4c3f59c Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 30 Oct 2019 14:21:52 +0800 Subject: import the U-Boot code and make it compile --- include/dt-structs.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/dt-structs.h (limited to 'include/dt-structs.h') diff --git a/include/dt-structs.h b/include/dt-structs.h new file mode 100644 index 0000000..924d51f --- /dev/null +++ b/include/dt-structs.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2016 Google, Inc + */ + +#ifndef __DT_STRUCTS +#define __DT_STRUCTS + +/* These structures may only be used in SPL */ +#if CONFIG_IS_ENABLED(OF_PLATDATA) +struct phandle_0_arg { + const void *node; + int arg[0]; +}; + +struct phandle_1_arg { + const void *node; + int arg[1]; +}; + +struct phandle_2_arg { + const void *node; + int arg[2]; +}; +#include +#endif + +#endif -- cgit v1.2.3