summaryrefslogtreecommitdiff
path: root/arch/sh/cpu/sh4
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2016-11-28 01:15:32 +0300
committerTom Rini <trini@konsulko.com>2016-12-03 05:32:52 +0300
commitbccf09e0e16f812dd61c4972a1125b58a221a87d (patch)
tree91ed8d86c533656412ab3f8a3be0734f35076281 /arch/sh/cpu/sh4
parentcdbb0cf8ecf30d5dbbfa500e8939a32ef45896c5 (diff)
downloadu-boot-bccf09e0e16f812dd61c4972a1125b58a221a87d.tar.xz
sh: add shared relocate_code() function and call board_init_r()
Commits b61e90e6fd83 ("sh: Drop the arch-specific board init") and f41e6088eb1a ("sh: Fix build errors for generic board") left code and data relocation done in start.S, however further actual U-boot configuration is not started anymore. Practically SH boards with the code relocated into the expected position by start.S still can be booted, so the change adds this option and provides an option how to relocate code for board_init_r() execution. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sh/cpu/sh4')
-rw-r--r--arch/sh/cpu/sh4/cpu.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/sh/cpu/sh4/cpu.c b/arch/sh/cpu/sh4/cpu.c
index 49c58aeb20..aa8d4dfcd1 100644
--- a/arch/sh/cpu/sh4/cpu.c
+++ b/arch/sh/cpu/sh4/cpu.c
@@ -41,9 +41,3 @@ int cpu_eth_init(bd_t *bis)
#endif
return 0;
}
-
-void relocate_code(ulong start_addr_sp, gd_t *new_gd, ulong relocaaddr)
-{
- /* TODO(sh maintainer): Implement this */
- while (1);
-}