1 --- a/arch/mips/lantiq/setup.c
2 +++ b/arch/mips/lantiq/setup.c
4 #include <linux/ioport.h>
7 -#include <lantiq_regs.h>
11 +static unsigned int *cp1_base;
16 ioport_resource.end = IOPORT_RESOURCE_END;
17 iomem_resource.start = IOMEM_RESOURCE_START;
18 iomem_resource.end = IOMEM_RESOURCE_END;
19 + set_io_port_base((unsigned long) KSEG1);
28 memsize *= 1024 * 1024;
29 +// cp1_base = (unsigned int*)(KSEG1 | memsize);
30 add_memory_region(0x00000000, memsize, BOOT_MEM_RAM);
34 +lq_get_cp1_base(void)
38 +EXPORT_SYMBOL(lq_get_cp1_base);
41 +lq_machine_setup(void)
43 + mips_machine_setup();
48 +mach_generic_init(void)
52 +MIPS_MACHINE(LANTIQ_MACH_GENERIC,
57 +arch_initcall(lq_machine_setup);
59 +/* for backward compatibility, define "board=" as alias for "machtype=" */
60 +__setup("board=", mips_machtype_setup);
62 +++ b/arch/mips/include/asm/mach-lantiq/machine.h
64 +#include <asm/mips_machine.h>
66 +enum lantiq_mach_type {
67 + LANTIQ_MACH_GENERIC,
70 + LANTIQ_MACH_EASY98000, /* Falcon Eval Board, NOR Flash */
71 + LANTIQ_MACH_EASY98020, /* Falcon Reference Board */
74 + LANTIQ_MACH_EASY4010, /* Twinpass evalkit */
75 + LANTIQ_MACH_EASY50712, /* Danube evalkit */
76 + LANTIQ_MACH_EASY50812, /* AR9 eval board */