commit | 39d49a8ce2521666dcec5e2c466cf5b4558f1c80 | [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 | 0a5fee59b9b3b58d879819d092beab10c5484f96 [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>