[lantiq]
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches / 110-machine.patch
index 9d0b7b71c8eb5a5c23c57d5b5e33560086c3869a..4066ac586a0421bb6b4e10c1011a977bf9854362 100644 (file)
@@ -1,20 +1,42 @@
 --- a/arch/mips/lantiq/setup.c
 +++ b/arch/mips/lantiq/setup.c
-@@ -13,7 +13,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)
-@@ -46,3 +47,25 @@ plat_mem_setup(void)
+@@ -31,6 +34,7 @@
+       ioport_resource.end = IOPORT_RESOURCE_END;
+       iomem_resource.start = IOMEM_RESOURCE_START;
+       iomem_resource.end = IOMEM_RESOURCE_END;
++      set_io_port_base((unsigned long) KSEG1);
+       while (*envp)
+       {
+@@ -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)
 +{