Răsfoiți Sursa

m68k: add code to setup a ColdFire 54xx platform when MMU enabled

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>
Greg Ungerer 14 ani în urmă
părinte
comite
3731454033
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      arch/m68k/kernel/setup_mm.c

+ 7 - 1
arch/m68k/kernel/setup_mm.c

@@ -221,7 +221,8 @@ void __init setup_arch(char **cmdline_p)
 #endif
 #endif
 
 
 	/* The bootinfo is located right after the kernel bss */
 	/* 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)
 	if (CPU_IS_040)
 		m68k_is040or060 = 4;
 		m68k_is040or060 = 4;
@@ -326,6 +327,11 @@ void __init setup_arch(char **cmdline_p)
 	case MACH_SUN3X:
 	case MACH_SUN3X:
 		config_sun3x();
 		config_sun3x();
 		break;
 		break;
+#endif
+#ifdef CONFIG_COLDFIRE
+	case MACH_M54XX:
+		config_BSP(NULL, 0);
+		break;
 #endif
 #endif
 	default:
 	default:
 		panic("No configuration setup");
 		panic("No configuration setup");