commit | 3320656944707aff7838b1ccb4c630143a67fe08 | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Thu Feb 25 17:22:37 2021 +0800 |
committer | Priyanka Jain <priyanka.jain@nxp.com> | Fri Mar 05 10:25:43 2021 +0530 |
tree | a0baaca753b51a4fad4155253b8478cbc5ce51f7 | |
parent | e010315899b2dc5e74fec313e9de73d689b92631 [diff] |
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>