From: Tom Rini Date: Tue, 24 Apr 2018 09:20:51 -0400 Subject: [U-Boot] [RFC PATCH 4/5] arm: v7R: Add support for MPU In-Reply-To: <20180424125448.23109-5-lokeshvutla@ti.com> References: <20180424125448.23109-1-lokeshvutla@ti.com> <20180424125448.23109-5-lokeshvutla@ti.com> Message-ID: <20180424132051.GS31362@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Apr 24, 2018 at 06:24:47PM +0530, Lokesh Vutla wrote: > The Memory Protection Unit(MPU) allows to partition memory into regions > and set individual protection attributes for each region. In absence > of MPU a default map[1] will take effect. Add support for configuring > MPU on Cortex-R, by reusing the existing support for Cortex-M processor. > > [1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0460d/I1002400.html > > Signed-off-by: Lokesh Vutla > --- > arch/arm/Kconfig | 11 +++ > arch/arm/cpu/armv7/Makefile | 2 + > arch/arm/cpu/armv7/mpu_v7r.c | 109 ++++++++++++++++++++++++++++++ > arch/arm/cpu/armv7m/Makefile | 3 +- > arch/arm/cpu/armv7m/mpu.c | 41 +---------- > arch/arm/include/asm/armv7m_mpu.h | 69 +++++++++++++++++++ How close are armv7/mpu_v7r.c and armv7m/mpu.c ? If we did some underlying work so that armv7m/ and be put into armv7/ (and we introduce CPU_V7A say, as I mentioned in another part of the thread so the Makefile isn't too ugly) could we have a single mpu.c file, cleanly? -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: