aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/emma2rh/common/prom.c15
-rw-r--r--include/asm-mips/bootinfo.h5
2 files changed, 7 insertions, 13 deletions
diff --git a/arch/mips/emma2rh/common/prom.c b/arch/mips/emma2rh/common/prom.c
index 0f791eb6bb66..5e92b3a9c5b8 100644
--- a/arch/mips/emma2rh/common/prom.c
+++ b/arch/mips/emma2rh/common/prom.c
@@ -34,12 +34,11 @@
34 34
35const char *get_system_type(void) 35const char *get_system_type(void)
36{ 36{
37 switch (mips_machtype) { 37#if defined(CONFIG_MARKEINS)
38 case MACH_NEC_MARKEINS: 38 return "NEC EMMA2RH Mark-eins";
39 return "NEC EMMA2RH Mark-eins"; 39#else
40 default: 40#error Unknown NEC board
41 return "Unknown NEC board"; 41#endif
42 }
43} 42}
44 43
45/* [jsun@junsun.net] PMON passes arguments in C main() style */ 44/* [jsun@junsun.net] PMON passes arguments in C main() style */
@@ -63,10 +62,10 @@ void __init prom_init(void)
63 } 62 }
64 63
65#if defined(CONFIG_MARKEINS) 64#if defined(CONFIG_MARKEINS)
66 mips_machtype = MACH_NEC_MARKEINS;
67 add_memory_region(0, EMMA2RH_RAM_SIZE, BOOT_MEM_RAM); 65 add_memory_region(0, EMMA2RH_RAM_SIZE, BOOT_MEM_RAM);
66#else
67#error Unknown NEC board
68#endif 68#endif
69
70} 69}
71 70
72void __init prom_free_prom_memory(void) 71void __init prom_free_prom_memory(void)
diff --git a/include/asm-mips/bootinfo.h b/include/asm-mips/bootinfo.h
index 653096a69d16..51dbec9dabfd 100644
--- a/include/asm-mips/bootinfo.h
+++ b/include/asm-mips/bootinfo.h
@@ -47,11 +47,6 @@
47#define MACH_LASAT_200 1 /* Masquerade PRO/SP200 */ 47#define MACH_LASAT_200 1 /* Masquerade PRO/SP200 */
48 48
49/* 49/*
50 * Valid machtype for group NEC EMMA2RH
51 */
52#define MACH_NEC_MARKEINS 0 /* NEC EMMA2RH Mark-eins */
53
54/*
55 * Valid machtype for group PMC-MSP 50 * Valid machtype for group PMC-MSP
56 */ 51 */
57#define MACH_MSP4200_EVAL 0 /* PMC-Sierra MSP4200 Evaluation */ 52#define MACH_MSP4200_EVAL 0 /* PMC-Sierra MSP4200 Evaluation */