U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lars Poeschel <poeschel@lemonage.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Setting board revision and serial with device tree
Date: Mon, 21 Oct 2013 16:24:36 +0200	[thread overview]
Message-ID: <2680073.IkTSFPtCzP@lem-wkst-02> (raw)

Hello!

I want to set the board serial number and revision for linux /proc/cpuinfo . 
On an arm board it seems arch/arm/lib/bootm.c function boot_prep_linux() is 
responsible. On a non fdt booting board I can enable CONFIG_REVISION_TAG and 
CONFIG_SERIAL_TAG in the board config and implement get_board_rev() and 
get_board_serial() in the board files. The information is then passed to the 
linux kernel using ATAGS structure. This does not work, if the board boots 
with device tree.
How can a similar thing be done with device tree booting arm board ? I don't 
find information about this. Can somebody please point me to some documentation 
or relevant locations in code, where this is done ?

Thanks a lot,
Lars

                 reply	other threads:[~2013-10-21 14:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=2680073.IkTSFPtCzP@lem-wkst-02 \
    --to=poeschel@lemonage.de \
    --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