mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
dm: Add a header that provides access to the of-platdata structs
This header can be included from anywhere, but will only pull in the of-platdata struct definitions when this feature is enabled (and only in SPL). Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
bab8233a1d
commit
f24770d812
19
include/dt-structs.h
Normal file
19
include/dt-structs.h
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user