[PATCH v2 16/38] ppc: io.h: Use addrmap_ translation APIs only in post-relocation phase

Priyanka Jain priyanka.jain at nxp.com
Mon Feb 22 09:55:42 CET 2021



>-----Original Message-----
>From: Bin Meng <bmeng.cn at gmail.com>
>Sent: Thursday, February 18, 2021 9:28 PM
>To: Simon Glass <sjg at chromium.org>; Alexander Graf <agraf at csgraf.de>;
>Priyanka Jain <priyanka.jain at nxp.com>
>Cc: U-Boot Mailing List <u-boot at lists.denx.de>; Tom Rini
><trini at konsulko.com>
>Subject: [PATCH v2 16/38] 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 at gmail.com>
>---
>
>(no changes since v1)
>
> arch/powerpc/include/asm/io.h | 15 +++++++++------
> 1 file changed, 9 insertions(+), 6 deletions(-)
>
Reviewed-by: Priyanka Jain <priyanka.jain at nxp.com>


More information about the U-Boot mailing list