]> git.dujemihanovic.xyz Git - u-boot.git/commit
nios2: fix virt_to_phys for nios2 with MMU
authorThomas Chou <thomas@wytron.com.tw>
Thu, 22 Oct 2015 07:38:24 +0000 (15:38 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Fri, 23 Oct 2015 06:55:48 +0000 (14:55 +0800)
commit8a3ea979666799d09b57efd05d0b41bda1ac7d69
tree2f1677f5f21400b2c6b8d7ca28ce00df3313a3f9
parent485e2d8edd3a3f87d9475bf1396143a3ab5097e5
nios2: fix virt_to_phys for nios2 with MMU

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 <thomas@wytron.com.tw>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/include/asm/io.h