diff options
Diffstat (limited to 'arch/mips/mti-malta/malta-memory.c')
-rw-r--r-- | arch/mips/mti-malta/malta-memory.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/mti-malta/malta-memory.c b/arch/mips/mti-malta/malta-memory.c index 8fddd2cdbff7..b769657be4d4 100644 --- a/arch/mips/mti-malta/malta-memory.c +++ b/arch/mips/mti-malta/malta-memory.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/string.h> | 16 | #include <linux/string.h> |
17 | 17 | ||
18 | #include <asm/bootinfo.h> | 18 | #include <asm/bootinfo.h> |
19 | #include <asm/cdmm.h> | ||
19 | #include <asm/maar.h> | 20 | #include <asm/maar.h> |
20 | #include <asm/sections.h> | 21 | #include <asm/sections.h> |
21 | #include <asm/fw/fw.h> | 22 | #include <asm/fw/fw.h> |
@@ -53,6 +54,12 @@ fw_memblock_t * __init fw_getmdesc(int eva) | |||
53 | pr_warn("memsize not set in YAMON, set to default (32Mb)\n"); | 54 | pr_warn("memsize not set in YAMON, set to default (32Mb)\n"); |
54 | physical_memsize = 0x02000000; | 55 | physical_memsize = 0x02000000; |
55 | } else { | 56 | } else { |
57 | if (memsize > (256 << 20)) { /* memsize should be capped to 256M */ | ||
58 | pr_warn("Unsupported memsize value (0x%lx) detected! " | ||
59 | "Using 0x10000000 (256M) instead\n", | ||
60 | memsize); | ||
61 | memsize = 256 << 20; | ||
62 | } | ||
56 | /* If ememsize is set, then set physical_memsize to that */ | 63 | /* If ememsize is set, then set physical_memsize to that */ |
57 | physical_memsize = ememsize ? : memsize; | 64 | physical_memsize = ememsize ? : memsize; |
58 | } | 65 | } |
@@ -196,3 +203,9 @@ unsigned platform_maar_init(unsigned num_pairs) | |||
196 | 203 | ||
197 | return maar_config(cfg, num_cfg, num_pairs); | 204 | return maar_config(cfg, num_cfg, num_pairs); |
198 | } | 205 | } |
206 | |||
207 | phys_addr_t mips_cdmm_phys_base(void) | ||
208 | { | ||
209 | /* This address is "typically unused" */ | ||
210 | return 0x1fc10000; | ||
211 | } | ||