: arm: Provide lowlevel_init C function wrapper for v7
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 2 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/2]: arm: Provide lowlevel_init C function wrapper for v7
Quoted 15 lines · Stefano Babic
Quoted 2 lines · Tom Rini
Hey all,
Hi Tom,
Quoted 8 lines
As Allen Martin noted, on tegra platforms a bug is exposed when using certain toolchains that currently calls to
lowlevel_initmust be calls to another assembly function as the stack is not explicitly setup / saved and thus register corruption can occur. Over in TI-land Aneesh V wrote alowlevel_initthat sets up the stack and callss_initwhich is a C function that does whatlowlevel_initdoes on other platforms. The code is generic to at least v7, so this series moves it toarch/arm/cpu/armv7.
Quoted 6 lines
Then as far as I can see in your patch, other armv7 can profit as well, such as the i.MX5 and i.MX6 ;-)
The only issue is to generalize the entry point for the function to setup PLL and or pinmux. It should be enough to change
lowlevel_inittos_initin i.MX to do the job.
Yes, anyone could switch to this (and if it makes their code cleaner, a
C rather than asm lowlevel_init). Just don't want to force the issue
since it requires that CONFIG_SYS_INIT_SP_ADDR be viable at this point and that's something every platform has to determine for themselves.
Signature · 1 line
Tom