.name = "Infineon EASY 83000",
.mach_type = MACH_ADM5120_EASY83000,
.has_usb = 0,
.name = "Infineon EASY 83000",
.mach_type = MACH_ADM5120_EASY83000,
.has_usb = 0,
.flash0_size = 4*1024*1024,
},
{
.flash0_size = 4*1024*1024,
},
{
if (t == MACH_ADM5120_UNKNOWN)
t = uboot_detect_board();
} else {
if (t == MACH_ADM5120_UNKNOWN)
t = uboot_detect_board();
} else {
- t = prom_detect_board();
+ if (t == MACH_ADM5120_UNKNOWN)
+ t = prom_detect_board();
}
for (board = adm5120_boards; board->mach_type != MACH_ADM5120_UNKNOWN;
}
for (board = adm5120_boards; board->mach_type != MACH_ADM5120_UNKNOWN;
#include <asm/mach-adm5120/adm5120_info.h>
#include <asm/mach-adm5120/adm5120_info.h>
-static char **prom_envp;
+static char **prom_envp = NULL;
void setup_prom_printf(int);
void prom_printf(char *, ...);
void setup_prom_printf(int);
void prom_printf(char *, ...);
- prom_envp = (char **)fw_arg2;
+ if ((fw_arg2 & 3) == 0) {
+ prom_envp = (char **)fw_arg2;
+ }