All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Allow boards to initialize the DT at runtime.
Date: Wed, 5 Apr 2017 04:29:02 -0600	[thread overview]
Message-ID: <CAPnjgZ3=erHBWkhVpJa_DTo=acZVhyZQKche+x1=smTHh+hwcg@mail.gmail.com> (raw)
In-Reply-To: <20170402082520.32546-1-deymo@google.com>

Hi Alex,

On 2 April 2017 at 02:25, Alex Deymo <deymo@google.com> wrote:
> In some boards like the Raspberry Pi the initial bootloader will pass
> a DT to the kernel. When using U-boot as such kernel, the board code in

Please use 'U-Boot' consistently.

> U-Boot should be able to provide U-boot with this, already assembled
> device tree blob.
>
> This patch introduces a new config option CONFIG_OF_BOARD to use instead
> of CONFIG_OF_EMBED or CONFIG_OF_SEPARATE which will initialize the DT
> from a board-specific funtion instead of bundling one with U-boot or as
> a separated file. This allows boards like the Raspberry Pi to reuse the
> device tree passed from the bootcode.bin and start.elf firmware
> files, included the run-time selected device tree overlays.

including

>
> Signed-off-by: Alex Deymo <deymo@google.com>
> ---
>  README                      |  8 +++++++-
>  board/raspberrypi/rpi/rpi.c | 10 ++++++++++
>  doc/README.fdt-control      |  4 ++++
>  dts/Kconfig                 |  8 ++++++++
>  include/fdtdec.h            |  6 ++++++
>  lib/fdtdec.c                |  3 +++
>  6 files changed, 38 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

This seems reasonable to me. My only concern is that when U-Boot is
updated the device tree may need to be updated also (e.g. to add a new
driver). But probably that happens anyway.

Where is the DT provided? Is it a separate file on the SD card?

- Simon

  reply	other threads:[~2017-04-05 10:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <98c581b7b5c318c1e5eeac63c8a73c6e63c476cf>
2017-04-02  8:25 ` [U-Boot] [PATCH] Allow boards to initialize the DT at runtime Alex Deymo
2017-04-05 10:29   ` Simon Glass [this message]
2017-05-10 17:51   ` [U-Boot] " Tom Rini

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='CAPnjgZ3=erHBWkhVpJa_DTo=acZVhyZQKche+x1=smTHh+hwcg@mail.gmail.com' \
    --to=sjg@chromium.org \
    --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.