diff options
author | Ovidiu Panait <ovpanait@gmail.com> | 2022-09-13 21:31:28 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-06 21:05:17 -0400 |
commit | d63fc99435f462cbef5e062cb5f18711c947bf01 (patch) | |
tree | 8b62c9301b30f4257185baa38ff431351b7d7aa4 /include/init.h | |
parent | 85e68ae001d4449f02e6ce99b91e160bd94eb69c (diff) | |
download | u-boot-d63fc99435f462cbef5e062cb5f18711c947bf01.tar.gz |
common/board_f: introduce arch_setup_dest_addr()
In order to move ppc-specific code out of setup_dest_addr(), provide an
arch-specific variant arch_setup_dest_addr(), that can be used by
architecture code to fix up the initial reloc address.
It is called at the end of setup_dest_addr() initcall and the default
implementation is a nop stub.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Diffstat (limited to 'include/init.h')
-rw-r--r-- | include/init.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/init.h b/include/init.h index 50a8302dc54..d40d11f33d2 100644 --- a/include/init.h +++ b/include/init.h @@ -104,6 +104,19 @@ phys_size_t get_effective_memsize(void); int testdram(void); /** + * arch_setup_dest_addr() - Fix up initial reloc address + * + * This is called in generic board init sequence in common/board_f.c at the end + * of the setup_dest_addr() initcall. Each architecture could provide this + * function to make adjustments to the initial reloc address. + * + * If an implementation is not provided, it will just be a nop stub. + * + * Return: 0 if OK + */ +int arch_setup_dest_addr(void); + +/** * arch_reserve_stacks() - Reserve all necessary stacks * * This is used in generic board init sequence in common/board_f.c. Each |