From: Siva Durga Prasad Paladugu Date: Thu, 13 Jul 2017 13:31:08 +0000 (+0530) Subject: common: board_f: Make reserve_mmu a weak function X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5882230b9f4b6ca390b2e02ab3e9e7a9e52f7fb3;p=thirdparty%2Fu-boot.git common: board_f: Make reserve_mmu a weak function Make reserve_mmu a weak so that it provides an option to customize this routine as per platform need Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/common/board_f.c b/common/board_f.c index a73f09c2536..88e20e0168b 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -429,7 +429,7 @@ static int reserve_round_4k(void) #if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF)) && \ defined(CONFIG_ARM) -static int reserve_mmu(void) +__weak int reserve_mmu(void) { /* reserve TLB table */ gd->arch.tlb_size = PGTABLE_SIZE; diff --git a/include/common.h b/include/common.h index a8d833b9891..b4dfd17ad81 100644 --- a/include/common.h +++ b/include/common.h @@ -338,6 +338,7 @@ void board_show_dram(phys_size_t size); */ int arch_fixup_fdt(void *blob); +int reserve_mmu(void); /* common/flash.c */ void flash_perror (int);