Skip to content
Snippets Groups Projects
Commit c59f2ac1 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

dm: doc: Add a note about of-platdata and header files


We don't want to include dt-structs.h in header files, so add a note about
that.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 75214b05
No related branches found
No related tags found
No related merge requests found
...@@ -279,6 +279,12 @@ For example: ...@@ -279,6 +279,12 @@ For example:
}; };
Note that struct mmc_platdata is defined in the C file, not in a header. This
is to avoid needing to include dt-structs.h in a header file. The idea is to
keep the use of each of-platdata struct to the smallest possible code area.
There is just one driver C file for each struct, that can convert from the
of-platdata struct to the standard one used by the driver.
In the case where SPL_OF_PLATDATA is enabled, platdata_auto_alloc_size is In the case where SPL_OF_PLATDATA is enabled, platdata_auto_alloc_size is
still used to allocate space for the platform data. This is different from still used to allocate space for the platform data. This is different from
the normal behaviour and is triggered by the use of of-platdata (strictly the normal behaviour and is triggered by the use of of-platdata (strictly
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment