Skip to content
Commit c8ec1e3f authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Tom Rini
Browse files

arm: caches: protect dram_bank_mmu_setup access to bi_dram



Add protection in dram_bank_mmu_setup() to avoid access to bd->bi_dram
before relocation.

This patch allow to use the generic weak function dram_bank_mmu_setup
to activate the MMU and the data cache in SPL or in U-Boot before
relocation, when bd->bi_dram is not yet initialized.

In this cases, the MMU must be initialized explicitly with
mmu_set_region_dcache_behaviour function.

Signed-off-by: default avatarPatrick Delaunay <patrick.delaunay@st.com>
parent f8dc7f2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment