From 365af27f0dec5013c9749ee397e9274ff32e06c4 Mon Sep 17 00:00:00 2001 From: Ovidiu Panait Date: Fri, 24 Jul 2020 14:12:24 +0300 Subject: blkcache: Extend blkcache_init to cover CONFIG_NEEDS_MANUAL_RELOC Extend manual relocation of block_cache list pointers to all platforms that enable CONFIG_NEEDS_MANUAL_RELOC. Remove m68k-specific checks and provide a single implementation that adds gd->reloc_off to the pre-relocation pointers. Acked-by: Angelo Dureghello Tested-by: Angelo Dureghello Reviewed-by: Simon Glass Reviewed-by: Eric Nelson Signed-off-by: Ovidiu Panait [trini: Add guard around DECLARE_GLOBAL_DATA_PTR to avoid size growth] Signed-off-by: Tom Rini --- common/board_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/board_r.c') diff --git a/common/board_r.c b/common/board_r.c index 3b2c6e092b..53792e9a31 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -848,7 +848,7 @@ static init_fnc_t init_sequence_r[] = { #if defined(CONFIG_PRAM) initr_mem, #endif -#if defined(CONFIG_M68K) && defined(CONFIG_BLOCK_CACHE) +#if defined(CONFIG_NEEDS_MANUAL_RELOC) && defined(CONFIG_BLOCK_CACHE) blkcache_init, #endif run_main_loop, -- cgit v1.2.3