From 1a35b7c84e9494409a1c22920a7ae3e7cb65bae7 Mon Sep 17 00:00:00 2001 From: blogic Date: Tue, 1 Feb 2011 14:37:35 +0000 Subject: [lantiq] * adds profiles to the kernel * fixes 2 compile errors in the usb driver * ioports were not allocated properly git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25278 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/lantiq/patches/110-machine.patch | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'target/linux/lantiq/patches/110-machine.patch') diff --git a/target/linux/lantiq/patches/110-machine.patch b/target/linux/lantiq/patches/110-machine.patch index cf4652ec2..4066ac586 100644 --- a/target/linux/lantiq/patches/110-machine.patch +++ b/target/linux/lantiq/patches/110-machine.patch @@ -1,16 +1,18 @@ --- a/arch/mips/lantiq/setup.c +++ b/arch/mips/lantiq/setup.c -@@ -12,7 +12,8 @@ +@@ -12,7 +12,10 @@ #include #include -#include + +#include ++ ++static unsigned int *cp1_base; void __init plat_mem_setup(void) -@@ -31,6 +32,7 @@ +@@ -31,6 +34,7 @@ ioport_resource.end = IOPORT_RESOURCE_END; iomem_resource.start = IOMEM_RESOURCE_START; iomem_resource.end = IOMEM_RESOURCE_END; @@ -18,11 +20,23 @@ while (*envp) { -@@ -45,3 +47,25 @@ +@@ -42,6 +46,37 @@ + } + envp++; + } ++// memsize -= 2; 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) +{ -- cgit v1.2.3