From: Lokesh Vutla Date: Thu, 26 Apr 2018 13:34:16 +0530 Subject: [U-Boot] [PATCH 7/7] arm: v7R: Add support for enabling caches In-Reply-To: <20180425131622.GN31362@bill-the-cat.ec.rr.com> References: <20180425091439.12695-1-lokeshvutla@ti.com> <20180425091439.12695-8-lokeshvutla@ti.com> <20180425131622.GN31362@bill-the-cat.ec.rr.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 4/25/2018 6:46 PM, Tom Rini wrote: > On Wed, Apr 25, 2018 at 02:44:39PM +0530, Lokesh Vutla wrote: > >> Cache maintenance procedure is same for v7A and v7R >> processors. So re-use cache-cp15.c file except for >> mmu parts. > [snip] >> diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/lib/cache-cp15.c >> index b09c631636..051f2789be 100644 >> --- a/arch/arm/lib/cache-cp15.c >> +++ b/arch/arm/lib/cache-cp15.c >> @@ -9,11 +9,15 @@ >> #include >> #include >> #include >> +#ifdef CONFIG_SYS_ARM_MPU >> +#include >> +#endif > > Do we need to guard this include? > Hmm..I guess it can be avoided. Will drop this and resend. Thanks and regards, Lokesh