[U-Boot] [PATCH 1/5] board/db410c: use fdt passed from lk
Rob Clark
robdclark at gmail.com
Sat Jun 24 23:05:19 UTC 2017
lk patches the fdt to set some device's MAC addresses and more
importantly to patch in the simple-framebuffer node that we want u-boot
to see.
Signed-off-by: Rob Clark <robdclark at gmail.com>
---
board/qualcomm/dragonboard410c/dragonboard410c.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/board/qualcomm/dragonboard410c/dragonboard410c.c b/board/qualcomm/dragonboard410c/dragonboard410c.c
index 37d0b85..6657e14 100644
--- a/board/qualcomm/dragonboard410c/dragonboard410c.c
+++ b/board/qualcomm/dragonboard410c/dragonboard410c.c
@@ -27,6 +27,22 @@ int dram_init_banksize(void)
return 0;
}
+unsigned long fw_dtb_pointer;
+
+void save_boot_params_ret(void);
+
+void save_boot_params(u64 x0, u64 x1, u64 x2, u64 x3)
+{
+ fw_dtb_pointer = x0;
+ save_boot_params_ret();
+}
+
+void *board_fdt_blob_setup(void)
+{
+ if (fdt_magic(fw_dtb_pointer) != FDT_MAGIC)
+ return NULL;
+ return (void *)fw_dtb_pointer;
+}
int board_prepare_usb(enum usb_init_type type)
{
--
2.9.4
More information about the U-Boot
mailing list