diff options
author | Patrick Delaunay | 2021-11-15 16:32:21 +0100 |
---|---|---|
committer | Patrice Chotard | 2021-11-30 16:43:28 +0100 |
commit | 77debf61ef271957515de00a78ed5486c164f850 (patch) | |
tree | afdb8ec6d141b1a8e69a83570afbe80758f891f6 /include | |
parent | 2e2e6d8cacbc80f2da0ce8f1afca5ed24020b331 (diff) |
common: add fdt_simplefb_enable_and_mem_rsv function
Add a new function to activate an existing simple frame buffer node
and add the associated reserved memory, with no-map properties.
This device tree update is only done when the video device is active
and the video buffer is used.
This patch uses '#if CONFIG_IS_ENABLED(DM_VIDEO)' because
gd->video_bottom and gd->video_top are only defined when CONFIG_DM_VIDEO
is activated.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fdt_simplefb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fdt_simplefb.h b/include/fdt_simplefb.h index 7e547235912..41cd740ac05 100644 --- a/include/fdt_simplefb.h +++ b/include/fdt_simplefb.h @@ -10,4 +10,5 @@ #define _FDT_SIMPLEFB_H_ int fdt_simplefb_add_node(void *blob); int fdt_simplefb_enable_existing_node(void *blob); +int fdt_simplefb_enable_and_mem_rsv(void *blob); #endif |