mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
board: engicam: stm32mp1: convert to livetree
Replace gd->fdt_blob access with fdt_getprop() function to the function ofnode_get_property() to support a live tree. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
parent
6350633ed9
commit
655100d706
@ -14,8 +14,6 @@
|
|||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <power/regulator.h>
|
#include <power/regulator.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
|
||||||
|
|
||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
char *mode;
|
char *mode;
|
||||||
@ -28,8 +26,8 @@ int checkboard(void)
|
|||||||
mode = "basic";
|
mode = "basic";
|
||||||
|
|
||||||
printf("Board: stm32mp1 in %s mode", mode);
|
printf("Board: stm32mp1 in %s mode", mode);
|
||||||
fdt_compat = fdt_getprop(gd->fdt_blob, 0, "compatible",
|
fdt_compat = ofnode_get_property(ofnode_root(), "compatible",
|
||||||
&fdt_compat_len);
|
&fdt_compat_len);
|
||||||
if (fdt_compat && fdt_compat_len)
|
if (fdt_compat && fdt_compat_len)
|
||||||
printf(" (%s)", fdt_compat);
|
printf(" (%s)", fdt_compat);
|
||||||
puts("\n");
|
puts("\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user