openwrt partition map for the wrt350nv2
[openwrt.git] / target / linux / orion / patches / 005-dram_mapping_granularity_is_64kib.patch
1 The DRAM base address and size fields in the CPU's MBUS bridge have
2 64KiB granularity, instead of the currently used 16MiB. Since all
3 of the currently supported MBUS peripherals support 64KiB granularity
4 as well, this patch changes the Orion address map code to stop
5 rounding base addresses down and sizes up to multiples of 16MiB.
6
7 Found by Ke Wei <kewei@marvell.com>.
8
9 Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
10 ---
11 arch/arm/mach-orion5x/addr-map.c | 4 ++--
12 1 files changed, 2 insertions(+), 2 deletions(-)
13
14 --- a/arch/arm/mach-orion5x/addr-map.c
15 +++ b/arch/arm/mach-orion5x/addr-map.c
16 @@ -152,8 +152,8 @@
17 w = &orion5x_mbus_dram_info.cs[cs++];
18 w->cs_index = i;
19 w->mbus_attr = 0xf & ~(1 << i);
20 - w->base = base & 0xff000000;
21 - w->size = (size | 0x00ffffff) + 1;
22 + w->base = base & 0xffff0000;
23 + w->size = (size | 0x0000ffff) + 1;
24 }
25 }
26 orion5x_mbus_dram_info.num_cs = cs;
This page took 0.05229 seconds and 5 git commands to generate.