]> git.sur5r.net Git - u-boot/commit
nios2: change virt_to_phys to use physaddr_mask in global data
authorThomas Chou <thomas@wytron.com.tw>
Tue, 27 Oct 2015 01:02:17 +0000 (09:02 +0800)
committerThomas Chou <thomas@wytron.com.tw>
Fri, 6 Nov 2015 01:14:11 +0000 (09:14 +0800)
commit2de4823dc0424923a6d6070a7378a7bf6ee67556
treed1f7dd706b76f4897b83f7a5de32b6e27f766962
parent1cda48f333acd0f822720275730de0e6a6591a75
nios2: change virt_to_phys to use physaddr_mask in global data

As virt_to_phys() is used a lot in DMA transfer, change it
to use physaddr_mask in global data. This will save an "if"
statement and get a little faster.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Acked-by: Marek Vasut <marex@denx.de>
arch/nios2/cpu/cpu.c
arch/nios2/include/asm/global_data.h
arch/nios2/include/asm/io.h