From: Sean Anderson <seanga2@gmail.com>
To: u-boot@lists.denx.de
Subject: reserved memory from devicetree definition
Date: Thu, 4 Mar 2021 21:01:44 -0500 [thread overview]
Message-ID: <82403790-b18e-e500-382f-bf0a9077208e@gmail.com> (raw)
In-Reply-To: <CAEUhbmVhhhU5ozr2GF21kg6--ZH2van9bkAZjg4Y3ap_PrVFqg@mail.gmail.com>
On 3/4/21 8:04 PM, Bin Meng wrote:
> On Fri, Mar 5, 2021 at 8:26 AM jorge courett <jorge.courett@gmail.com> wrote:
>>
>> Hi!
>> Is there any way to use a reserved memory definition in the device tree to
>> avoid that u-boot could use that SDRAM memory region? Or the only way is by
>> compiler configuration?
>
> The use case you pointed out is not supported by U-Boot. U-Boot
> currently only supports insert /reserved-memory node on some boards.
>
> Patches are welcome to support the new use case :)
>
> Regards,
> Bin
In the general case you can do this if your arch/board's dram_init calls
fdtdec_setup_mem_size_base. Though there are numerous ways to override
these values, so see setup_dest_addr for details. Do note that many
memory addresses are set via several different methods, depending on the
board. So you might need to have some compile-time modification anyway.
--Sean
next prev parent reply other threads:[~2021-03-05 2:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-04 23:45 reserved memory from devicetree definition jorge courett
2021-03-05 1:04 ` Bin Meng
2021-03-05 2:01 ` Sean Anderson [this message]
2021-03-05 18:01 ` jorge courett
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=82403790-b18e-e500-382f-bf0a9077208e@gmail.com \
--to=seanga2@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