diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-07-10 11:56:33 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-07-10 12:33:06 -0400 |
commit | 569fb7536ea66e3364a8ff0b26598c6c9874d657 (patch) | |
tree | b4c3f5ae841197f9bf71b178d3137c4ea01fbee1 | |
parent | 44659f29a0a26dcdbf516a82b0ff96d6ba464724 (diff) |
[MIPS] WRPPMC: Fix build.
Using another systems defines is a safe way to get your code broken by
accident when that system is removed.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/gt64120/wrppmc/setup.c | 4 | ||||
-rw-r--r-- | include/asm-mips/bootinfo.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/mips/gt64120/wrppmc/setup.c b/arch/mips/gt64120/wrppmc/setup.c index 121188d5ec4a..ea965529e5e0 100644 --- a/arch/mips/gt64120/wrppmc/setup.c +++ b/arch/mips/gt64120/wrppmc/setup.c | |||
@@ -158,8 +158,8 @@ const char *get_system_type(void) | |||
158 | */ | 158 | */ |
159 | void __init prom_init(void) | 159 | void __init prom_init(void) |
160 | { | 160 | { |
161 | mips_machgroup = MACH_GROUP_GALILEO; | 161 | mips_machgroup = MACH_GROUP_WINDRIVER; |
162 | mips_machtype = MACH_EV64120A; | 162 | mips_machtype = MACH_WRPPMC; |
163 | 163 | ||
164 | 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); |
165 | add_memory_region(WRPPMC_BOOTROM_BASE, WRPPMC_BOOTROM_SIZE, BOOT_MEM_ROM_DATA); | 165 | add_memory_region(WRPPMC_BOOTROM_BASE, WRPPMC_BOOTROM_SIZE, BOOT_MEM_ROM_DATA); |
diff --git a/include/asm-mips/bootinfo.h b/include/asm-mips/bootinfo.h index 075a4d3de326..087126a5faf9 100644 --- a/include/asm-mips/bootinfo.h +++ b/include/asm-mips/bootinfo.h | |||
@@ -218,6 +218,9 @@ | |||
218 | #define MACH_MSP7120_FPGA 5 /* PMC-Sierra MSP7120 Emulation */ | 218 | #define MACH_MSP7120_FPGA 5 /* PMC-Sierra MSP7120 Emulation */ |
219 | #define MACH_MSP_OTHER 255 /* PMC-Sierra unknown board type */ | 219 | #define MACH_MSP_OTHER 255 /* PMC-Sierra unknown board type */ |
220 | 220 | ||
221 | #define MACH_GROUP_WINDRIVER 28 /* Windriver boards */ | ||
222 | #define MACH_WRPPMC 1 | ||
223 | |||
221 | #define CL_SIZE COMMAND_LINE_SIZE | 224 | #define CL_SIZE COMMAND_LINE_SIZE |
222 | 225 | ||
223 | const char *get_system_type(void); | 226 | const char *get_system_type(void); |