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.
[Backport of commit 77debf61ef ("common: add fdt_simplefb_enable_and_mem_rsv function")]
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Change-Id: I88c09f1bf230a660894ccaa5cd01ff2a601867bb
15 lines
343 B
C
15 lines
343 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Simplefb device tree support
|
|
*
|
|
* (C) Copyright 2015
|
|
* Stephen Warren <swarren@wwwdotorg.org>
|
|
*/
|
|
|
|
#ifndef _FDT_SIMPLEFB_H_
|
|
#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
|