diff options
author | John Crispin <john@openwrt.org> | 2011-03-11 08:19:53 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-03-11 08:19:53 +0000 |
commit | c75b0ca1a8e6e9c1ffd43719792ab1903085aa93 (patch) | |
tree | 4a1a3044e0f7acb02f16849a8758e292ff66ae7d /target/linux/lantiq/patches/110-machine.patch | |
parent | 58a5102338f7fde82c0a025d99f044868c979d02 (diff) | |
download | upstream-c75b0ca1a8e6e9c1ffd43719792ab1903085aa93.tar.gz upstream-c75b0ca1a8e6e9c1ffd43719792ab1903085aa93.tar.bz2 upstream-c75b0ca1a8e6e9c1ffd43719792ab1903085aa93.zip |
* update kernel to .37 * add support for falcon (big thank you goes to lantiq !!)
SVN-Revision: 26021
Diffstat (limited to 'target/linux/lantiq/patches/110-machine.patch')
-rw-r--r-- | target/linux/lantiq/patches/110-machine.patch | 20 |
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 4066ac586a..cf4652ec22 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) +{ |