#include <asm/bootinfo.h>
#include <asm/addrspace.h>
-#include <asm/mips_machine.h>
#include <asm/mach-ralink/common.h>
#include <asm/mach-ralink/machine.h>
#include <ralink_soc.h>
unsigned char ramips_sys_type[RAMIPS_SYS_TYPE_LEN];
-enum ramips_mach_type ramips_mach = RAMIPS_MACH_GENERIC;
const char *get_system_type(void)
{
int err;
memset(&p, 0, sizeof(p));
- p.flags = UPF_SKIP_TEST;
+ p.flags = UPF_SKIP_TEST | UPF_FIXED_TYPE;
p.iotype = UPIO_AU;
p.uartclk = freq;
p.regshift = 2;
ramips_soc_setup();
}
+__setup("board=", mips_machtype_setup);
+
static int __init ramips_machine_setup(void)
{
- mips_machine_setup(ramips_mach);
+ mips_machine_setup();
return 0;
}
{
}
-MIPS_MACHINE(RAMIPS_MACH_GENERIC, "Generic Ralink board", ramips_generic_init);
+MIPS_MACHINE(RAMIPS_MACH_GENERIC, "Generic", "Generic Ralink board",
+ ramips_generic_init);