public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 07/11] Exynos542x: cache: Disable clean/evict push to external
Date: Tue, 17 Feb 2015 20:50:36 +0900	[thread overview]
Message-ID: <54E32B0C.5050903@samsung.com> (raw)
In-Reply-To: <1422951540-11962-8-git-send-email-akshay.s@samsung.com>

Hi,

On 03/02/15 17:18, Akshay Saraswat wrote:
> L2 Auxiliary Control Register provides configuration
> and control options for the L2 memory system. Bit 3
> of L2ACTLR stands for clean/evict push to external.
> Setting bit 3 disables clean/evict which is what
> this patch intends to do.
> 
> Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> Tested-by: Simon Glass <sjg@chromium.org>
> ---
> Changes since v1:
> 	- Added Reviewed-by & Tested-by.
> 
>  arch/arm/cpu/armv7/exynos/soc.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm/cpu/armv7/exynos/soc.c b/arch/arm/cpu/armv7/exynos/soc.c
> index 8c7d7d8..7268b9b 100644
> --- a/arch/arm/cpu/armv7/exynos/soc.c
> +++ b/arch/arm/cpu/armv7/exynos/soc.c
> @@ -45,6 +45,15 @@ static void exynos5_set_l2cache_params(void)
>  		CACHE_DATA_RAM_LATENCY;
>  
>  	asm volatile("mcr p15, 1, %0, c9, c0, 2\n" : : "r"(val));
> +
> +#ifdef CONFIG_EXYNOS5420

I think you can use proid_is.. instead of ifdef

> +	/* Read CP15 L2ACTLR value */
> +	asm volatile("mrc	p15, 1, %0, c15, c0, 0" : "=r" (val));
> +	/* Disable clean/evict push to external */
> +	val |= (0x1 << 3);
> +	/* Write new vlaue to L2ACTLR */
> +	asm volatile("mcr	p15, 1, %0, c15, c0, 0" : : "r" (val));
> +#endif
>  }
>  
>  /*
> 

Thanks,
Minkyu Kang.

  reply	other threads:[~2015-02-17 11:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03  8:18 [U-Boot] [PATCH v2 00/11] Add support for booting multiple cores Akshay Saraswat
2015-02-03  8:18 ` [U-Boot] [PATCH v2 01/11] Exynos542x: Config: Add various configs Akshay Saraswat
2015-02-03  8:18 ` [U-Boot] [PATCH v2 02/11] Exynos542x: CPU: Power down all secondary cores Akshay Saraswat
2015-02-04 15:00   ` Simon Glass
2015-02-03  8:18 ` [U-Boot] [PATCH v2 03/11] Exynos542x: Add workaround for ARM errata 798870 Akshay Saraswat
2015-02-03  8:18 ` [U-Boot] [PATCH v2 04/11] Exynos542x: Add workaround for ARM errata 799270 Akshay Saraswat
2015-02-03  8:18 ` [U-Boot] [PATCH v2 05/11] Exynos542x: Add workaround for exynos iROM errata Akshay Saraswat
2015-02-03  8:18 ` [U-Boot] [PATCH v2 06/11] Exynos542x: Change ambiguous function name set_l2cache Akshay Saraswat
2015-02-03  8:18 ` [U-Boot] [PATCH v2 07/11] Exynos542x: cache: Disable clean/evict push to external Akshay Saraswat
2015-02-17 11:50   ` Minkyu Kang [this message]
2015-02-03  8:18 ` [U-Boot] [PATCH v2 08/11] Exynos542x: add L2 control register configuration Akshay Saraswat
2015-02-17 11:50   ` Minkyu Kang
2015-02-03  8:18 ` [U-Boot] [PATCH v2 09/11] Exynos542x: Fix secondary core booting for thumb Akshay Saraswat
2015-02-03  8:18 ` [U-Boot] [PATCH v2 10/11] Exynos542x: Make A7s boot with thumb-mode U-Boot on warm reset Akshay Saraswat
2015-02-03  8:19 ` [U-Boot] [PATCH v2 11/11] Exynos: Fix L2 cache timings on Exynos5420 and Exynos5800 Akshay Saraswat
2015-02-04 15:01   ` Simon Glass

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=54E32B0C.5050903@samsung.com \
    --to=mk7.kang@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox