]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: l2c: berlin: convert to generic l2c OF initialisation
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 28 Apr 2014 14:57:21 +0000 (15:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 29 May 2014 23:49:06 +0000 (00:49 +0100)
Remove the explicit call to l2x0_of_init(), converting to the generic
infrastructure instead.  We can remove the explicit machine init too
as this becomes identical to the generic version.

Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-berlin/berlin.c

index 6709d2a6bec8911ce6993a953931bf78ca7c3ac2..ac181c6797ee5784c2f64d80ea1b1f4b2d0fc3b1 100644 (file)
 #include <asm/hardware/cache-l2x0.h>
 #include <asm/mach/arch.h>
 
-static void __init berlin_init_machine(void)
-{
-       /*
-        * with DT probing for L2CCs, berlin_init_machine can be removed.
-        * Note: 88DE3005 (Armada 1500-mini) uses pl310 l2cc
-        */
-       l2x0_of_init(0x30c00000, 0xfeffffff);
-       of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
-}
-
 static const char * const berlin_dt_compat[] = {
        "marvell,berlin",
        NULL,
@@ -35,5 +25,10 @@ static const char * const berlin_dt_compat[] = {
 
 DT_MACHINE_START(BERLIN_DT, "Marvell Berlin")
        .dt_compat      = berlin_dt_compat,
-       .init_machine   = berlin_init_machine,
+       /*
+        * with DT probing for L2CCs, berlin_init_machine can be removed.
+        * Note: 88DE3005 (Armada 1500-mini) uses pl310 l2cc
+        */
+       .l2c_aux_val    = 0x30c00000,
+       .l2c_aux_mask   = 0xfeffffff,
 MACHINE_END