]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: imx: use imx specific L2 init function on imx6sl
authorShawn Guo <shawn.guo@freescale.com>
Mon, 8 Jul 2013 13:52:33 +0000 (21:52 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:53:42 +0000 (09:53 +0800)
The optimized L2 prefect and power setting done in imx_init_l2cache()
can also benefit imx6sl, so let's call the function on imx6sl as well.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/mach-imx/mach-imx6sl.c

index 132db2609507f44f4806583069123e557ff76e9d..b6ecd792cf1768c0361ef5abba323785902ac933 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2013 Freescale Semiconductor, Inc.
+ * Copyright (C) 2013 Freescale Semiconductor, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -11,7 +11,6 @@
 #include <linux/irqchip.h>
 #include <linux/of.h>
 #include <linux/of_platform.h>
-#include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
 
@@ -26,7 +25,7 @@ static void __init imx6sl_init_machine(void)
 
 static void __init imx6sl_init_irq(void)
 {
-       l2x0_of_init(0, ~0UL);
+       imx_init_l2cache();
        imx_src_init();
        imx_gpc_init();
        irqchip_init();