From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 05 Nov 2014 17:58:14 +0100 Subject: [U-Boot] porting u-boot, MMU question In-Reply-To: <1415205392077-194761.post@n7.nabble.com> References: <1415205392077-194761.post@n7.nabble.com> Message-ID: <545A5726.70800@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi David, On 05/11/2014 17:36, DaveKucharczyk wrote: > I'm trying to upgrade u-boot-2009.08 to u-boot-2014.07. > > Our board is loosely based on the Freescale mx53loco board. I used the old > board file and config header files and moved them over to new u-boot > directory. Then using the new api to make changes. > > I'm now trying to figure out how to port and turn on the MMU part below. I > noticed the below code is not in the new mx53loco board file anymore and > MMU_ON() doesn't exist either, since include/asm-arm/mmu.h is not included > in new u-boot. Instead of doing this, I think it will be easier if you start from the current mx53loco nad make the customization for your board. Freescale's U-Boot (2009.08) and mainline diverged, as well as some internal API. > > So how do I get the same effect? I see arch/arm/cpu/armv8/cache_v8.c and > arch/arm/lib/cache-cp15.c are the likely candidates? You do not need to care about that. Cache is activated per default with mx5/mx6, if you do not explicitely deactivate it in your config file. You do not need to bother about MMU setup in your board files. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================