diff options
author | John Crispin <john@openwrt.org> | 2011-02-01 14:37:35 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-02-01 14:37:35 +0000 |
commit | 1e89df511a1506c0d476466f7cb60950522e51e3 (patch) | |
tree | 9030ad26ad3d83cda1743b31ce16add02d240f47 /target/linux/lantiq/patches/110-machine.patch | |
parent | e919bd002a7f08d1c893dc3272f1f6332442fc35 (diff) | |
download | upstream-1e89df511a1506c0d476466f7cb60950522e51e3.tar.gz upstream-1e89df511a1506c0d476466f7cb60950522e51e3.tar.bz2 upstream-1e89df511a1506c0d476466f7cb60950522e51e3.zip |
* adds profiles to the kernel * fixes 2 compile errors in the usb driver * ioports were not allocated properly
SVN-Revision: 25278
Diffstat (limited to 'target/linux/lantiq/patches/110-machine.patch')
-rw-r--r-- | target/linux/lantiq/patches/110-machine.patch | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/target/linux/lantiq/patches/110-machine.patch b/target/linux/lantiq/patches/110-machine.patch index cf4652ec22..4066ac586a 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 <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 +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) +{ |