diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:46:08 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-11 18:46:08 -0400 |
commit | 05dc8c02bf40090e9ed23932b1980ead48eb8870 (patch) | |
tree | ebf34c90f31b52e1a0c1e6185a50a1470c1b3677 /arch | |
parent | 112b20a1e849aec8077bbf11fc3de338b62f363a (diff) |
[MIPS] ARC: Get rid of mips_machgroup
This has not been any serious user of this ill conceived thing since the
original invention in like '95.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
27 files changed, 1 insertions, 57 deletions
diff --git a/arch/mips/au1000/db1x00/init.c b/arch/mips/au1000/db1x00/init.c index 0a3f025eb023..e6bdd07cc093 100644 --- a/arch/mips/au1000/db1x00/init.c +++ b/arch/mips/au1000/db1x00/init.c | |||
@@ -59,8 +59,6 @@ void __init prom_init(void) | |||
59 | prom_argv = (char **) fw_arg1; | 59 | prom_argv = (char **) fw_arg1; |
60 | prom_envp = (char **) fw_arg2; | 60 | prom_envp = (char **) fw_arg2; |
61 | 61 | ||
62 | mips_machgroup = MACH_GROUP_ALCHEMY; | ||
63 | |||
64 | /* Set the platform # */ | 62 | /* Set the platform # */ |
65 | #if defined (CONFIG_MIPS_DB1550) | 63 | #if defined (CONFIG_MIPS_DB1550) |
66 | mips_machtype = MACH_DB1550; | 64 | mips_machtype = MACH_DB1550; |
diff --git a/arch/mips/au1000/mtx-1/init.c b/arch/mips/au1000/mtx-1/init.c index 88f2b6d97281..2aa7b2ed6a8c 100644 --- a/arch/mips/au1000/mtx-1/init.c +++ b/arch/mips/au1000/mtx-1/init.c | |||
@@ -56,7 +56,6 @@ void __init prom_init(void) | |||
56 | prom_argv = (char **) fw_arg1; | 56 | prom_argv = (char **) fw_arg1; |
57 | prom_envp = (char **) fw_arg2; | 57 | prom_envp = (char **) fw_arg2; |
58 | 58 | ||
59 | mips_machgroup = MACH_GROUP_ALCHEMY; | ||
60 | mips_machtype = MACH_MTX1; /* set the platform # */ | 59 | mips_machtype = MACH_MTX1; /* set the platform # */ |
61 | 60 | ||
62 | prom_init_cmdline(); | 61 | prom_init_cmdline(); |
diff --git a/arch/mips/au1000/pb1000/init.c b/arch/mips/au1000/pb1000/init.c index e9fa1bab81f3..4535f7208e18 100644 --- a/arch/mips/au1000/pb1000/init.c +++ b/arch/mips/au1000/pb1000/init.c | |||
@@ -54,7 +54,6 @@ void __init prom_init(void) | |||
54 | prom_argv = (char **) fw_arg1; | 54 | prom_argv = (char **) fw_arg1; |
55 | prom_envp = (char **) fw_arg2; | 55 | prom_envp = (char **) fw_arg2; |
56 | 56 | ||
57 | mips_machgroup = MACH_GROUP_ALCHEMY; | ||
58 | mips_machtype = MACH_PB1000; | 57 | mips_machtype = MACH_PB1000; |
59 | 58 | ||
60 | prom_init_cmdline(); | 59 | prom_init_cmdline(); |
diff --git a/arch/mips/au1000/pb1100/init.c b/arch/mips/au1000/pb1100/init.c index 6131b56f41b5..7ba6852de7cd 100644 --- a/arch/mips/au1000/pb1100/init.c +++ b/arch/mips/au1000/pb1100/init.c | |||
@@ -55,7 +55,6 @@ void __init prom_init(void) | |||
55 | prom_argv = (char **) fw_arg1; | 55 | prom_argv = (char **) fw_arg1; |
56 | prom_envp = (char **) fw_arg3; | 56 | prom_envp = (char **) fw_arg3; |
57 | 57 | ||
58 | mips_machgroup = MACH_GROUP_ALCHEMY; | ||
59 | mips_machtype = MACH_PB1100; | 58 | mips_machtype = MACH_PB1100; |
60 | 59 | ||
61 | prom_init_cmdline(); | 60 | prom_init_cmdline(); |
diff --git a/arch/mips/au1000/pb1200/init.c b/arch/mips/au1000/pb1200/init.c index 27f09e374e15..5a70029d5388 100644 --- a/arch/mips/au1000/pb1200/init.c +++ b/arch/mips/au1000/pb1200/init.c | |||
@@ -55,7 +55,6 @@ void __init prom_init(void) | |||
55 | prom_argv = (char **) fw_arg1; | 55 | prom_argv = (char **) fw_arg1; |
56 | prom_envp = (char **) fw_arg2; | 56 | prom_envp = (char **) fw_arg2; |
57 | 57 | ||
58 | mips_machgroup = MACH_GROUP_ALCHEMY; | ||
59 | mips_machtype = MACH_PB1200; | 58 | mips_machtype = MACH_PB1200; |
60 | 59 | ||
61 | prom_init_cmdline(); | 60 | prom_init_cmdline(); |
diff --git a/arch/mips/au1000/pb1500/init.c b/arch/mips/au1000/pb1500/init.c index 733d2e469db2..e58a9d6c5021 100644 --- a/arch/mips/au1000/pb1500/init.c +++ b/arch/mips/au1000/pb1500/init.c | |||
@@ -55,7 +55,6 @@ void __init prom_init(void) | |||
55 | prom_argv = (char **) fw_arg1; | 55 | prom_argv = (char **) fw_arg1; |
56 | prom_envp = (char **) fw_arg2; | 56 | prom_envp = (char **) fw_arg2; |
57 | 57 | ||
58 | mips_machgroup = MACH_GROUP_ALCHEMY; | ||
59 | mips_machtype = MACH_PB1500; | 58 | mips_machtype = MACH_PB1500; |
60 | 59 | ||
61 | prom_init_cmdline(); | 60 | prom_init_cmdline(); |
diff --git a/arch/mips/au1000/pb1550/init.c b/arch/mips/au1000/pb1550/init.c index 41daa3371be3..fad53bf5aad1 100644 --- a/arch/mips/au1000/pb1550/init.c +++ b/arch/mips/au1000/pb1550/init.c | |||
@@ -55,7 +55,6 @@ void __init prom_init(void) | |||
55 | prom_argv = (char **) fw_arg1; | 55 | prom_argv = (char **) fw_arg1; |
56 | prom_envp = (char **) fw_arg2; | 56 | prom_envp = (char **) fw_arg2; |
57 | 57 | ||
58 | mips_machgroup = MACH_GROUP_ALCHEMY; | ||
59 | mips_machtype = MACH_PB1550; | 58 | mips_machtype = MACH_PB1550; |
60 | 59 | ||
61 | prom_init_cmdline(); | 60 | prom_init_cmdline(); |
diff --git a/arch/mips/au1000/xxs1500/init.c b/arch/mips/au1000/xxs1500/init.c index f1c76533b6fc..9f839c36f69e 100644 --- a/arch/mips/au1000/xxs1500/init.c +++ b/arch/mips/au1000/xxs1500/init.c | |||
@@ -54,7 +54,6 @@ void __init prom_init(void) | |||
54 | prom_argv = (char **) fw_arg1; | 54 | prom_argv = (char **) fw_arg1; |
55 | prom_envp = (char **) fw_arg2; | 55 | prom_envp = (char **) fw_arg2; |
56 | 56 | ||
57 | mips_machgroup = MACH_GROUP_ALCHEMY; | ||
58 | mips_machtype = MACH_XXS1500; /* set the platform # */ | 57 | mips_machtype = MACH_XXS1500; /* set the platform # */ |
59 | 58 | ||
60 | prom_init_cmdline(); | 59 | prom_init_cmdline(); |
diff --git a/arch/mips/basler/excite/excite_prom.c b/arch/mips/basler/excite/excite_prom.c index 6ecd512b999d..2d752c2f6e59 100644 --- a/arch/mips/basler/excite/excite_prom.c +++ b/arch/mips/basler/excite/excite_prom.c | |||
@@ -136,7 +136,6 @@ void __init prom_init(void) | |||
136 | # error 64 bit support not implemented | 136 | # error 64 bit support not implemented |
137 | #endif /* CONFIG_64BIT */ | 137 | #endif /* CONFIG_64BIT */ |
138 | 138 | ||
139 | mips_machgroup = MACH_GROUP_TITAN; | ||
140 | mips_machtype = MACH_TITAN_EXCITE; | 139 | mips_machtype = MACH_TITAN_EXCITE; |
141 | } | 140 | } |
142 | 141 | ||
diff --git a/arch/mips/cobalt/setup.c b/arch/mips/cobalt/setup.c index fc9cbb251edc..5d2e8790b28b 100644 --- a/arch/mips/cobalt/setup.c +++ b/arch/mips/cobalt/setup.c | |||
@@ -114,8 +114,6 @@ void __init prom_init(void) | |||
114 | unsigned long memsz; | 114 | unsigned long memsz; |
115 | char **argv; | 115 | char **argv; |
116 | 116 | ||
117 | mips_machgroup = MACH_GROUP_COBALT; | ||
118 | |||
119 | memsz = fw_arg0 & 0x7fff0000; | 117 | memsz = fw_arg0 & 0x7fff0000; |
120 | narg = fw_arg0 & 0x0000ffff; | 118 | narg = fw_arg0 & 0x0000ffff; |
121 | 119 | ||
diff --git a/arch/mips/dec/prom/identify.c b/arch/mips/dec/prom/identify.c index cd85924e2572..95e26f4bb38f 100644 --- a/arch/mips/dec/prom/identify.c +++ b/arch/mips/dec/prom/identify.c | |||
@@ -133,9 +133,6 @@ void __init prom_identify_arch(u32 magic) | |||
133 | dec_firmrev = (dec_sysid & 0xff00) >> 8; | 133 | dec_firmrev = (dec_sysid & 0xff00) >> 8; |
134 | dec_etc = dec_sysid & 0xff; | 134 | dec_etc = dec_sysid & 0xff; |
135 | 135 | ||
136 | /* We're obviously one of the DEC machines */ | ||
137 | mips_machgroup = MACH_GROUP_DEC; | ||
138 | |||
139 | /* | 136 | /* |
140 | * FIXME: This may not be an exhaustive list of DECStations/Servers! | 137 | * FIXME: This may not be an exhaustive list of DECStations/Servers! |
141 | * Put all model-specific initialisation calls here. | 138 | * Put all model-specific initialisation calls here. |
diff --git a/arch/mips/emma2rh/common/prom.c b/arch/mips/emma2rh/common/prom.c index 7433bd8e5562..0f791eb6bb66 100644 --- a/arch/mips/emma2rh/common/prom.c +++ b/arch/mips/emma2rh/common/prom.c | |||
@@ -62,8 +62,6 @@ void __init prom_init(void) | |||
62 | strcat(arcs_cmdline, " "); | 62 | strcat(arcs_cmdline, " "); |
63 | } | 63 | } |
64 | 64 | ||
65 | mips_machgroup = MACH_GROUP_NEC_EMMA2RH; | ||
66 | |||
67 | #if defined(CONFIG_MARKEINS) | 65 | #if defined(CONFIG_MARKEINS) |
68 | mips_machtype = MACH_NEC_MARKEINS; | 66 | mips_machtype = MACH_NEC_MARKEINS; |
69 | add_memory_region(0, EMMA2RH_RAM_SIZE, BOOT_MEM_RAM); | 67 | add_memory_region(0, EMMA2RH_RAM_SIZE, BOOT_MEM_RAM); |
diff --git a/arch/mips/fw/arc/identify.c b/arch/mips/fw/arc/identify.c index 5d28dbe06f40..28dfd2e2989a 100644 --- a/arch/mips/fw/arc/identify.c +++ b/arch/mips/fw/arc/identify.c | |||
@@ -22,7 +22,6 @@ | |||
22 | struct smatch { | 22 | struct smatch { |
23 | char *arcname; | 23 | char *arcname; |
24 | char *liname; | 24 | char *liname; |
25 | int group; | ||
26 | int type; | 25 | int type; |
27 | int flags; | 26 | int flags; |
28 | }; | 27 | }; |
@@ -31,49 +30,41 @@ static struct smatch mach_table[] = { | |||
31 | { | 30 | { |
32 | .arcname = "SGI-IP22", | 31 | .arcname = "SGI-IP22", |
33 | .liname = "SGI Indy", | 32 | .liname = "SGI Indy", |
34 | .group = MACH_GROUP_SGI, | ||
35 | .type = MACH_SGI_IP22, | 33 | .type = MACH_SGI_IP22, |
36 | .flags = PROM_FLAG_ARCS, | 34 | .flags = PROM_FLAG_ARCS, |
37 | }, { | 35 | }, { |
38 | .arcname = "SGI-IP27", | 36 | .arcname = "SGI-IP27", |
39 | .liname = "SGI Origin", | 37 | .liname = "SGI Origin", |
40 | .group = MACH_GROUP_SGI, | ||
41 | .type = MACH_SGI_IP27, | 38 | .type = MACH_SGI_IP27, |
42 | .flags = PROM_FLAG_ARCS, | 39 | .flags = PROM_FLAG_ARCS, |
43 | }, { | 40 | }, { |
44 | .arcname = "SGI-IP28", | 41 | .arcname = "SGI-IP28", |
45 | .liname = "SGI IP28", | 42 | .liname = "SGI IP28", |
46 | .group = MACH_GROUP_SGI, | ||
47 | .type = MACH_SGI_IP28, | 43 | .type = MACH_SGI_IP28, |
48 | .flags = PROM_FLAG_ARCS, | 44 | .flags = PROM_FLAG_ARCS, |
49 | }, { | 45 | }, { |
50 | .arcname = "SGI-IP30", | 46 | .arcname = "SGI-IP30", |
51 | .liname = "SGI Octane", | 47 | .liname = "SGI Octane", |
52 | .group = MACH_GROUP_SGI, | ||
53 | .type = MACH_SGI_IP30, | 48 | .type = MACH_SGI_IP30, |
54 | .flags = PROM_FLAG_ARCS, | 49 | .flags = PROM_FLAG_ARCS, |
55 | }, { | 50 | }, { |
56 | .arcname = "SGI-IP32", | 51 | .arcname = "SGI-IP32", |
57 | .liname = "SGI O2", | 52 | .liname = "SGI O2", |
58 | .group = MACH_GROUP_SGI, | ||
59 | .type = MACH_SGI_IP32, | 53 | .type = MACH_SGI_IP32, |
60 | .flags = PROM_FLAG_ARCS, | 54 | .flags = PROM_FLAG_ARCS, |
61 | }, { | 55 | }, { |
62 | .arcname = "Microsoft-Jazz", | 56 | .arcname = "Microsoft-Jazz", |
63 | .liname = "Jazz MIPS_Magnum_4000", | 57 | .liname = "Jazz MIPS_Magnum_4000", |
64 | .group = MACH_GROUP_JAZZ, | ||
65 | .type = MACH_MIPS_MAGNUM_4000, | 58 | .type = MACH_MIPS_MAGNUM_4000, |
66 | .flags = 0, | 59 | .flags = 0, |
67 | }, { | 60 | }, { |
68 | .arcname = "PICA-61", | 61 | .arcname = "PICA-61", |
69 | .liname = "Jazz Acer_PICA_61", | 62 | .liname = "Jazz Acer_PICA_61", |
70 | .group = MACH_GROUP_JAZZ, | ||
71 | .type = MACH_ACER_PICA_61, | 63 | .type = MACH_ACER_PICA_61, |
72 | .flags = 0, | 64 | .flags = 0, |
73 | }, { | 65 | }, { |
74 | .arcname = "RM200PCI", | 66 | .arcname = "RM200PCI", |
75 | .liname = "SNI RM200_PCI", | 67 | .liname = "SNI RM200_PCI", |
76 | .group = MACH_GROUP_SNI_RM, | ||
77 | .type = MACH_SNI_RM200_PCI, | 68 | .type = MACH_SNI_RM200_PCI, |
78 | .flags = PROM_FLAG_DONT_FREE_TEMP, | 69 | .flags = PROM_FLAG_DONT_FREE_TEMP, |
79 | } | 70 | } |
@@ -125,7 +116,6 @@ void __init prom_identify_arch(void) | |||
125 | mach = string_to_mach(iname); | 116 | mach = string_to_mach(iname); |
126 | system_type = mach->liname; | 117 | system_type = mach->liname; |
127 | 118 | ||
128 | mips_machgroup = mach->group; | ||
129 | mips_machtype = mach->type; | 119 | mips_machtype = mach->type; |
130 | prom_flags = mach->flags; | 120 | prom_flags = mach->flags; |
131 | } | 121 | } |
diff --git a/arch/mips/gt64120/wrppmc/setup.c b/arch/mips/gt64120/wrppmc/setup.c index ed58c13b6032..238b5087fbb3 100644 --- a/arch/mips/gt64120/wrppmc/setup.c +++ b/arch/mips/gt64120/wrppmc/setup.c | |||
@@ -159,7 +159,6 @@ const char *get_system_type(void) | |||
159 | */ | 159 | */ |
160 | void __init prom_init(void) | 160 | void __init prom_init(void) |
161 | { | 161 | { |
162 | mips_machgroup = MACH_GROUP_WINDRIVER; | ||
163 | mips_machtype = MACH_WRPPMC; | 162 | mips_machtype = MACH_WRPPMC; |
164 | 163 | ||
165 | add_memory_region(WRPPMC_SDRAM_SCS0_BASE, WRPPMC_SDRAM_SCS0_SIZE, BOOT_MEM_RAM); | 164 | add_memory_region(WRPPMC_SDRAM_SCS0_BASE, WRPPMC_SDRAM_SCS0_SIZE, BOOT_MEM_RAM); |
diff --git a/arch/mips/jmr3927/rbhma3100/init.c b/arch/mips/jmr3927/rbhma3100/init.c index 9169fab1773a..b643f75ec9a5 100644 --- a/arch/mips/jmr3927/rbhma3100/init.c +++ b/arch/mips/jmr3927/rbhma3100/init.c | |||
@@ -51,7 +51,6 @@ void __init prom_init(void) | |||
51 | if ((tx3927_ccfgptr->ccfg & TX3927_CCFG_TLBOFF) == 0) | 51 | if ((tx3927_ccfgptr->ccfg & TX3927_CCFG_TLBOFF) == 0) |
52 | puts("Warning: TX3927 TLB off\n"); | 52 | puts("Warning: TX3927 TLB off\n"); |
53 | #endif | 53 | #endif |
54 | mips_machgroup = MACH_GROUP_TOSHIBA; | ||
55 | 54 | ||
56 | #ifdef CONFIG_TOSHIBA_JMR3927 | 55 | #ifdef CONFIG_TOSHIBA_JMR3927 |
57 | mips_machtype = MACH_TOSHIBA_JMR3927; | 56 | mips_machtype = MACH_TOSHIBA_JMR3927; |
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 316685fca059..a06a27d6cfcd 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -51,10 +51,8 @@ EXPORT_SYMBOL(PCI_DMA_BUS_IS_PHYS); | |||
51 | * These are initialized so they are in the .data section | 51 | * These are initialized so they are in the .data section |
52 | */ | 52 | */ |
53 | unsigned long mips_machtype __read_mostly = MACH_UNKNOWN; | 53 | unsigned long mips_machtype __read_mostly = MACH_UNKNOWN; |
54 | unsigned long mips_machgroup __read_mostly = MACH_GROUP_UNKNOWN; | ||
55 | 54 | ||
56 | EXPORT_SYMBOL(mips_machtype); | 55 | EXPORT_SYMBOL(mips_machtype); |
57 | EXPORT_SYMBOL(mips_machgroup); | ||
58 | 56 | ||
59 | struct boot_mem_map boot_mem_map; | 57 | struct boot_mem_map boot_mem_map; |
60 | 58 | ||
diff --git a/arch/mips/lasat/prom.c b/arch/mips/lasat/prom.c index 4b80fffcf262..209edcc26f07 100644 --- a/arch/mips/lasat/prom.c +++ b/arch/mips/lasat/prom.c | |||
@@ -100,8 +100,6 @@ void __init prom_init(void) | |||
100 | 100 | ||
101 | lasat_init_board_info(); /* Read info from EEPROM */ | 101 | lasat_init_board_info(); /* Read info from EEPROM */ |
102 | 102 | ||
103 | mips_machgroup = MACH_GROUP_LASAT; | ||
104 | |||
105 | /* Get the command line */ | 103 | /* Get the command line */ |
106 | if (argc > 0) { | 104 | if (argc > 0) { |
107 | strncpy(arcs_cmdline, argv[0], CL_SIZE-1); | 105 | strncpy(arcs_cmdline, argv[0], CL_SIZE-1); |
diff --git a/arch/mips/lemote/lm2e/prom.c b/arch/mips/lemote/lm2e/prom.c index 3efb1cf111f2..824336812198 100644 --- a/arch/mips/lemote/lm2e/prom.c +++ b/arch/mips/lemote/lm2e/prom.c | |||
@@ -57,7 +57,6 @@ void __init prom_init(void) | |||
57 | arg = (int *)fw_arg1; | 57 | arg = (int *)fw_arg1; |
58 | env = (int *)fw_arg2; | 58 | env = (int *)fw_arg2; |
59 | 59 | ||
60 | mips_machgroup = MACH_GROUP_LEMOTE; | ||
61 | mips_machtype = MACH_LEMOTE_FULONG; | 60 | mips_machtype = MACH_LEMOTE_FULONG; |
62 | 61 | ||
63 | prom_init_cmdline(); | 62 | prom_init_cmdline(); |
diff --git a/arch/mips/philips/pnx8550/jbs/init.c b/arch/mips/philips/pnx8550/jbs/init.c index 85f449174bc3..cfd90fa3d799 100644 --- a/arch/mips/philips/pnx8550/jbs/init.c +++ b/arch/mips/philips/pnx8550/jbs/init.c | |||
@@ -48,7 +48,6 @@ void __init prom_init(void) | |||
48 | 48 | ||
49 | unsigned long memsize; | 49 | unsigned long memsize; |
50 | 50 | ||
51 | mips_machgroup = MACH_GROUP_PHILIPS; | ||
52 | mips_machtype = MACH_PHILIPS_JBS; | 51 | mips_machtype = MACH_PHILIPS_JBS; |
53 | 52 | ||
54 | //memsize = 0x02800000; /* Trimedia uses memory above */ | 53 | //memsize = 0x02800000; /* Trimedia uses memory above */ |
diff --git a/arch/mips/philips/pnx8550/stb810/prom_init.c b/arch/mips/philips/pnx8550/stb810/prom_init.c index ea5b4e0fb47d..fdb33ed089b9 100644 --- a/arch/mips/philips/pnx8550/stb810/prom_init.c +++ b/arch/mips/philips/pnx8550/stb810/prom_init.c | |||
@@ -41,7 +41,6 @@ void __init prom_init(void) | |||
41 | 41 | ||
42 | prom_init_cmdline(); | 42 | prom_init_cmdline(); |
43 | 43 | ||
44 | mips_machgroup = MACH_GROUP_PHILIPS; | ||
45 | mips_machtype = MACH_PHILIPS_STB810; | 44 | mips_machtype = MACH_PHILIPS_STB810; |
46 | 45 | ||
47 | memsize = 0x08000000; /* Trimedia uses memory above */ | 46 | memsize = 0x08000000; /* Trimedia uses memory above */ |
diff --git a/arch/mips/pmc-sierra/msp71xx/msp_setup.c b/arch/mips/pmc-sierra/msp71xx/msp_setup.c index 8f69b789be90..e4cc54824475 100644 --- a/arch/mips/pmc-sierra/msp71xx/msp_setup.c +++ b/arch/mips/pmc-sierra/msp71xx/msp_setup.c | |||
@@ -176,16 +176,13 @@ void __init prom_init(void) | |||
176 | case FAMILY_FPGA: | 176 | case FAMILY_FPGA: |
177 | if (FPGA_IS_MSP4200(revision)) { | 177 | if (FPGA_IS_MSP4200(revision)) { |
178 | /* Old-style revision ID */ | 178 | /* Old-style revision ID */ |
179 | mips_machgroup = MACH_GROUP_MSP; | ||
180 | mips_machtype = MACH_MSP4200_FPGA; | 179 | mips_machtype = MACH_MSP4200_FPGA; |
181 | } else { | 180 | } else { |
182 | mips_machgroup = MACH_GROUP_MSP; | ||
183 | mips_machtype = MACH_MSP_OTHER; | 181 | mips_machtype = MACH_MSP_OTHER; |
184 | } | 182 | } |
185 | break; | 183 | break; |
186 | 184 | ||
187 | case FAMILY_MSP4200: | 185 | case FAMILY_MSP4200: |
188 | mips_machgroup = MACH_GROUP_MSP; | ||
189 | #if defined(CONFIG_PMC_MSP4200_EVAL) | 186 | #if defined(CONFIG_PMC_MSP4200_EVAL) |
190 | mips_machtype = MACH_MSP4200_EVAL; | 187 | mips_machtype = MACH_MSP4200_EVAL; |
191 | #elif defined(CONFIG_PMC_MSP4200_GW) | 188 | #elif defined(CONFIG_PMC_MSP4200_GW) |
@@ -196,12 +193,10 @@ void __init prom_init(void) | |||
196 | break; | 193 | break; |
197 | 194 | ||
198 | case FAMILY_MSP4200_FPGA: | 195 | case FAMILY_MSP4200_FPGA: |
199 | mips_machgroup = MACH_GROUP_MSP; | ||
200 | mips_machtype = MACH_MSP4200_FPGA; | 196 | mips_machtype = MACH_MSP4200_FPGA; |
201 | break; | 197 | break; |
202 | 198 | ||
203 | case FAMILY_MSP7100: | 199 | case FAMILY_MSP7100: |
204 | mips_machgroup = MACH_GROUP_MSP; | ||
205 | #if defined(CONFIG_PMC_MSP7120_EVAL) | 200 | #if defined(CONFIG_PMC_MSP7120_EVAL) |
206 | mips_machtype = MACH_MSP7120_EVAL; | 201 | mips_machtype = MACH_MSP7120_EVAL; |
207 | #elif defined(CONFIG_PMC_MSP7120_GW) | 202 | #elif defined(CONFIG_PMC_MSP7120_GW) |
@@ -212,22 +207,14 @@ void __init prom_init(void) | |||
212 | break; | 207 | break; |
213 | 208 | ||
214 | case FAMILY_MSP7100_FPGA: | 209 | case FAMILY_MSP7100_FPGA: |
215 | mips_machgroup = MACH_GROUP_MSP; | ||
216 | mips_machtype = MACH_MSP7120_FPGA; | 210 | mips_machtype = MACH_MSP7120_FPGA; |
217 | break; | 211 | break; |
218 | 212 | ||
219 | default: | 213 | default: |
220 | /* we don't recognize the machine */ | 214 | /* we don't recognize the machine */ |
221 | mips_machgroup = MACH_GROUP_UNKNOWN; | ||
222 | mips_machtype = MACH_UNKNOWN; | 215 | mips_machtype = MACH_UNKNOWN; |
223 | break; | ||
224 | } | ||
225 | |||
226 | /* make sure we have the right initialization routine - sanity */ | ||
227 | if (mips_machgroup != MACH_GROUP_MSP) { | ||
228 | ppfinit("Unknown machine group in a " | ||
229 | "MSP initialization routine\n"); | ||
230 | panic("***Bogosity factor five***, exiting\n"); | 216 | panic("***Bogosity factor five***, exiting\n"); |
217 | break; | ||
231 | } | 218 | } |
232 | 219 | ||
233 | prom_init_cmdline(); | 220 | prom_init_cmdline(); |
diff --git a/arch/mips/pmc-sierra/yosemite/prom.c b/arch/mips/pmc-sierra/yosemite/prom.c index 0cd78f0f5f2d..9b9936de6589 100644 --- a/arch/mips/pmc-sierra/yosemite/prom.c +++ b/arch/mips/pmc-sierra/yosemite/prom.c | |||
@@ -126,7 +126,6 @@ void __init prom_init(void) | |||
126 | env++; | 126 | env++; |
127 | } | 127 | } |
128 | 128 | ||
129 | mips_machgroup = MACH_GROUP_TITAN; | ||
130 | mips_machtype = MACH_TITAN_YOSEMITE; | 129 | mips_machtype = MACH_TITAN_YOSEMITE; |
131 | 130 | ||
132 | prom_grab_secondary(); | 131 | prom_grab_secondary(); |
diff --git a/arch/mips/sibyte/cfe/setup.c b/arch/mips/sibyte/cfe/setup.c index d842b98efb67..147b7fb02e64 100644 --- a/arch/mips/sibyte/cfe/setup.c +++ b/arch/mips/sibyte/cfe/setup.c | |||
@@ -339,7 +339,6 @@ void __init prom_init(void) | |||
339 | /* Not sure this is needed, but it's the safe way. */ | 339 | /* Not sure this is needed, but it's the safe way. */ |
340 | arcs_cmdline[CL_SIZE-1] = 0; | 340 | arcs_cmdline[CL_SIZE-1] = 0; |
341 | 341 | ||
342 | mips_machgroup = MACH_GROUP_SIBYTE; | ||
343 | prom_meminit(); | 342 | prom_meminit(); |
344 | } | 343 | } |
345 | 344 | ||
diff --git a/arch/mips/sibyte/sb1250/prom.c b/arch/mips/sibyte/sb1250/prom.c index 257c4e674353..f07ad3baccab 100644 --- a/arch/mips/sibyte/sb1250/prom.c +++ b/arch/mips/sibyte/sb1250/prom.c | |||
@@ -83,7 +83,6 @@ void __init prom_init(void) | |||
83 | 83 | ||
84 | strcpy(arcs_cmdline, "root=/dev/ram0 "); | 84 | strcpy(arcs_cmdline, "root=/dev/ram0 "); |
85 | 85 | ||
86 | mips_machgroup = MACH_GROUP_SIBYTE; | ||
87 | prom_meminit(); | 86 | prom_meminit(); |
88 | } | 87 | } |
89 | 88 | ||
diff --git a/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_prom.c b/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_prom.c index 9a3a5babd1fb..f3f86857beae 100644 --- a/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_prom.c +++ b/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_prom.c | |||
@@ -66,8 +66,6 @@ void __init prom_init(void) | |||
66 | 66 | ||
67 | prom_init_cmdline(); | 67 | prom_init_cmdline(); |
68 | 68 | ||
69 | mips_machgroup = MACH_GROUP_TOSHIBA; | ||
70 | |||
71 | if ((read_c0_prid() & 0xff) == PRID_REV_TX4927) { | 69 | if ((read_c0_prid() & 0xff) == PRID_REV_TX4927) { |
72 | mips_machtype = MACH_TOSHIBA_RBTX4927; | 70 | mips_machtype = MACH_TOSHIBA_RBTX4927; |
73 | toshiba_name = "TX4927"; | 71 | toshiba_name = "TX4927"; |
diff --git a/arch/mips/tx4938/toshiba_rbtx4938/prom.c b/arch/mips/tx4938/toshiba_rbtx4938/prom.c index 7dc6a0aae21c..69f21c1b7942 100644 --- a/arch/mips/tx4938/toshiba_rbtx4938/prom.c +++ b/arch/mips/tx4938/toshiba_rbtx4938/prom.c | |||
@@ -47,7 +47,6 @@ void __init prom_init(void) | |||
47 | #ifndef CONFIG_TX4938_NAND_BOOT | 47 | #ifndef CONFIG_TX4938_NAND_BOOT |
48 | prom_init_cmdline(); | 48 | prom_init_cmdline(); |
49 | #endif | 49 | #endif |
50 | mips_machgroup = MACH_GROUP_TOSHIBA; | ||
51 | mips_machtype = MACH_TOSHIBA_RBTX4938; | 50 | mips_machtype = MACH_TOSHIBA_RBTX4938; |
52 | 51 | ||
53 | msize = tx4938_get_mem_size(); | 52 | msize = tx4938_get_mem_size(); |
diff --git a/arch/mips/vr41xx/nec-cmbvr4133/setup.c b/arch/mips/vr41xx/nec-cmbvr4133/setup.c index b20b93b2b95e..58e47686b499 100644 --- a/arch/mips/vr41xx/nec-cmbvr4133/setup.c +++ b/arch/mips/vr41xx/nec-cmbvr4133/setup.c | |||
@@ -64,7 +64,6 @@ static void __init nec_cmbvr4133_setup(void) | |||
64 | #endif | 64 | #endif |
65 | set_io_port_base(KSEG1ADDR(0x16000000)); | 65 | set_io_port_base(KSEG1ADDR(0x16000000)); |
66 | 66 | ||
67 | mips_machgroup = MACH_GROUP_NEC_VR41XX; | ||
68 | mips_machtype = MACH_NEC_CMBVR4133; | 67 | mips_machtype = MACH_NEC_CMBVR4133; |
69 | 68 | ||
70 | #ifdef CONFIG_PCI | 69 | #ifdef CONFIG_PCI |