[lantiq] fixes zyxel p2601hnfx
[openwrt.git] / target / linux / lantiq / patches-3.3 / 209-fritz_ram.patch
1 --- a/arch/mips/lantiq/setup.c
2 +++ b/arch/mips/lantiq/setup.c
3 @@ -40,6 +40,12 @@ void __init plat_mem_setup(void)
4                         e += 8;
5                         if (strict_strtoul(e, 0, &memsize))
6                                 pr_warn("bad memsize specified\n");
7 +               } else if (!strcmp(e, "memsize")) {
8 +                       envp++;
9 +                       e = (char *)KSEG1ADDR(*envp);
10 +                       if (strict_strtoul(e, 0, &memsize))
11 +                               pr_warn("bad memsize specified\n");
12 +                       memsize /= 1024 * 1024;
13                 }
14                 if (!strncmp(e, "BRN-BOOT", 8)){
15                         pr_info("Found BRN-BOOT instead of u-boot\n");