From: olof@lixom.net (Olof Johansson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V5 4/6] arm: mvebu: add L2 cache support
Date: Sat, 29 Sep 2012 16:20:30 -0700 [thread overview]
Message-ID: <20120929232030.GA27733@quad.lixom.net> (raw)
In-Reply-To: <1348675370-16359-5-git-send-email-gregory.clement@free-electrons.com>
Hi,
On Wed, Sep 26, 2012 at 06:02:48PM +0200, Gregory CLEMENT wrote:
> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
> Tested-and-reviewed-by: Yehuda Yitschak <yehuday@marvell.com>
> Tested-and-reviewed-by: Lior Amsalem <alior@marvell.com>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
>
> Cc: Jason Cooper <jason@lakedaemon.net>
> Cc: Andrew Lunn <andrew@lunn.ch>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Cc: Olof Johansson <olof@lixom.net>
> ---
> arch/arm/mach-mvebu/Kconfig | 1 +
> arch/arm/mach-mvebu/irq-armada-370-xp.c | 4 ++++
> 2 files changed, 5 insertions(+)
>
> diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
> index caa2c5e..e20c5e9 100644
> --- a/arch/arm/mach-mvebu/Kconfig
> +++ b/arch/arm/mach-mvebu/Kconfig
> @@ -6,6 +6,7 @@ config MACH_ARMADA_370_XP
> bool "Marvell Armada 370 and Aramada XP boards"
> select ARMADA_370_XP_TIMER
> select CPU_V7
> + select CACHE_L2X0
> help
>
> Say 'Y' here if you want your kernel to support boards based on
> diff --git a/arch/arm/mach-mvebu/irq-armada-370-xp.c b/arch/arm/mach-mvebu/irq-armada-370-xp.c
> index 5f5f939..570be84 100644
> --- a/arch/arm/mach-mvebu/irq-armada-370-xp.c
> +++ b/arch/arm/mach-mvebu/irq-armada-370-xp.c
> @@ -24,6 +24,7 @@
> #include <linux/irqdomain.h>
> #include <asm/mach/arch.h>
> #include <asm/exception.h>
> +#include <asm/hardware/cache-l2x0.h>
>
> /* Interrupt Controller Registers Map */
> #define ARMADA_370_XP_INT_SET_MASK_OFFS (0x48)
> @@ -130,4 +131,7 @@ static const struct of_device_id mpic_of_match[] __initconst = {
> void __init armada_370_xp_init_irq(void)
> {
> of_irq_init(mpic_of_match);
> +#ifdef CONFIG_CACHE_L2X0
> + l2x0_of_init(0, ~0UL);
> +#endif
Nit: No need for ifdefs here, if CONFIG_CACHE_L2X0 or CONFIG_OF aren't
set, a stub inline of the function is provided by cache-l2x0.h.
-Olof
next prev parent reply other threads:[~2012-09-29 23:20 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-26 16:02 [PATCH V5] Add support for Aurora L2 Cache Controller Gregory CLEMENT
2012-09-26 16:02 ` [PATCH V5 1/6] arm: cache-l2x0: make outer_cache_fns a field of l2x0_of_data Gregory CLEMENT
2012-09-26 16:14 ` Jason Cooper
2012-09-26 16:33 ` Gregory CLEMENT
2012-09-26 16:02 ` [PATCH V5 2/6] arm: cache-l2x0: add an optional register to save/restore Gregory CLEMENT
2012-09-26 16:02 ` [PATCH V5 3/6] arm: cache-l2x0: add support for Aurora L2 cache ctrl Gregory CLEMENT
2012-09-26 17:11 ` Catalin Marinas
2012-09-27 9:35 ` Gregory CLEMENT
2012-09-27 9:35 ` [PATCH V6 " Gregory CLEMENT
2012-10-23 9:01 ` Russell King - ARM Linux
2012-10-23 9:43 ` Gregory CLEMENT
2012-10-23 10:00 ` Russell King - ARM Linux
2012-10-23 10:23 ` Gregory CLEMENT
2012-11-04 22:32 ` Russell King - ARM Linux
2012-11-05 23:50 ` Gregory CLEMENT
2012-11-06 0:24 ` Russell King - ARM Linux
2012-11-06 0:59 ` Gregory CLEMENT
2012-11-08 14:08 ` Arnd Bergmann
2012-11-08 14:21 ` Russell King - ARM Linux
2012-11-08 14:42 ` Arnd Bergmann
2012-09-26 16:02 ` [PATCH V5 4/6] arm: mvebu: add L2 cache support Gregory CLEMENT
2012-09-29 23:20 ` Olof Johansson [this message]
2012-09-26 16:02 ` [PATCH V5 5/6] arm: mvebu: add Aurora L2 Cache Controller to the DT Gregory CLEMENT
2012-09-26 16:02 ` [PATCH V5 6/6] arm: l2x0: add aurora related properties to OF binding Gregory CLEMENT
2012-09-26 16:08 ` [PATCH V5] Add support for Aurora L2 Cache Controller Gregory CLEMENT
2012-09-26 16:24 ` Jason Cooper
2012-09-26 16:40 ` Gregory CLEMENT
2012-09-26 18:48 ` Jason Cooper
2012-09-27 7:31 ` Gregory CLEMENT
2012-09-30 23:55 ` Jason Cooper
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=20120929232030.GA27733@quad.lixom.net \
--to=olof@lixom.net \
--cc=linux-arm-kernel@lists.infradead.org \
/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.