summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-11-17 15:29:11 +0100
committerHans de Goede <hdegoede@redhat.com>2014-11-25 13:38:46 +0100
commitd4f495a881476b557394607665a4deda7158b8c7 (patch)
tree63baf1bd23842e2911ca5e863712d6829f7db900 /include
parent211717a463ff956da983898ae96e2a7d3d506600 (diff)
downloadu-boot-imx-d4f495a881476b557394607665a4deda7158b8c7.zip
u-boot-imx-d4f495a881476b557394607665a4deda7158b8c7.tar.gz
u-boot-imx-d4f495a881476b557394607665a4deda7158b8c7.tar.bz2
fdt_support: Add a fdt_setup_simplefb_node helper function
Add a generic helper to fill and enable simplefb nodes. The first user of this will be the sunxi display code. lcd_dt_simplefb_configure_node is also a good candidate to be converted to use this, but that requires someone to run some tests first, as lcd_dt_simplefb_configure_node does not honor #address-cells and #size-cells, but simply assumes 1 and 1 for both. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Tested-by: Stephen Warren <swarren@wwwdotorg.org> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/fdt_support.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 55cef94..d5e09e6 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -147,6 +147,9 @@ void of_bus_default_count_cells(void *blob, int parentoffset,
int ft_verify_fdt(void *fdt);
int arch_fixup_memory_node(void *blob);
+int fdt_setup_simplefb_node(void *fdt, int node, u64 base_address, u32 width,
+ u32 height, u32 stride, const char *format);
+
#endif /* ifdef CONFIG_OF_LIBFDT */
#ifdef USE_HOSTCC