From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Modifying the Device tree fields
Date: Fri, 21 Jun 2013 14:07:26 -0500 [thread overview]
Message-ID: <1371841646.11064.27@snotra> (raw)
In-Reply-To: <CAG8PAaon8OjseJAkTJFZvTYtwV4H_KHHUy0=o+qUtuzTNE68Zw@mail.gmail.com> (from pkamaraj@gmail.com on Fri Jun 21 12:26:33 2013)
On 06/21/2013 12:26:33 PM, Kamaraj P wrote:
> Hello All,
>
> In my device tree blob, i would like to add some interrupt to the
> protected-source list dynamically in the u-boot before launching the
> linux
> kernel.
>
> mpic: pic at 40000 {
> interrupt-controller;
> #address-cells = <0>;
> #interrupt-cells = <2>;
> reg = <0x40000 0x40000>;
> compatible = "chrp,open-pic";
> device_type = "open-pic";
> protected-sources = <
> 16
> >
>
> In the above DTS file, i would like to add the other interrupts to
> the
> protected-sources dynamically.
If you use the pic-no-reset property, you don't need protected-sources
at all, unless you specifically want the error checking aspect of it.
> I hope we need to use the device fdt APIs. Could you please any
> pointers
> or reference for how to use those APIs in the u-boot ?
fdt_appendprop looks like a good choice if you still want to do this.
-Scott
next prev parent reply other threads:[~2013-06-21 19:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 17:26 [U-Boot] Modifying the Device tree fields Kamaraj P
2013-06-21 18:59 ` Tom Rini
2013-06-21 19:07 ` Scott Wood [this message]
2013-06-22 7:14 ` Kamaraj P
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=1371841646.11064.27@snotra \
--to=scottwood@freescale.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