public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/3] nios2: map physical address to uncached virtual address
Date: Fri, 2 Oct 2015 08:16:26 +0800	[thread overview]
Message-ID: <560DCCDA.7070303@wytron.com.tw> (raw)
In-Reply-To: <CAPnjgZ3AEuUDu_4b0d9fzwMt+4S6EU04RaJ_=9CMwLAKHPpXdA@mail.gmail.com>

Hi Simon,

On 10/02/2015 06:49 AM, Simon Glass wrote:
>>> Add ioremap() to map physical address to uncached virtual
>>> address. We need this to convert the reg address from the
>>> device tree.
> Can we not rely on the 'ranges' property to sort this out?

The ranges translate address across buses/bridges. The address is still 
physical address. In the case of nios2, the virtual address map of mmu 
or nonmmu are different, though the physical address should be the same. 
So we really need sort of ioremap(). You may find a lots of call to 
ioremap() in linux drivers. It is quite standard. We also want to use 
the same dts/dtb for both u-boot and linux. I would suggest ioremap() is 
the way.

Thanks a lot for your review.

Best regards,
Thomas

  reply	other threads:[~2015-10-02  0:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-13  8:32 [U-Boot] [PATCH 1/2] nios2: remap and translate reg address in device tree Thomas Chou
2015-09-13  8:32 ` [U-Boot] [PATCH 2/2] nios2: convert altera_jtag_uart to driver model Thomas Chou
2015-09-13 13:42   ` Marek Vasut
2015-09-13 13:39 ` [U-Boot] [PATCH 1/2] nios2: remap and translate reg address in device tree Marek Vasut
2015-09-14 12:39   ` Simon Glass
2015-09-15  4:48   ` Thomas Chou
2015-09-13 13:40 ` [U-Boot] [PATCH v2 0/3] nios2: convert altera_jtag_uart to driver model Thomas Chou
2015-09-13 13:40   ` [U-Boot] [PATCH v2 1/3] nios2: map physical address to uncached virtual address Thomas Chou
2015-09-13 13:46     ` Marek Vasut
2015-10-01 22:49       ` Simon Glass
2015-10-02  0:16         ` Thomas Chou [this message]
2015-10-02 11:21           ` Simon Glass
2015-09-13 13:40   ` [U-Boot] [PATCH v2 2/3] nios2: remove bridges in device tree Thomas Chou
2015-09-13 13:40   ` [U-Boot] [PATCH v2 3/3] nios2: convert altera_jtag_uart to driver model Thomas Chou
2015-09-14  5:39 ` [U-Boot] [PATCH 1/2] nios2: remap and translate reg address in device tree Stefan Roese
2015-09-15  0:50   ` Thomas Chou

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=560DCCDA.7070303@wytron.com.tw \
    --to=thomas@wytron.com.tw \
    --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