Patchwork [U-Boot] arm:exynos: Enable data cache at exynos based processors.

login
register
mail settings
Submitter Łukasz Majewski
Date Aug. 7, 2012, 1:24 p.m.
Message ID <1344345843-26946-1-git-send-email-l.majewski@samsung.com>
Download mbox | patch
Permalink /patch/175626/
State Accepted
Commit d7957d1d437926b65d0cb774825274caf57f07c7
Delegated to: Minkyu Kang
Headers show

Comments

Łukasz Majewski - Aug. 7, 2012, 1:24 p.m.
This patch enables the L1 data cache for systems based on Samsung
Exynos processor.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
---
 arch/arm/cpu/armv7/exynos/soc.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Minkyu Kang - Aug. 16, 2012, 8:06 a.m.
On 7 August 2012 22:24, Lukasz Majewski <l.majewski@samsung.com> wrote:
> This patch enables the L1 data cache for systems based on Samsung
> Exynos processor.
>
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> Cc: Minkyu Kang <mk7.kang@samsung.com>
> ---
>  arch/arm/cpu/armv7/exynos/soc.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
>

applied to u-boot-samsung.

Thanks.
Minkyu Kang.

Patch

diff --git a/arch/arm/cpu/armv7/exynos/soc.c b/arch/arm/cpu/armv7/exynos/soc.c
index dcfcec2..ab65b8d 100644
--- a/arch/arm/cpu/armv7/exynos/soc.c
+++ b/arch/arm/cpu/armv7/exynos/soc.c
@@ -28,3 +28,11 @@  void reset_cpu(ulong addr)
 {
 	writel(0x1, samsung_get_base_swreset());
 }
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+	/* Enable D-cache. I-cache is already enabled in start.S */
+	dcache_enable();
+}
+#endif