All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Delaunay <patrick.delaunay@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 7/8] fdt: Allow indicating a node is for U-Boot proper only
Date: Mon, 20 May 2019 15:00:06 +0200	[thread overview]
Message-ID: <1558357207-7345-8-git-send-email-patrick.delaunay@st.com> (raw)
In-Reply-To: <1558357207-7345-1-git-send-email-patrick.delaunay@st.com>

This add missing parts for previous commit 06f94461a9f4
("fdt: Allow indicating a node is for U-Boot proper only")

At present it is not possible to specify that a node should be used before
relocation (in U-Boot proper) without it also ending up in SPL and TPL
device trees. Add a new "u-boot,dm-pre-proper" boolean property for this.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 drivers/core/util.c          | 2 ++
 drivers/video/video-uclass.c | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/core/util.c b/drivers/core/util.c
index 96e47dc..60b939a 100644
--- a/drivers/core/util.c
+++ b/drivers/core/util.c
@@ -42,6 +42,8 @@ bool dm_ofnode_pre_reloc(ofnode node)
 #else
 	if (ofnode_read_bool(node, "u-boot,dm-pre-reloc"))
 		return true;
+	if (ofnode_read_bool(node, "u-boot,dm-pre-proper"))
+		return true;
 
 	/*
 	 * In regular builds individual spl and tpl handling both
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c
index b19bfb4..d4071c0 100644
--- a/drivers/video/video-uclass.c
+++ b/drivers/video/video-uclass.c
@@ -291,7 +291,9 @@ static int video_post_bind(struct udevice *dev)
 		return 0;
 	size = alloc_fb(dev, &addr);
 	if (addr < gd->video_bottom) {
-		/* Device tree node may need the 'u-boot,dm-pre-reloc' tag */
+		/* Device tree node may need the 'u-boot,dm-pre-reloc' or
+		 * 'u-boot,dm-pre-proper' tag
+		 */
 		printf("Video device '%s' cannot allocate frame buffer memory -ensure the device is set up before relocation\n",
 		       dev->name);
 		return -ENOSPC;
-- 
2.7.4

  parent reply	other threads:[~2019-05-20 13:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-20 12:59 [U-Boot] [PATCH v2 0/8] fdt: Allow indicating a node is for U-Boot proper only Patrick Delaunay
2019-05-20 13:00 ` [U-Boot] [PATCH v2 1/8] sandbox: add config for SPL boot with devicetree Patrick Delaunay
2019-05-20 15:35   ` Simon Glass
2019-05-20 13:00 ` [U-Boot] [PATCH v2 2/8] fdt: Allow to use EMBEDDED device tree for SPL Patrick Delaunay
2019-05-20 15:35   ` Simon Glass
2019-05-20 13:00 ` [U-Boot] [PATCH v2 3/8] sandbox: add option show_of_embedded for spl test Patrick Delaunay
2019-05-20 15:35   ` Simon Glass
2019-05-20 13:00 ` [U-Boot] [PATCH v2 4/8] test: py: add option to select device tree used during compilation Patrick Delaunay
2019-05-21 16:21   ` Stephen Warren
2019-05-21 18:32     ` Patrick DELAUNAY
2019-05-21 21:10       ` Stephen Warren
2019-05-20 13:00 ` [U-Boot] [PATCH v2 5/8] test: move SPL test nodes in test device tree Patrick Delaunay
2019-05-20 15:35   ` Simon Glass
2019-05-20 13:00 ` [U-Boot] [PATCH v2 6/8] test: check u-boot properties in SPL " Patrick Delaunay
2019-05-20 15:35   ` Simon Glass
2019-05-20 13:00 ` Patrick Delaunay [this message]
2019-05-20 13:00 ` [U-Boot] [PATCH v2 8/8] dm: doc: add documentation for pre-reloc properties in SPL and TPL Patrick Delaunay
2019-05-20 16:09   ` Simon Glass
2019-05-20 15:35 ` [U-Boot] [PATCH v2 0/8] fdt: Allow indicating a node is for U-Boot proper only Simon Glass
2019-05-21 16:07   ` Patrick DELAUNAY
2019-05-22  0:53     ` Simon Glass

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=1558357207-7345-8-git-send-email-patrick.delaunay@st.com \
    --to=patrick.delaunay@st.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.