summaryrefslogtreecommitdiffstats
path: root/board/freescale/ls2080ardb
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2015-12-07 11:08:58 -0800
committerYork Sun <yorksun@freescale.com>2015-12-15 08:57:33 +0800
commitc04921414c087e15f8fa82d808a25e9338a7e8d5 (patch)
tree440d6c62fb65d6338179268674911168ca297a19 /board/freescale/ls2080ardb
parentaabd7ddb889aec3c6c4139974f66a44e2ce46ba5 (diff)
downloadu-boot-c04921414c087e15f8fa82d808a25e9338a7e8d5.tar.gz
u-boot-c04921414c087e15f8fa82d808a25e9338a7e8d5.tar.xz
u-boot-c04921414c087e15f8fa82d808a25e9338a7e8d5.zip
armv8: fsl-layerscale: Rewrite reserving memory for MC and debug server
MC and debug server are not board-specific. Move reserving memory to SoC file, using the new board_reserve_ram_top function. Reduce debug server memory by 2MB to make room for secure memory. In the system with MC and debug server, the top of u-boot memory is not the end of memory. PRAM is not used for this reservation. Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale/ls2080ardb')
-rw-r--r--board/freescale/ls2080ardb/ls2080ardb.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index 2ae9d6cf45..c63b639625 100644
--- a/board/freescale/ls2080ardb/ls2080ardb.c
+++ b/board/freescale/ls2080ardb/ls2080ardb.c
@@ -219,23 +219,6 @@ int arch_misc_init(void)
}
#endif
-unsigned long get_dram_size_to_hide(void)
-{
- unsigned long dram_to_hide = 0;
-
-/* Carve the Debug Server private DRAM block from the end of DRAM */
-#ifdef CONFIG_FSL_DEBUG_SERVER
- dram_to_hide += debug_server_get_dram_block_size();
-#endif
-
-/* Carve the MC private DRAM block from the end of DRAM */
-#ifdef CONFIG_FSL_MC_ENET
- dram_to_hide += mc_get_dram_block_size();
-#endif
-
- return roundup(dram_to_hide, CONFIG_SYS_MEM_TOP_HIDE_MIN);
-}
-
#ifdef CONFIG_FSL_MC_ENET
void fdt_fixup_board_enet(void *fdt)
{