summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Chen <chenjh@rock-chips.com>2019-03-14 18:35:21 +0800
committerJianhong Chen <chenjh@rock-chips.com>2019-03-26 11:04:33 +0800
commit505b141795f509aa8d2eb4073560aff41f91a5bc (patch)
tree3ea9d84a28e61d59e252afff320995ac873884e4
parent6e15146effedeaad2a6687afcbf83d1907a0b996 (diff)
common: board_r: add board_initr_caches_fixup()
Remove dram_initr_banksize(), use mmu_set_region_dcache_behaviour() in board_initr_caches_fixup() to set region MMU table attr is more easily. Change-Id: I9d9917e938fe5bbab5aa27575a5c8592ff08ab50 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
-rw-r--r--common/board_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c
index f8db94c9af..5d550f0446 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -711,7 +711,7 @@ __weak int interrupt_debugger_init(void)
return 0;
}
-__weak int dram_initr_banksize(void)
+__weak int board_initr_caches_fixup(void)
{
return 0;
}
@@ -760,7 +760,7 @@ static init_fnc_t init_sequence_r[] = {
* like other regions, otherwise there would be dcache coherence issue
* between firmware and U-Boot.
*/
- dram_initr_banksize,
+ board_initr_caches_fixup,
#if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500)
initr_unlock_ram_in_cache,