From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Fri, 23 Oct 2015 08:20:06 +0800 Subject: [U-Boot] [PATCH v2] nios2: fix virt_to_phys for nios2 with MMU In-Reply-To: <1445500035-11358-1-git-send-email-thomas@wytron.com.tw> References: <1445433044-22465-1-git-send-email-thomas@wytron.com.tw> <1445500035-11358-1-git-send-email-thomas@wytron.com.tw> Message-ID: <56297D36.3050306@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/22/2015 03:47 PM, Thomas Chou wrote: > As the virtual address and physical address mapping of nios2 with > MMU are different. Add a check of MMU, and fix the mapping. > > Signed-off-by: Thomas Chou > Acked-by: Marek Vasut > Reviewed-by: Ley Foon Tan > --- > v2 > remove the parenthesis around vaddr as suggested by Marek. > > arch/nios2/include/asm/io.h | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > Applied to u-boot-nios.