diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2021-02-25 17:22:37 +0800 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2021-03-05 10:25:43 +0530 |
commit | 3320656944707aff7838b1ccb4c630143a67fe08 (patch) | |
tree | a0baaca753b51a4fad4155253b8478cbc5ce51f7 /common/board_r.c | |
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>
Diffstat (limited to 'common/board_r.c')
0 files changed, 0 insertions, 0 deletions