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