1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2016 Google, Inc
9 /* These structures may only be used in SPL */
10 #if CONFIG_IS_ENABLED(OF_PLATDATA)
14 * struct phandle_0_arg - hold a phandle record with no arguments
16 * This holds a phandle pointing to another device. See 'Indexes' in the
17 * of-plat-rst documentation.
19 * @idx: udevice index (or driver_info index if !OF_PLATDATA_INST)
22 struct phandle_0_arg {
28 * struct phandle_2_arg - hold a phandle record with up to one argument
30 * This holds a phandle pointing to another device. See 'Indexes' in the
31 * of-plat-rst documentation.
33 * @idx: udevice index (or driver_info index if !OF_PLATDATA_INST)
36 struct phandle_1_arg {
42 * struct phandle_2_arg - hold a phandle record with up to two arguments
44 * This holds a phandle pointing to another device. See 'Indexes' in the
45 * of-plat-rst documentation.
47 * @idx: udevice index (or driver_info index if !OF_PLATDATA_INST)
50 struct phandle_2_arg {
55 #include <generated/dt-structs-gen.h>
56 #include <generated/dt-decl.h>