m68k: add code to setup a ColdFire 54xx platform when MMU enabled
authorGreg Ungerer <gerg@uclinux.org>
Wed, 19 Oct 2011 01:50:34 +0000 (11:50 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Fri, 30 Dec 2011 00:20:42 +0000 (10:20 +1000)
We use the same setup code for ColdFire MMU enabled platforms as
standard m68k. So add support for it to setup our 54xx ColdFire
platforms. They do not support the same bootinfo parsing as other
m68k platforms.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Matt Waddel <mwaddel@yahoo.com>
Acked-by: Kurt Mahan <kmahan@xmission.com>
arch/m68k/kernel/setup_mm.c

index 52e17d1..b3938ad 100644 (file)
@@ -221,7 +221,8 @@ void __init setup_arch(char **cmdline_p)
 #endif
 
        /* The bootinfo is located right after the kernel bss */
-       m68k_parse_bootinfo((const struct bi_record *)_end);
+       if (!CPU_IS_COLDFIRE)
+               m68k_parse_bootinfo((const struct bi_record *)_end);
 
        if (CPU_IS_040)
                m68k_is040or060 = 4;
@@ -327,6 +328,11 @@ void __init setup_arch(char **cmdline_p)
                config_sun3x();
                break;
 #endif
+#ifdef CONFIG_COLDFIRE
+       case MACH_M54XX:
+               config_BSP(NULL, 0);
+               break;
+#endif
        default:
                panic("No configuration setup");
        }