[U-Boot] [PATCH 7/7] arm: v7R: Add support for enabling caches

Lokesh Vutla lokeshvutla at ti.com
Thu Apr 26 08:04:16 UTC 2018



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 <asm/system.h>
>>  #include <asm/cache.h>
>>  #include <linux/compiler.h>
>> +#ifdef CONFIG_SYS_ARM_MPU
>> +#include <asm/armv7m_mpu.h>
>> +#endif
> 
> Do we need to guard this include?
> 

Hmm..I guess it can be avoided. Will drop this and resend.

Thanks and regards,
Lokesh


More information about the U-Boot mailing list