From: Lokesh Vutla <lokeshvutla@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/7] arm: v7: Kconfig: Introduce SYS_ARM_CACHE_CP15
Date: Thu, 26 Apr 2018 18:21:28 +0530 [thread overview]
Message-ID: <20180426125131.10661-5-lokeshvutla@ti.com> (raw)
In-Reply-To: <20180426125131.10661-1-lokeshvutla@ti.com>
Certain ARM architectures like ARMv7-A, ARMv7-R has support for
enabling caches using CP15 registers. To have a common support
for all these architectures, introduce a Kconfig symbol
SYS_ARM_CACHE_CP15 that selects cache-cp15.c
Tested-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
arch/arm/Kconfig | 7 +++++++
arch/arm/lib/Makefile | 6 +-----
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 8854227d9a..8efaccbcb8 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -74,8 +74,15 @@ config ARM_ASM_UNIFIED
config THUMB2_KERNEL
bool
+config SYS_ARM_CACHE_CP15
+ bool "CP15 based cache enabling support"
+ help
+ Select this if your processor suports enabling caches by using
+ CP15 registers.
+
config SYS_ARM_MMU
bool "MMU-based Paged Memory Management Support"
+ select SYS_ARM_CACHE_CP15
help
Select if you want MMU-based virtualised addressing space
support by paged memory management.
diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile
index 3d3085e917..39c0c693dc 100644
--- a/arch/arm/lib/Makefile
+++ b/arch/arm/lib/Makefile
@@ -63,11 +63,7 @@ obj-y += reset.o
endif
obj-y += cache.o
-ifndef CONFIG_ARM64
-ifndef CONFIG_CPU_V7M
-obj-y += cache-cp15.o
-endif
-endif
+obj-$(CONFIG_SYS_ARM_CACHE_CP15) += cache-cp15.o
obj-y += psci-dt.o
--
2.17.0
next prev parent reply other threads:[~2018-04-26 12:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-26 12:51 [U-Boot] [PATCH v2 0/7] arm: Introduce v7R support Lokesh Vutla
2018-04-26 12:51 ` [U-Boot] [PATCH v2 1/7] arm: v7: Update VBAR only if available Lokesh Vutla
2018-05-08 0:45 ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-04-26 12:51 ` [U-Boot] [PATCH v2 2/7] arm: v7: Kconfig: Rename CPU_V7 as CPU_V7A Lokesh Vutla
2018-05-08 0:45 ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-04-26 12:51 ` [U-Boot] [PATCH v2 3/7] arm: v7: Kconfig: Add entry for MMU Lokesh Vutla
2018-05-08 0:45 ` [U-Boot] [U-Boot,v2,3/7] " Tom Rini
2018-04-26 12:51 ` Lokesh Vutla [this message]
2018-05-08 0:45 ` [U-Boot] [U-Boot, v2, 4/7] arm: v7: Kconfig: Introduce SYS_ARM_CACHE_CP15 Tom Rini
2018-04-26 12:51 ` [U-Boot] [PATCH v2 5/7] arm: v7R: Add initial support Lokesh Vutla
2018-05-08 0:46 ` [U-Boot] [U-Boot,v2,5/7] " Tom Rini
2018-04-26 12:51 ` [U-Boot] [PATCH v2 6/7] arm: v7R: Add support for MPU Lokesh Vutla
2018-04-26 19:11 ` Tom Rini
2018-05-08 0:46 ` [U-Boot] [U-Boot,v2,6/7] " Tom Rini
2018-04-26 12:51 ` [U-Boot] [PATCH v2 7/7] arm: v7R: Add support for enabling caches Lokesh Vutla
2018-04-26 19:11 ` Tom Rini
2018-05-08 0:46 ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-04-26 15:15 ` [U-Boot] [PATCH v2 0/7] arm: Introduce v7R support Alexander Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180426125131.10661-5-lokeshvutla@ti.com \
--to=lokeshvutla@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.