aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches/110-machine.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2010-12-12 22:57:16 +0000
committerJohn Crispin <blogic@openwrt.org>2010-12-12 22:57:16 +0000
commit3a8cab4295251305a2b8fba4f5ba3b9340915957 (patch)
tree24f859f8849a0d5180c1bef85c758ce70aa43c80 /target/linux/lantiq/patches/110-machine.patch
parent30ce14b5fcdfbc1d739af351ab01e8d3e287f174 (diff)
downloadupstream-3a8cab4295251305a2b8fba4f5ba3b9340915957.tar.gz
upstream-3a8cab4295251305a2b8fba4f5ba3b9340915957.tar.bz2
upstream-3a8cab4295251305a2b8fba4f5ba3b9340915957.zip
[lantiq] adds new lantiq kernel. once the codebase is fully tested and know to be working on all the devices previously supported by ifxmips, we will drop ifxmips support.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24526 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches/110-machine.patch')
-rw-r--r--target/linux/lantiq/patches/110-machine.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches/110-machine.patch b/target/linux/lantiq/patches/110-machine.patch
new file mode 100644
index 0000000000..9d0b7b71c8
--- /dev/null
+++ b/target/linux/lantiq/patches/110-machine.patch
@@ -0,0 +1,55 @@
+--- a/arch/mips/lantiq/setup.c
++++ b/arch/mips/lantiq/setup.c
+@@ -13,7 +13,8 @@
+ #include <linux/ioport.h>
+
+ #include <lantiq.h>
+-#include <lantiq_regs.h>
++
++#include <machine.h>
+
+ void __init
+ plat_mem_setup(void)
+@@ -46,3 +47,25 @@ plat_mem_setup(void)
+ memsize *= 1024 * 1024;
+ add_memory_region(0x00000000, memsize, BOOT_MEM_RAM);
+ }
++
++static int __init
++lq_machine_setup(void)
++{
++ mips_machine_setup();
++ return 0;
++}
++
++static void __init
++mach_generic_init(void)
++{
++}
++
++MIPS_MACHINE(LANTIQ_MACH_GENERIC,
++ "Generic",
++ "Generic",
++ mach_generic_init);
++
++arch_initcall(lq_machine_setup);
++
++/* for backward compatibility, define "board=" as alias for "machtype=" */
++__setup("board=", mips_machtype_setup);
+--- /dev/null
++++ b/arch/mips/include/asm/mach-lantiq/machine.h
+@@ -0,0 +1,14 @@
++#include <asm/mips_machine.h>
++
++enum lantiq_mach_type {
++ LANTIQ_MACH_GENERIC,
++
++ /* FALCON */
++ LANTIQ_MACH_EASY98000, /* Falcon Eval Board, NOR Flash */
++ LANTIQ_MACH_EASY98020, /* Falcon Reference Board */
++
++ /* XWAY */
++ LANTIQ_MACH_EASY4010, /* Twinpass evalkit */
++ LANTIQ_MACH_EASY50712, /* Danube evalkit */
++ LANTIQ_MACH_EASY50812, /* AR9 eval board */
++};