public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] idea: fdt_checkboard
Date: Thu, 17 May 2007 22:27:27 -0400	[thread overview]
Message-ID: <464D0F0F.8070901@gmail.com> (raw)
In-Reply-To: <464CA8ED.9080708@freescale.com>

Timur Tabi wrote:
> Jerry,
> 
> What do you think about implementing a board-specific function called 
> "fdt_checkboard()"?  On platforms that have this function, it would be 
> called by fdt_open_into(). fdt_checkboard() would scan the device tree 
> and make sure that it's the right tree for this board (e.g. by checking 
> the 'model' or 'compatible' fields), and return an error if it's not.
> 
> This would be helpful in eliminating the possibility of accidentally 
> using the wrong device tree.  It could happen, for instance, if there 
> are multiple device trees for a given board.

Hi Timur,

I would rather give hush the ability to read fdt properties so that the 
logic could be scripted rather than being "hardcoded" in a C function. 
This would give some interesting capabilities, like selecting the proper 
fdt out of several in memory.

Unfortunately I'm spouting off out of ignorance, I don't know at this 
point how much effort it would take to give hush the ability to test fdt 
properties.

Best regards,
gvb

  reply	other threads:[~2007-05-18  2:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-17 19:11 [U-Boot-Users] idea: fdt_checkboard Timur Tabi
2007-05-18  2:27 ` Jerry Van Baren [this message]
2007-05-18  6:48   ` Wolfgang Grandegger
2007-05-18 14:17   ` Timur Tabi

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=464D0F0F.8070901@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