Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313105
b: refs/heads/master
c: c8dd511
h: refs/heads/master
i:
  313103: 70fb3d6
v: v3
  • Loading branch information
Boojin Kim authored and Kukjin Kim committed Jun 27, 2012
1 parent 643d93d commit 9acdfb7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 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: 65ab16fd385f72baf556fcebe5118d8b6f256ace
refs/heads/master: c8dd5110dead436b178bb2d8976290fd5f77a2ee
25 changes: 0 additions & 25 deletions trunk/arch/arm/mach-exynos/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,31 +712,6 @@ static int __init exynos4_l2x0_cache_init(void)
early_initcall(exynos4_l2x0_cache_init);
#endif

static int __init exynos5_l2_cache_init(void)
{
unsigned int val;

if (!soc_is_exynos5250())
return 0;

asm volatile("mrc p15, 0, %0, c1, c0, 0\n"
"bic %0, %0, #(1 << 2)\n" /* cache disable */
"mcr p15, 0, %0, c1, c0, 0\n"
"mrc p15, 1, %0, c9, c0, 2\n"
: "=r"(val));

val |= (1 << 9) | (1 << 5) | (2 << 6) | (2 << 0);

asm volatile("mcr p15, 1, %0, c9, c0, 2\n" : : "r"(val));
asm volatile("mrc p15, 0, %0, c1, c0, 0\n"
"orr %0, %0, #(1 << 2)\n" /* cache enable */
"mcr p15, 0, %0, c1, c0, 0\n"
: : "r"(val));

return 0;
}
early_initcall(exynos5_l2_cache_init);

static int __init exynos_init(void)
{
printk(KERN_INFO "EXYNOS: Initializing architecture\n");
Expand Down

0 comments on commit 9acdfb7

Please sign in to comment.