]> git.baikalelectronics.ru Git - uboot.git/commit
ppc: io.h: Use addrmap_ translation APIs only in post-relocation phase
authorBin Meng <bmeng.cn@gmail.com>
Thu, 25 Feb 2021 09:22:37 +0000 (17:22 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:43 +0000 (10:25 +0530)
commite9819cfda4a22f3102b4a3172857e79edd2a7277
treea0baaca753b51a4fad4155253b8478cbc5ce51f7
parentce0f88f94108da1b247ab701142efb43fbd2c0d1
ppc: io.h: Use addrmap_ translation APIs only in post-relocation phase

In phys_to_virt() and virt_to_phys(), if CONFIG_ADDR_MAP is defined,
they use addrmap_ translation APIs to do the address translation.
However these APIs only work in post-relocation phase.

Update the code logic to fall back to use the default one when in
pre-relocation phase.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/include/asm/io.h