From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: OMAP2+: AM43x: L2 cache support
Date: Fri, 28 Mar 2014 10:50:54 +0000 [thread overview]
Message-ID: <20140328105054.GD27282@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <013dda556020e852a1bc5b875427e68ab9fdf69a.1395994759.git.nsekhar@ti.com>
On Fri, Mar 28, 2014 at 02:05:29PM +0530, Sekhar Nori wrote:
> diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c
> index 8f18460..763a169 100644
> --- a/arch/arm/mach-omap2/omap4-common.c
> +++ b/arch/arm/mach-omap2/omap4-common.c
> @@ -188,7 +188,7 @@ static int __init omap_l2_cache_init(void)
> * To avoid code running on other OMAPs in
> * multi-omap builds
> */
> - if (!cpu_is_omap44xx())
> + if (!cpu_is_omap44xx() && !soc_is_am43xx())
> return -ENODEV;
>
> /* Static mapping, never released */
> @@ -200,6 +200,7 @@ static int __init omap_l2_cache_init(void)
> * 16-way associativity, parity disabled
> * Way size - 32KB (es1.0)
> * Way size - 64KB (es2.0 +)
> + * Way size - 16KB (am43xx)
> */
> aux_ctrl = ((1 << L2X0_AUX_CTRL_ASSOCIATIVITY_SHIFT) |
> (0x1 << 25) |
> @@ -208,6 +209,11 @@ static int __init omap_l2_cache_init(void)
>
> if (omap_rev() == OMAP4430_REV_ES1_0) {
> aux_ctrl |= 0x2 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT;
> + } else if (soc_is_am43xx()) {
> + aux_ctrl |= ((0x1 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT) |
NAK. This is cargo cult programming. Again, this code is entirely
removed by my L2 cache series.
--
FTTC broadband for 0.8mile line: now@9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
next prev parent reply other threads:[~2014-03-28 10:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 8:35 [PATCH 1/2] ARM: OMAP2+: L2 cache: use macro instead of const number Sekhar Nori
2014-03-28 8:35 ` [PATCH 2/2] ARM: OMAP2+: AM43x: L2 cache support Sekhar Nori
2014-03-28 10:50 ` Russell King - ARM Linux [this message]
2014-03-28 10:49 ` [PATCH 1/2] ARM: OMAP2+: L2 cache: use macro instead of const number Russell King - ARM Linux
2014-03-28 10:59 ` Sekhar Nori
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=20140328105054.GD27282@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).