X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/07244cdc4fa4c87351dffbdaae4cbd131edf43ef..b6230474244dd8e1e74aec78691eed029ed373ef:/target/linux/ramips/files/arch/mips/ralink/common/setup.c diff --git a/target/linux/ramips/files/arch/mips/ralink/common/setup.c b/target/linux/ramips/files/arch/mips/ralink/common/setup.c index 3030fcd15..e8126b11c 100644 --- a/target/linux/ramips/files/arch/mips/ralink/common/setup.c +++ b/target/linux/ramips/files/arch/mips/ralink/common/setup.c @@ -16,14 +16,12 @@ #include #include -#include #include #include #include unsigned char ramips_sys_type[RAMIPS_SYS_TYPE_LEN]; -enum ramips_mach_type ramips_mach = RAMIPS_MACH_GENERIC; const char *get_system_type(void) { @@ -51,7 +49,7 @@ void __init ramips_early_serial_setup(int line, unsigned base, unsigned freq, 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; @@ -76,9 +74,11 @@ void __init plat_mem_setup(void) 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; } @@ -88,4 +88,5 @@ static void __init ramips_generic_init(void) { } -MIPS_MACHINE(RAMIPS_MACH_GENERIC, "Generic Ralink board", ramips_generic_init); +MIPS_MACHINE(RAMIPS_MACH_GENERIC, "Generic", "Generic Ralink board", + ramips_generic_init);