[PATCH v2 0/6] imx8 ROM API cleanup
Rasmus Villemoes
rasmus.villemoes at prevas.dk
Mon Jun 20 10:53:16 CEST 2022
The meat of this is patch 3, and the main simplification it offers is
patch 4.
I have private board code where I will need to fetch some data over
USB during bootstrapping, so having a more convenient API would be
useful. But I do believe these patches make sense in their own right.
v2: The original patches were accidentally not sent to the main U-Boot
list, but only uboot-imx at nxp.com and a few individuals.
Peng Fan replied with a R-b for the series, which I've included here
for the first five patches. In patch 6, I missed a place to convert in
the same file, so this is done here, but since the patch is not
identical I've elided the R-b.
Rasmus Villemoes (6):
imx8: add hidden IMX8_ROMAPI Kconfig symbol
imx8: sys_proto.h: change guard logic around ROM API
imx8: add rom api wrappers
imx8: use ROM API wrappers in spl_imx_romapi.c
imx8m: soc.c: use rom_api_query_boot_infor() wrapper
imx8ulp: soc.c: use rom_api_query_boot_infor() wrapper
arch/arm/include/asm/mach-imx/sys_proto.h | 6 ++-
arch/arm/mach-imx/Kconfig | 6 ++-
arch/arm/mach-imx/Makefile | 1 +
arch/arm/mach-imx/imx8m/soc.c | 5 +--
arch/arm/mach-imx/imx8ulp/soc.c | 10 +----
arch/arm/mach-imx/romapi.c | 30 +++++++++++++++
arch/arm/mach-imx/spl_imx_romapi.c | 47 ++++++-----------------
7 files changed, 55 insertions(+), 50 deletions(-)
create mode 100644 arch/arm/mach-imx/romapi.c
--
2.31.1
More information about the U-Boot
mailing list