Files
u-boot/arch/arm/include/asm
Rasmus Villemoes 748da8abb0 imx8: add rom api wrappers
The ROM API is thoroughly undocumented, but apparently passing the xor
of the real arguments as an extra argument is required [1]. Also, we
need to do the "save gd/restore gd" dance. These are both error-prone,
and lead to a lot of code duplication.

Since both imx8m[np] and imx8ulp SOCs have this, add a separate
translation unit which is included precisely when the new
CONFIG_IMX8_ROMAPI symbol is set, which provide convenience wrappers
that take care of computing the xor value as well as doing the gd
dance, and that thus have a more intuitive API. Subsequent patches
will make use of these to reduce boilerplate.

[1] One wonders, for example, if the check is only applied to the
lower 32 bits, or if we're implicitly relying on all 64-bit pointer
values we're passing effectively have 0 in the upper 32 bits.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2022-07-25 15:35:34 +02:00
..
2022-07-25 15:35:34 +02:00
2022-07-08 17:57:33 -04:00
2018-09-25 21:49:18 -04:00
2021-09-24 14:30:46 -04:00
2022-02-23 05:25:17 +01:00
2020-01-24 11:19:52 -05:00
2022-03-02 13:59:29 -05:00
2022-01-19 18:11:34 +01:00
2022-03-02 13:59:29 -05:00
2022-04-01 16:56:53 -04:00
2021-09-30 08:08:56 -04:00