summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches/110-machine.patch
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-11 08:19:53 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-03-11 08:19:53 +0000
commita4ba8220f531577a0bdc6d9466a16af74f8b98af (patch)
tree17f84cf0fc394882ad133724440e4fb373714710 /target/linux/lantiq/patches/110-machine.patch
parenta42e50cceaf2cc8997cfb6870ae1ab70f3f1abe1 (diff)
[lantiq]
* update kernel to .37 * add support for falcon (big thank you goes to lantiq !!) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26021 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches/110-machine.patch')
-rw-r--r--target/linux/lantiq/patches/110-machine.patch20
1 files changed, 3 insertions, 17 deletions
diff --git a/target/linux/lantiq/patches/110-machine.patch b/target/linux/lantiq/patches/110-machine.patch
index 4066ac586..cf4652ec2 100644
--- a/target/linux/lantiq/patches/110-machine.patch
+++ b/target/linux/lantiq/patches/110-machine.patch
@@ -1,18 +1,16 @@
--- a/arch/mips/lantiq/setup.c
+++ b/arch/mips/lantiq/setup.c
-@@ -12,7 +12,10 @@
+@@ -12,7 +12,8 @@
#include <linux/ioport.h>
#include <lantiq.h>
-#include <lantiq_regs.h>
+
+#include <machine.h>
-+
-+static unsigned int *cp1_base;
void __init
plat_mem_setup(void)
-@@ -31,6 +34,7 @@
+@@ -31,6 +32,7 @@
ioport_resource.end = IOPORT_RESOURCE_END;
iomem_resource.start = IOMEM_RESOURCE_START;
iomem_resource.end = IOMEM_RESOURCE_END;
@@ -20,23 +18,11 @@
while (*envp)
{
-@@ -42,6 +46,37 @@
- }
- envp++;
- }
-+// memsize -= 2;
+@@ -45,3 +47,25 @@
memsize *= 1024 * 1024;
-+// cp1_base = (unsigned int*)(KSEG1 | memsize);
add_memory_region(0x00000000, memsize, BOOT_MEM_RAM);
}
+
-+unsigned int*
-+lq_get_cp1_base(void)
-+{
-+ return cp1_base;
-+}
-+EXPORT_SYMBOL(lq_get_cp1_base);
-+
+static int __init
+lq_machine_setup(void)
+{