public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Rob Clark <robdclark@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/5] board/db410c: use fdt passed from lk
Date: Sat, 24 Jun 2017 19:05:19 -0400	[thread overview]
Message-ID: <20170624230523.2327-2-robdclark@gmail.com> (raw)
In-Reply-To: <20170624230523.2327-1-robdclark@gmail.com>

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@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

  reply	other threads:[~2017-06-24 23:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-24 23:05 [U-Boot] [PATCH 0/5] db410c: updates for grub + gfxterm Rob Clark
2017-06-24 23:05 ` Rob Clark [this message]
2017-07-07 15:17   ` [U-Boot] [PATCH 1/5] board/db410c: use fdt passed from lk Tom Rini
2017-06-24 23:05 ` [U-Boot] [PATCH 2/5] dm: core: also parse chosen node Rob Clark
2017-06-24 23:05 ` [U-Boot] [PATCH 3/5] video: simplefb Rob Clark
2017-06-24 23:05 ` [U-Boot] [PATCH 4/5] efi_loader: gop: fixes for CONFIG_DM_VIDEO without CONFIG_LCD Rob Clark
2017-07-12 12:52   ` Alexander Graf
2017-07-18 14:00     ` Simon Glass
2017-07-18 14:47       ` Alexander Graf
2017-07-18 14:54         ` Simon Glass
2017-07-18 15:06           ` Alexander Graf
2017-07-18 17:07             ` Tom Rini
2017-07-19 10:02               ` Wenyou.Yang at microchip.com
2017-07-19 16:24             ` Rob Clark
2017-07-21 10:48               ` Simon Glass
2017-07-21 15:58                 ` Tom Rini
2017-07-21 17:54                   ` Rob Clark
2017-07-21 10:47             ` Rob Clark
2017-06-24 23:05 ` [U-Boot] [PATCH 5/5] configs: db410c: config updates Rob Clark
2017-07-06 12:02 ` [U-Boot] [PATCH 0/5] db410c: updates for grub + gfxterm Mateusz Kulikowski
2017-07-19 16:49   ` Rob Clark
2017-07-19 17:54     ` Rob Clark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170624230523.2327-2-robdclark@gmail.com \
    --to=robdclark@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox