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

Tom Rini trini at konsulko.com
Wed Apr 25 13:16:22 UTC 2018


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?

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180425/b4319a86/attachment.sig>


More information about the U-Boot mailing list