Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295865
b: refs/heads/master
c: 6cdeddc
h: refs/heads/master
i:
  295863: ff73348
v: v3
  • Loading branch information
Amit Daniel Kachhap authored and Kukjin Kim committed Mar 9, 2012
1 parent 5ec2c57 commit 3a96862
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d0341c61a2f641c4f90f4ed4b0d538c9bcb63d18
refs/heads/master: 6cdeddcc8149672d4b888709d063825a80304d09
13 changes: 11 additions & 2 deletions trunk/arch/arm/mach-exynos/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
#include <plat/regs-serial.h>

#include "common.h"
#define L2_AUX_VAL 0x7C470001
#define L2_AUX_MASK 0xC200ffff

static const char name_exynos4210[] = "EXYNOS4210";
static const char name_exynos4212[] = "EXYNOS4212";
Expand Down Expand Up @@ -443,6 +445,14 @@ core_initcall(exynos4_core_init);
#ifdef CONFIG_CACHE_L2X0
static int __init exynos4_l2x0_cache_init(void)
{
int ret;
ret = l2x0_of_init(L2_AUX_VAL, L2_AUX_MASK);
if (!ret) {
l2x0_regs_phys = virt_to_phys(&l2x0_saved_regs);
clean_dcache_area(&l2x0_regs_phys, sizeof(unsigned long));
return 0;
}

if (!(__raw_readl(S5P_VA_L2CC + L2X0_CTRL) & 0x1)) {
l2x0_saved_regs.phy_base = EXYNOS4_PA_L2CC;
/* TAG, Data Latency Control: 2 cycles */
Expand Down Expand Up @@ -476,8 +486,7 @@ static int __init exynos4_l2x0_cache_init(void)
clean_dcache_area(&l2x0_saved_regs, sizeof(struct l2x0_regs));
}

l2x0_init(S5P_VA_L2CC, 0x7C470001, 0xC200ffff);

l2x0_init(S5P_VA_L2CC, L2_AUX_VAL, L2_AUX_MASK);
return 0;
}

Expand Down

0 comments on commit 3a96862

Please sign in to comment.