mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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 <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
584dc4095e
commit
60873f736e
2 changed files with 2 additions and 1 deletions
|
@ -340,7 +340,7 @@ static int reserve_round_4k(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ARM
|
#ifdef CONFIG_ARM
|
||||||
static int reserve_mmu(void)
|
__weak int reserve_mmu(void)
|
||||||
{
|
{
|
||||||
#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
|
#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
|
||||||
/* reserve TLB table */
|
/* reserve TLB table */
|
||||||
|
|
|
@ -286,6 +286,7 @@ void board_show_dram(phys_size_t size);
|
||||||
*/
|
*/
|
||||||
int arch_fixup_fdt(void *blob);
|
int arch_fixup_fdt(void *blob);
|
||||||
|
|
||||||
|
int reserve_mmu(void);
|
||||||
/* common/flash.c */
|
/* common/flash.c */
|
||||||
void flash_perror (int);
|
void flash_perror (int);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue