[U-Boot] [PATCH v2 1/3] nios2: map physical address to uncached virtual address
Simon Glass
sjg at chromium.org
Fri Oct 2 13:21:39 CEST 2015
On 1 October 2015 at 18:16, Thomas Chou <thomas at wytron.com.tw> wrote:
> 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.
Yes I see this on another thread. Thanks for explaining it.
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list