#include <linux/init.h>
#include <linux/io.h>
-//#include <asm/bootinfo.h>
#include <asm/addrspace.h>
#include <asm/mach-adm5120/adm5120_info.h>
unsigned int adm5120_package;
unsigned int adm5120_nand_boot;
unsigned long adm5120_speed;
-unsigned long adm5120_mach_type;
/*
* CPU settings detection
{
if (bootbase_present()) {
adm5120_prom_type = ADM5120_PROM_BOOTBASE;
- adm5120_mach_type = detect_machtype_bootbase();
+ mips_machtype = detect_machtype_bootbase();
return;
}
if (cfe_present()) {
adm5120_prom_type = ADM5120_PROM_CFE;
- adm5120_mach_type = detect_machtype_cfe();
+ mips_machtype = detect_machtype_cfe();
return;
}
if (myloader_present()) {
adm5120_prom_type = ADM5120_PROM_MYLOADER;
- adm5120_mach_type = detect_machtype_myloader();
+ mips_machtype = detect_machtype_myloader();
return;
}
if (routerboot_present()) {
adm5120_prom_type = ADM5120_PROM_ROUTERBOOT;
- adm5120_mach_type = detect_machtype_routerboot();
+ mips_machtype = detect_machtype_routerboot();
return;
}
if (generic_prom_present()) {
adm5120_prom_type = ADM5120_PROM_GENERIC;
- adm5120_mach_type = detect_machtype_generic();
+ mips_machtype = detect_machtype_generic();
return;
}
- adm5120_mach_type = MACH_ADM5120_GENERIC;
+ mips_machtype = MACH_ADM5120_GENERIC;
}
#ifdef CONFIG_IMAGE_CMDLINE_HACK
#include <linux/kernel.h>
#include <linux/io.h>
+#include <asm/bootinfo.h>
#include <asm/reboot.h>
#include <asm/time.h>
#include <asm/mips_machine.h>
{
adm5120_gpio_init();
- mips_machine_setup(adm5120_mach_type);
+ mips_machine_setup(mips_machtype);
return 0;
}
extern unsigned long adm5120_memsize;
-extern unsigned long adm5120_mach_type;
-
#define MACH_ADM5120_GENERIC 0 /* Generic board */
#define MACH_ADM5120_WP54G_WRT 1 /* Compex WP54G-WRT */
#define MACH_ADM5120_WP54 2 /* Compex WP54G/WP54AG/WPP54G/WPP54AG */