From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 0/4] Run-time configuration of U-Boot via a flat device tree (fdt)
Date: Fri, 02 Sep 2011 07:42:32 -0400 [thread overview]
Message-ID: <4E60C128.8050207@gmail.com> (raw)
In-Reply-To: <1314910149-9755-1-git-send-email-sjg@chromium.org>
Hi Simon,
On 09/01/2011 04:49 PM, Simon Glass wrote:
> At present in U-Boot configuration is mostly done using CONFIG options in the
> board file. This patch set aims to make it possible for a single U-Boot
> binary to support multiple boards, with the exact configuration of each board
> controlled by a flat device tree (fdt). This is the approach recently taken
> by the ARM Linux kernel and has been used by PowerPC for some time.
Very exciting. I've thought about doing this for years, but never had
the ambition (or time).
[snip]
> and add some defines to your board (only ARM is currently supported):
>
> #define CONFIG_OF_CONTROL (to enable run-time config control via fdt)
> #define CONFIG_OF_EMBED or CONFIG_OF_SEPARATE
> (either build the fdt blob into U-Boot, or create a separate u-boot.dtb)
> #define CONFIG_DEFAULT_DEVICE_TREE "<your name>"
> (to specify the name of the device tree file is
> board/<vendor>/<board>/<your name>.dts)
>
> This patch set does not include any drivers which actually use the fdt. I have
> some concerns about spreading fdt code around the U-Boot code base so am
> thinking of having a support file which makes this easier. I can provide a
> UART driver modified to use fdt if there is interest.
Please. A concrete reference is very useful, especially for discussion.
> It is important to understand that the fdt only selects options available in
> the platform / drivers. It cannot add new drivers (yet). So you must still
> have the CONFIG option to enable the driver. For example, you need to define
> CONFIG_SYS_NS16550 to bring in the NS16550 driver, but can use the fdt to
> specific the UART clock, peripheral address, etc. In very broad terms, the
> CONFIG options in general control *what* driver files are pulled in, and the
> fdt controls *how* those files work.
Sounds reasonable and practical. One of the things u-boot struggles
with is staying small (but it is nice to be able to make it all
inclusive and big if you have the flash).
> While only ARM is supported in this patch series, it should be easy enough to
> add support for other architectures.
Exercise left for the students. :-)
[snip]
Thanks!
gvb
next prev parent reply other threads:[~2011-09-02 11:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-01 20:49 [U-Boot] [RFC PATCH 0/4] Run-time configuration of U-Boot via a flat device tree (fdt) Simon Glass
2011-09-01 20:49 ` [U-Boot] [RFC PATCH 1/4] fdt: ARM: Add device tree control of U-Boot (CONFIG_OF_CONTROL) Simon Glass
2011-09-02 16:32 ` Mike Frysinger
2011-09-02 17:18 ` Simon Glass
2011-09-01 20:49 ` [U-Boot] [RFC PATCH 2/4] fdt: Add support for embedded device tree (CONFIG_OF_EMBED) Simon Glass
2011-09-01 20:49 ` [U-Boot] [RFC PATCH 3/4] fdt: Add support for a separate device tree (CONFIG_OF_SEPARATE) Simon Glass
2011-09-01 20:49 ` [U-Boot] [RFC PATCH 4/4] fdt: ARM: Implement embedded and separate device tree Simon Glass
2011-09-02 11:42 ` Jerry Van Baren [this message]
2011-09-02 17:14 ` [U-Boot] [RFC PATCH 0/4] Run-time configuration of U-Boot via a flat device tree (fdt) Simon Glass
2011-09-02 16:33 ` Mike Frysinger
2011-09-02 17:06 ` 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=4E60C128.8050207@gmail.com \
--to=gvb.uboot@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