2016-07-05 01:58:02 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Google, Inc
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
2017-07-12 05:30:07 +08:00
|
|
|
#ifndef __DT_STRUCTS
|
|
|
|
#define __DT_STRUCTS
|
2016-07-05 01:58:02 +08:00
|
|
|
|
|
|
|
/* These structures may only be used in SPL */
|
|
|
|
#if CONFIG_IS_ENABLED(OF_PLATDATA)
|
2017-08-30 04:15:56 +08:00
|
|
|
struct phandle_0_arg {
|
|
|
|
const void *node;
|
2017-08-30 04:15:58 +08:00
|
|
|
int arg[0];
|
2017-08-30 04:15:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct phandle_1_arg {
|
2016-07-05 01:58:02 +08:00
|
|
|
const void *node;
|
2017-08-30 04:15:58 +08:00
|
|
|
int arg[1];
|
2016-07-05 01:58:02 +08:00
|
|
|
};
|
2017-08-30 04:15:59 +08:00
|
|
|
|
|
|
|
struct phandle_2_arg {
|
|
|
|
const void *node;
|
|
|
|
int arg[2];
|
|
|
|
};
|
2017-08-30 04:16:00 +08:00
|
|
|
#include <generated/dt-structs-gen.h>
|
2016-07-05 01:58:02 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|