From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 1 May 2020 17:56:14 -0400 Subject: [PATCH v2 1/3] arm: caches: protect dram_bank_mmu_setup access to bi_dram In-Reply-To: <20200424201957.v2.1.I64599059b66bacb531db38c67273754a145dbad8@changeid> References: <20200424182017.11852-1-patrick.delaunay@st.com> <20200424201957.v2.1.I64599059b66bacb531db38c67273754a145dbad8@changeid> Message-ID: <20200501215614.GL12564@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Apr 24, 2020 at 08:20:15PM +0200, Patrick Delaunay wrote: > 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: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: