]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
common: board_f: Make reserve_mmu a weak function
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Thu, 13 Jul 2017 13:31:08 +0000 (19:01 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 13 Jul 2017 13:42:38 +0000 (15:42 +0200)
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 <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
common/board_f.c
include/common.h

index a73f09c25364c644f51b85b3c043cdbfc37f0ffc..88e20e0168b23c19ab14b261eaa0011a739f1ba7 100644 (file)
@@ -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;
index a8d833b9891fe09c7121c637a7f1f84a8b764d2b..b4dfd17ad8143c89f14c484964bc0430121ce1a5 100644 (file)
@@ -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);