summaryrefslogtreecommitdiff
path: root/drivers/ddr/marvell/a38x/ddr3_training_centralization.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-02-16 11:18:43 +0100
committerStefan Roese <sr@denx.de>2022-02-17 14:17:07 +0100
commit2fb7426cf027a9efcd05975b6f4b2968a4d54834 (patch)
treee07b67514eefdbc26d2316109284ec9a9a7eebf4 /drivers/ddr/marvell/a38x/ddr3_training_centralization.c
parent0eebc3dbe5659cc0163fd37ea87727edd8343379 (diff)
arm: mvebu: a37xx: Fix calling build_mem_map()
Function build_mem_map() modifies global variable mem_map. This variable is used by the get_page_table_size() function which is called by function arm_reserve_mmu() (as aliased macro PGTABLE_SIZE). Function arm_reserve_mmu() is called earlier than enable_caches() which calls build_mem_map(). So arm_reserve_mmu() does not calculate reserved memory correctly. Fix this issue by calling build_mem_map() from a3700_dram_init() which is called before arm_reserve_mmu(). Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Marek Behún <marek.behun@nic.cz>
Diffstat (limited to 'drivers/ddr/marvell/a38x/ddr3_training_centralization.c')
0 files changed, 0 insertions, 0 deletions